DirecFB and Mini2440

Umesh
Hello,
Whenever I used to run any DirectFB Application on Mini2440 its gives the
following output.


   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.4.2 |~~~~~~~~~~~~~~~~~~~~~~~~~~

        (c) 2001-2009  The world wide DirectFB Open Source Community

        (c) 2000-2004  Convergence (integrated media) GmbH

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



(*) DirectFB/Core: Single Application Core. (2013-05-21 11:48) [ DEBUG ][
TRACE

]

(*) Direct/Memcpy: Using armasm_memcpy()

(!) [  465:    0.000] --> Caught signal 4 (at 0x40111c10, illegal opcode)
<--

(-) [  465: -STACK- ]

sh: nm: not found

  #0  0x40134b50 in ?? () from /usr/lib/libdirect-1.4.so.0 [0x40126000]

sh: nm: not found

  #1  0x40111bb4 in fusion_arena_enter () from /usr/lib/libfusion-1.4.so.0
[0x40

10f000]

sh: nm: not found

  #2  0x40095588 in dfb_core_create () from /usr/lib/libdirectfb-1.4.so.0
[0x400

26000]

sh: nm: not found

  #3  0x00008588 in DirectFBCreate () from main [0x8000]



Segmentation fault


Every application is runing fine on Qemu emulator.
dfbfx, fbset are runing fine. Qtopia is runing fine.

Please anyone, help me our of this error.

-Umesh Bondwal

Juergen Beisert
> illegal opcode

Seems your DirectFB library is not compiled for the ARMv4.

Umesh
Followinf is my compilation method.


LDFLAGS=-L/home/.../staging/usr/lib \
CPPFLAGS=-I/home/.../staging/usr/include \
PKG_CONFIG_PATH=/.../lib/pkgconfig \
PKG_CONFIG_SYSROOT_DIR=/home/.../staging \
CC=/home/shailendra/.../arm-2008q3/bin/arm-none-linux-gnueabi-gcc \
AR=/home/shailendra/umesh/.../arm-2008q3/bin/arm-none-linux-gnueabi-ar \
LD=/home/shailendra/umesh/mini2440/mini_src/src/arm-2008q3/bin/arm-none-linux-gn
ueabi-ld
\
RANLIB=/home/shailendra/.../arm-2008q3/bin/arm-none-linux-gnueabi-ranlib 

export CC
export AR
export LD
export RANLIB
export CPPFLAGS
export LDFLAGS 
export LDFLAGS 
export PKG_CONFIG_PATH 
export PKG_CONFIG_SYSROOT_DIR

./configure --prefix=/usr --host=arm-none-linux-gnueabi --target=arm
--build=x86_64 --with-gfxdrivers=none --with-inputdrivers=all
--enable-maintainer-mode --enable-trace --enable-debug --with-tests
--enable-x11

Juergen Beisert
And for what architecture does your arm-2008q3-compiler builds code for by
default?

Umesh
Everything is working fine now.
A file was missing
/etc/fb.modes... after creating this according to mini2440.. dfb is able
load the correct information of mini2440 video hardware 

Now my code is working fine on both Qemu and Mini2440 board.