Hi Ed,
seems like you've managed to get quite far already.
Apparently it crashes somewhere in libdirect (not libdirectfb) but
without more specific location info it is going to be hard to tell the
problem. I am not aware of any known issues there.
It would be helpful to eg. use gdb or gdbserver, or do an strace, or put
additional prints in libdirectfb_tslib to narrow down.
Greets
Niels
ed wrote:
I am trying to get DirectFB running on the mini2440.
I am using openembedded to create my image.
In the directfb_1.4.2.bb file I have entered the following in the extra
OE configure section.
EXTRA_OECONF = "\
--enable-debug \
--enable-trace \
--enable-extra-warnings \
--with-inputdrivers=tslib \
--enable-fbdev \
--enable-freetype=yes \
--enable-zlib \
--with-gfxdrivers=none \
--disable-sdl \
--disable-vnc \
--disable-x11 \
TSLIB_CFLAGS=\"-I${INSTALL_PATH}/include\" \
TSLIB_LIBS=\"-L${INSTALL_PATH}/lib\" \
"
On the mini2440 I have exported the following variables.
export TSLIB_TSDEVICE=/dev/input/touchscreen0
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CONFFILE=/etc/ts.conf
I created a directfbrc file in /etc with the following lines.
memcpy=libc
debug
debugmem
debugshm
trace
I ran ts_calibrate to configure display before running dfbinfo.
Verified that there is a symbolic link from event1 to touchscreen0.
r...@mini2440:/dev/input# ls -l
crw-r----- 1 root root 13, 64 Mar 7 23:19 event0
crw-r----- 1 root root 13, 65 Mar 7 23:19 event1
crw-r----- 1 root root 13, 63 Mar 7 23:19 mice
crw-r----- 1 root root 13, 32 Mar 7 23:19 mouse0
lrwxrwxrwx 1 root root 6 Mar 7 23:19 touchscreen0 ->
event1
But when I run dfbinfo the program crashes right after probing tslib
input driver.
Below is the output.
ANY IDEAS ??????
============================================================
(-) [Main Thread 1.583] ( 2182) Direct/Mem:
+ 24 bytes [tslib.c:171 in driver_get_available()] -> 0x1b318
" /dev/input/touchscreen0"
(!) [ 2182: 1.590] --> Caught signal 11 (at 0xfffff8f7, invalid
address) <--
(-) [ 2182: -STACK- ]
sh: nm: not found
#0 0x400fae0d in ?? () from /usr/lib/libdirect-1.4.so.0 [0x400f0000]
sh: nm: not found
#1 0x41381cd1 in ?? ()
from /usr/lib/directfb-1.4-0/inputdrivers/libdirectfb_tslib.so
[0x41381000]
#2 0x413820ad in ?? ()
from /usr/lib/directfb-1.4-0/inputdrivers/libdirectfb_tslib.so
[0x41381000]
sh: nm: not found
#3 0x40087a51 in ?? () from /usr/lib/libdirectfb-1.4.so.0
[0x40025000]
#4 0x40087ef9 in ?? () from /usr/lib/libdirectfb-1.4.so.0
[0x40025000]
#5 0x400b5c14 in dfb_core_part_initialize ()
from /usr/lib/libdirectfb-1.4.so.0 [0x40025000]
#6 0x4007a375 in ?? () from /usr/lib/libdirectfb-1.4.so.0
[0x40025000]
#7 0x4007a4cd in ?? () from /usr/lib/libdirectfb-1.4.so.0
[0x40025000]
sh: nm: not found
#8 0x400e4eac in fusion_arena_enter ()
from /usr/lib/libfusion-1.4.so.0 [0x400db000]
#9 0x400b6014 in dfb_core_create ()
from /usr/lib/libdirectfb-1.4.so.0 [0x40025000]
sh: nm: not found
#10 0x00008748 in DirectFBCreate () from dfbinfo [0x8000]
#11 0x0000898d in abort () from dfbinfo [0x8000]
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
--
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users