linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* AW: Microwindows on Icecube/CoralP
@ 2005-02-08  7:33 Martin Krause
  2005-02-08  8:17 ` Jarno Manninen
  2005-02-08 13:12 ` Mark Chambers
  0 siblings, 2 replies; 9+ messages in thread
From: Martin Krause @ 2005-02-08  7:33 UTC (permalink / raw)
  To: Mark Chambers; +Cc: linuxppc-embedded

linuxppc-embedded-bounces@ozlabs.org wrote on :
> > 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.
>=20
> 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.

I have similar problems with an MPC5200 board and a Silicon Motion
SM501 (Voyager) grafic controller. The controller has a PCI and a
local bus interface. We use the local bus interface to connect it
with the 5200. In 32 bit truecolor mode everything works fine, but
in 16 bit mode bytes are swapped: 0x12345678 =3D> 0x34127856.
I'm not sure, if this problem has something to do with the CoralP
problem, but it is likely too similar to be completely independent.
Does anyone use an SM501 in 16 bit mode?

regards,
Martin Krause

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: Microwindows on Icecube/CoralP
@ 2005-02-07 15:24 francois.ruvoen
  0 siblings, 0 replies; 9+ messages in thread
From: francois.ruvoen @ 2005-02-07 15:24 UTC (permalink / raw)
  To: linuxppc-embedded

Thanks. Tweaking a little the source code and I now get the=0D=0Aright co=
lours. The funny thing is that byte swapping was:=0D=0A0x1234567 =3D> 0x3=
4126745. I initially thought I could just=0D=0Aswap the two least signifi=
cant bytes as I am pretty sure I=0D=0Aam using a 16-bit mode (fbset repor=
ts that anyway). Now I'd=0D=0Alike to see that in 640x480 and not just 10=
24x768 but that=0D=0Aissue seems tied the frame buffer driver this time.=0D=
=0A=0D=0A---------- Initial Header -----------=0D=0A=0D=0AFrom      : "Ma=
rk Chambers" <markc@mail.com>=0D=0ATo          :=0D=0A<francois.ruvoen@li=
bertysurf.fr>,"linuxppc-embedded"=0D=0A<linuxppc-embedded@ozlabs.org>=0D=0A=
Cc          : =0D=0ADate      : Mon, 7 Feb 2005 07:59:16 -0500=0D=0ASubje=
ct : Re: Microwindows on Icecube/CoralP=0D=0A=0D=0A=0D=0A>I have been pla=
ying with the CoralP, Icecube and Debian.=0D=0A>Works fine, thanks to the=
 tutorial on the Denx site.=0D=0A>I now would like to see the microwindow=
s stuff working. I=0D=0A>have been trying the demos from the ELDK but I g=
et strange=0D=0A>colors, it seems my palette is all wrong. The same happe=
ns=0D=0A>when I recompile the latest version of microwindows (except=0D=0A=
>I get yet another palette).=0D=0A>Any pointers?=0D=0A=0D=0AOne unexpecte=
d thing about the 5200 is that it swaps bytes=0D=0Ato/from the PCI buss. =
 So if you write a 32 bit pixel, for=0D=0Ainstance 0x12345678, it will be=
 written to PCI as=0D=0A0x78563412.  Presumably this is based on an assum=
ption=0D=0Athat PCI targets will be little-endian.  So you might try=0D=0A=
reversing bytes and see if the palettes make sense.=0D=0A=0D=0AMark Chamb=
ers=0D=0A=0D=0A=0D=0A=0A************************ ADSL JUSQU'A 16 MEGA + T=
ELEPHONE GRATUIT ************************=0AL'ultra haut d=E9bit =E0 30EU=
R/mois seulement ! Et vous t=E9l=E9phonez gratuitement en France vers les=
 postes fixes, hors num=E9ros sp=E9ciaux.=0APour profiter de cette offre =
exceptionnelle, cliquez ici : http://register.tiscali.fr/adsl/  (voir con=
ditions sur le site)=0A=0A

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Microwindows on Icecube/CoralP
@ 2005-02-07 10:10 francois.ruvoen
  2005-02-07 12:59 ` Mark Chambers
  2005-02-07 19:55 ` Wolfgang Denk
  0 siblings, 2 replies; 9+ messages in thread
From: francois.ruvoen @ 2005-02-07 10:10 UTC (permalink / raw)
  To: linuxppc-embedded

Hi all,=0D=0A=0D=0AI have been playing with the CoralP, Icecube and Debia=
n.=0D=0AWorks fine, thanks to the tutorial on the Denx site.=0D=0AI now w=
ould like to see the microwindows stuff working. I=0D=0Ahave been trying =
the demos from the ELDK but I get strange=0D=0Acolors, it seems my palett=
e is all wrong. The same happens=0D=0Awhen I recompile the latest version=
 of microwindows (except=0D=0AI get yet another palette).=0D=0AAny pointe=
rs?=0D=0A=0D=0AI am using the latest CVS for linuxppc_2_4_devel, ELDK 3.0=
=0D=0Aand Microwindows 0.90. The Lite5200 is a Rev 2 and the=0D=0ACoralP =
a Rev 5.=0A************************ ADSL JUSQU'A 16 MEGA + TELEPHONE GRAT=
UIT ************************=0AL'ultra haut d=E9bit =E0 30EUR/mois seulem=
ent ! Et vous t=E9l=E9phonez gratuitement en France vers les postes fixes=
, hors num=E9ros sp=E9ciaux.=0APour profiter de cette offre exceptionnell=
e, cliquez ici : http://register.tiscali.fr/adsl/  (voir conditions sur l=
e site)=0A=0A

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-02-08 13:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-08  7:33 AW: Microwindows on Icecube/CoralP Martin Krause
2005-02-08  8:17 ` Jarno Manninen
2005-02-08  9:17   ` Geert Uytterhoeven
2005-02-08 13:12 ` Mark Chambers
  -- strict thread matches above, loose matches on Subject: below --
2005-02-07 15:24 francois.ruvoen
2005-02-07 10:10 francois.ruvoen
2005-02-07 12:59 ` Mark Chambers
2005-02-07 19:55 ` Wolfgang Denk
2005-02-07 20:30   ` Mark Chambers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).