Microwindows on Icecube/CoralP

francois.ruvoen@libertysurf.fr francois.ruvoen at libertysurf.fr
Tue Feb 8 02:24:58 EST 2005

Thanks. Tweaking a little the source code and I now get the
right colours. The funny thing is that byte swapping was:
0x1234567 => 0x34126745. I initially thought I could just
swap the two least significant bytes as I am pretty sure I
am using a 16-bit mode (fbset reports that anyway). Now I'd
like to see that in 640x480 and not just 1024x768 but that
issue seems tied the frame buffer driver this time.

---------- Initial Header -----------

From      : "Mark Chambers" <markc at mail.com>
To          :
<francois.ruvoen at libertysurf.fr>,"linuxppc-embedded"
<linuxppc-embedded at ozlabs.org>
Cc          : 
Date      : Mon, 7 Feb 2005 07:59:16 -0500
Subject : Re: Microwindows on Icecube/CoralP

>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
>have been trying the demos from the ELDK but I get strange
>colors, it seems my palette is all wrong. The same happens
>when I recompile the latest version of microwindows (except
>I get yet another palette).
>Any pointers?

One unexpected thing about the 5200 is that it swaps bytes
to/from the PCI buss.  So if you write a 32 bit pixel, for
instance 0x12345678, it will be written to PCI as
0x78563412.  Presumably this is based on an assumption
that PCI targets will be little-endian.  So you might try
reversing bytes and see if the palettes make sense.

Mark Chambers

************************ ADSL JUSQU'A 16 MEGA + TELEPHONE GRATUIT ************************
L'ultra haut débit à 30EUR/mois seulement ! Et vous téléphonez gratuitement en France vers les postes fixes, hors numéros spéciaux.
Pour profiter de cette offre exceptionnelle, cliquez ici : http://register.tiscali.fr/adsl/  (voir conditions sur le site)

More information about the Linuxppc-embedded mailing list