From: Wolfgang Denk <wd@denx.de>
To: "francois.ruvoen@libertysurf.fr" <francois.ruvoen@libertysurf.fr>
Cc: linuxppc-embedded <linuxppc-embedded@ozlabs.org>
Subject: Re: Microwindows on Icecube/CoralP
Date: Mon, 07 Feb 2005 20:55:15 +0100 [thread overview]
Message-ID: <20050207195520.D8B4DC108D@atlas.denx.de> (raw)
In-Reply-To: Your message of "Mon, 07 Feb 2005 11:10:36 +0100." <IBJDLO$2F7CB4091C41824099E5E47AB0570FD3@tiscali.fr>
Dear Francois,
in message <IBJDLO$2F7CB4091C41824099E5E47AB0570FD3@tiscali.fr> 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
next prev parent reply other threads:[~2005-02-07 19:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-07 10:10 Microwindows on Icecube/CoralP francois.ruvoen
2005-02-07 12:59 ` Mark Chambers
2005-02-07 19:55 ` Wolfgang Denk [this message]
2005-02-07 20:30 ` Mark Chambers
-- strict thread matches above, loose matches on Subject: below --
2005-02-07 15:24 francois.ruvoen
2005-02-08 7:33 AW: " Martin Krause
2005-02-08 13:12 ` Mark Chambers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050207195520.D8B4DC108D@atlas.denx.de \
--to=wd@denx.de \
--cc=francois.ruvoen@libertysurf.fr \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).