directfb with friendly ARM board

uri
Hello,

I want to get directfb work with friendly ARM board + I
have 7" touchscreen (800x460-50Hz 16bit).

I cross compiled directfb 1.4.3 and tslib, but when I run dfbinfo I
get the following errors:

~ # dfbinfo

  ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.3 |~~~~~~~~~~~~~~~~~~~~~~~~~~
       (c) 2001-2009  The world wide DirectFB Open Source Community
       (c) 2000-2004  Convergence (integrated media) GmbH
     ----------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2010-01-17 23:07)
(*) Direct/Memcpy: Using libc memcpy()
(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER
0/0] <8388608>...
(*) Direct/Thread: Started 'VT Flusher' (737) [DEFAULT OTHER/OTHER
0/0] <8388608>...
(*) DirectFB/FBDev: Found 's3c2410fb' (ID 0) with frame buffer at
0x33a00000, 750k (MMIO 0x00000000, 0k)
Couldnt load module pthres
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(!) DirectFB/FBDev: No supported modes found in /etc/fb.modes and
current mode not supported!
(!) DirectFB/FBDev: Current mode's pixelformat: rgba 5/11, 6/5, 5/0, 0/0
(16bit)
(!) DirectFB/Core/layers: Failed to initialize layer 0!
   --> Initialization error!
(!) DirectFB/Core: Could not initialize 'layer_core' core!
   --> Initialization error!
(#) DirectFBError [DirectFBCreate() failed]: Initialization error!
~ #

fbset prints :
~ # fbset

mode "800x480-50"
       # D: 23.896 MHz, H: 25.750 kHz, V: 50.000 Hz
       geometry 800 480 800 480 16
       timings 41848 40 40 29 3 48 3
       accel false
       rgba 5/11,6/5,5/0,0/0
endmode

Any idea?
Please help.

LDS
Hi,

i'm trying to do the exact same thing but my problem was a "No system
found" error.

Can you please tell me the steps you took to compile your system. Also, a
tree of your /dev directory would be helpful, as well as a list of all the
configuration files you created.

To port DirectFB i used the documentation in here
http://free-electrons.com/docs/

Thank you,
Luís Silva

Nicolas
Uri, I came accross this problem myself when experimenting with buserror's
OE git branch. It took me a while to figure out that this error and some
other errors related to illegal instructions happened because all packages
are compiled with -mthumb though the kernel and modules use -mno-thumb. The
mix of instruction sets seems to cause problems. A hotfix is to edit your
conf/distro/include/angstrom.inc and change the line:
ANGSTROM_ARM_INSTRUCTION_SET_armv4t = "thumb"
to 
ANGSTROM_ARM_INSTRUCTION_SET_armv4t = "arm"

The default for the mini2440 is -mno-thumb but for some reason (save memory
space, maybe?) the angstrom distro overrides this for all armv4t family
processors. 

After that you should rebuild your whole image. 

If you're building directfb apart then check if you're mixing thumb
instructions and play with the -mthumb/no-thumb flag. Some libs with
embedded asm may cause you trouble too. And not only directfb should be
compiled with -mno-thumb but all of its dependencies as well. I had similar
problemas trying to run erlang R13B04. erl gave me all sorts of illegal
instruction errors and I couldn't understand the reason at the time.

slampt
I am having this problem too, 
I am using buildroot for my rootfs and the kernel from
git://repo.or.cz/linux-2.6/mini2440.git
as this kernel is the only one that I have managed to get the LED backlight
to work.

However I can't run any SDL with DirectFB programs and when trying to run
dfbinfo it crashes like the above.


Cheers
Slampt