linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* framebuffer swap endianess
@ 2008-01-22 15:46 Angelo
  2008-01-22 16:45 ` Josh Boyer
  2008-01-23  7:39 ` Roman Fietze
  0 siblings, 2 replies; 7+ messages in thread
From: Angelo @ 2008-01-22 15:46 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 739 bytes --]

Hi, i'm angelo.

I have just create a framebuffer for an embedded system:
- powerpc (little endian)  with  a GPU (big endian).

I'm working on linux 2.6.22

When i try to execute Xfbdev, it starts but with wrong colors.
I need to swap the RGB format (RRRRRGGGGGGBBBBB) to BGR, respecting the endianess (GGGRRRRRBBBBBGGG).

I know that X loads with some ioctl, the principal settings through framebuffer.
But i'm not sure if framebuffer can inform it on the RGB format.

I also tried to change something on cmap, but nothing changes on display;

So, i hope you can help me. 

Many thanks.


       
---------------------------------

---------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail

[-- Attachment #2: Type: text/html, Size: 952 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* framebuffer swap endianess
@ 2008-01-24 14:27 Angelo
  2008-01-25  6:47 ` Roman Fietze
  0 siblings, 1 reply; 7+ messages in thread
From: Angelo @ 2008-01-24 14:27 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 698 bytes --]

Hello all, 

many thanks for your answer.

Modify the X server is a good idea.
I'd just tried to understand the exact place to make changes. Adding many "printf" to understand it.
But it's very complex.

>We modified the X Server and swapped when transferring from the shadow
>buffer to the video buffer. That cured all our problems. 

Could you tell me where is the exact place to do this? in some files like fbdev.c or other?

>This was on the 2.4.25 from DENX and with Xfree86.

Sorry but i don't understand this sentence.

Anyway many thanks.


       
---------------------------------

---------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail

[-- Attachment #2: Type: text/html, Size: 910 bytes --]

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

end of thread, other threads:[~2008-01-25 10:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-22 15:46 framebuffer swap endianess Angelo
2008-01-22 16:45 ` Josh Boyer
2008-01-23  7:39 ` Roman Fietze
2008-01-23 16:39   ` Kumar Gala
  -- strict thread matches above, loose matches on Subject: below --
2008-01-24 14:27 Angelo
2008-01-25  6:47 ` Roman Fietze
2008-01-25 10:55   ` Clemens Koller

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).