Re: Microwindows on Icecube/CoralP

2 messages, 2 authors, 2005-02-07 · open the first message on its own page

Re: Microwindows on Icecube/CoralP

From: Wolfgang Denk <hidden>
Date: 2005-02-07 19:55:48

Dear Francois,

in message [off-list ref] you wrote:
I have been playing with the CoralP, Icecube and Debian.
Works fine, thanks to the tutorial on the Denx site.
I now would like to see the microwindows stuff working. I
This will not work. Microwindows can only  use  a  plain  framebuffer
interface,  but  the Coral-P does not allow for such a driver because
of the fact that it has a little-endian register interface.  For  the
frameboffer,  each color is defined by a bit offset and the number of
(contiguous bits) in a data word. For example, assuming a color depth
of 16 bpp you could have something like this:

	MSB          LSB
	rrrrrrgggggbbbbb

In this case the "green" color has bit offset 5 and is 5  bits  wide,
while  "red" has offset 10 and is 6 bits wide. On the Coral-P you see
the bytes swapped, i. e.

	MSB          LSB
	gggbbbbbrrrrrrgg

The "green" bits are  split  into  two  non-contiguous  groups  which
cannot  be  desribed  in  the  way  it  is  needed  for a framebuffer
interface.

You will need a custom graphics driver which  swaps  all  color  data
that  get  written  to  the  Coral-P.  Standard Microwindows does not
support this mode of operation.
have been trying the demos from the ELDK but I get strange
colors, it seems my palette is all wrong. The same happens
Yes, this is the effect explained above.
when I recompile the latest version of microwindows (except
I get yet another palette).
Again, thisis only to be expected.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"Here's a fish hangs in the net like a poor man's right in  the  law.
'Twill hardly come out."     - Shakespeare, Pericles, Act II, Scene 1

Re: Microwindows on Icecube/CoralP

From: Mark Chambers <hidden>
Date: 2005-02-07 20:26:56

This will not work. Microwindows can only  use  a  plain  framebuffer
interface,  but  the Coral-P does not allow for such a driver because
of the fact that it has a little-endian register interface.  
Or is it because 5200 swaps bytes around on PCI.  It sure looks to me
like Freescale has made a major screwup in their implementation of
PCI on the 5200.  I'd love for somebody to prove me wrong about this,
but I'm afraid I'm right.  I was under the impression that CoralP worked
nicely on 5200, but now I see that it also requires software tweaks to work
on 5200.  

Mark Chambers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help