Michele Da Rold wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all, when i execute the command dfbg I obtain this result and my
display don't show anything
(please note there are some kernel messages into the result because
I'm using a serial console)
Directfb are cross compiled for a arm9 board with LCD-TFT driver.
/ # dfbg -c 22226622
---------------------- DirectFB v0.9.24 ---------------------
(c) 2000-2002 convergence integrated media GmbH
(c) 2002-2004 convergence GmbH
-----------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2005-12-21 09:19)
(*) Direct/Threadlh7a40x_clcd_mmap
: Running 'VT Switcher' (CRITICAL, 104)...
(!) DirectFB/FBDev: couldn't access /proc/bus/pci/devices!
--> No such file or directory
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (convergence
integrated media GmbH)
(*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
(!!!) *** UNIMPLEMENTED [fusion_reactor_set_lock] *** [reactor.c:797]
CLCD: disabling LCD
CLCD: enabling LCD
(!) DirectFB/FBDev: Unsupported pixelformat: rgba 5/0, 6/5, 5/11, 0/0
(16bit)
Oh, that doesn't look good :-/
It seems that the framebuffer driver provides BGR instead of RGB.
I had one case where a driver pretends BGR, but actually it was RGB.
You can hack systems/fbdev/fbdev.c:1497 (comment out that line) and
see if colors are correct.
If not, you can either change the framebuffer driver or add BGR16
support to DirectFB, but I would prefer the former if possible :)
Here the modified code snippet, in case you have a slight line offset:
case 16:
if (dfb_fbdev_compatible_format( var, 0, 5, 5, 5, 0, 10,
5, 0 ) |
dfb_fbdev_compatible_format( var, 1, 5, 5, 5,15, 10,
5, 0 ) )
return DSPF_ARGB1555;
if (dfb_fbdev_compatible_format( var, 0, 4, 4, 4, 0, 8,
4, 0 ) |
dfb_fbdev_compatible_format( var, 4, 4, 4, 4, 12, 8,
4, 0 ) )
return DSPF_ARGB4444;
// HACK if (dfb_fbdev_compatible_format( var, 0, 5, 6, 5,
0, 11, 5, 0 ))
return DSPF_RGB16;
break;
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev