nanogui: running nano-X on a Zaurus SL-6000l
Subject:
running nano-X on a Zaurus SL-6000l
From:
Shawn Rutledge ####@####.####
Date:
24 Nov 2005 07:17:21 +0000
Message-Id: <d9a6586e0511232317mbec846p85c25ac52958de69@mail.gmail.com>
I attempted to do this by chrooting to a Debian "pocket workstation"
environment which has gcc et al. and compiling from the 0.91 source.
I had some keyboard problems at first, so switched to TTYKBD. One big
remaining problem is that the screen is not drawn properly; I get
different kinds of vertical blue bars depending on which demo I run.
And in the config, I thought it was odd that it was trying to use
MWPF_TRUECOLOR0888; there isn't any Zaurus with that many colors is
there? Mine is certainly 16-bit. But after changing to
MWPF_TRUECOLOR565 I'm still getting the blue bars. I tried changing
#define USE_16BIT_ACCESS 1 /* =1 to force 16 bit display access*/
in fblin16.c and put in this printf to make sure it's really trying to
do 16-bit mode
linear16_init(PSD psd)
{
printf("linear16_init; xres %d, yres %d, bpp %d\n", psd->xres,
psd->yres, psd->bpp);
so when I run the chess demo I see output like this
linear16_init; xres 480, yres 640, bpp 16
(and later, linear16_init; xres 48, yres 48, bpp 16 - sprites or
something I guess)
I've been playing with line-drawing etc. by mmap'ing /dev/fb0 myself
and it's pretty straightforward, really a plain 16-bit-per-pixel
linear memory block, with colors arranged like this
uint16_t pixel = r<<11 | g << 5 | b;
Is this different than other Zauri? Anybody running on a 6000?