Has anyone tried directfb on FriendlyARM? I've cross-compiled it, but I'm having a problem with memcpy(). It crashes with an illegal opcode. I've tried with asm_memcpy() and libc_memcpy(), but it continues to fail. Can anyone help me? Thanks, Carlos Castro
Directfb
Hello Carlos, in another forum, about mmap framebuffer problem, I read this: > You need to set the size of the fb1 framebuffer by writing it to > /sys/class/graphics/fb1/size, like this (for a 4MB framebuffer): > echo 4194304 > /sys/class/graphics/fb1/size can be the same problem? Please let me know about: I'm trying the DirectFB too. Clemente.
Hi Clemente, thanks for replying.
I don't have that file. This is what I have in that directory:
[root@FriendlyARM /]# cd /sys/class/graphics/fb0/
[root@FriendlyARM fb0]# ls
bits_per_pixel dev name stride
blank device pan subsystem
console mode rotate uevent
cursor modes state virtual_size
[root@FriendlyARM fb0]#
But I don't think that the problem is with the fbdev, cause SDL is working
fine, and even fb-gnash, that is a flash player using directfb is working
properly. Only the test apps from directfb don't work ( like dfbinfo). When
I try one of them it gives me this error:
[root@FriendlyARM fb0]# 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. (2009-12-09 10:17) [ DEBUG ][
TRACE ]
(*) Direct/Memcpy: Forced to use libc memcpy()
(!) [ 569: 0.000] --> Caught signal 4 (at 0x4011ac78, illegal opcode)
<--
sh: nm: not found
(-) [ 569: -STACK- ]
#0 0x4013eb84 in signal_handler () from
/usr/local/arm/4.3.2/lib/libdirect-1.4.so.0 [0x40130000]
#1 0x4011ac1c in fusion_arena_enter () from
/usr/local/arm/4.3.2/lib/libfusion-1.4.so.0 [0x40118000]
#2 0x4009d368 in dfb_core_create () from
/usr/local/arm/4.3.2/lib/libdirectfb-1.4.so.0 [0x40026000]
#3 0x00008640 in DirectFBCreate () from dfbinfo [0x8000]
Segmentation fault
[root@FriendlyARM fb0]#
I hope we can help each other.
Carlos
Hello Carlos,
I have this problem, but with a different version of directfb:
root@mini2440:~# dfbinfo
~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.2.7 |~~~~~~~~~~~~~~~~~~~~~~~~~~
(c) 2001-2008 The world wide DirectFB Open Source Community
(c) 2000-2004 Convergence (integrated media) GmbH
----------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2009-12-13 09:34)
(*) Direct/Thread: Started 'VT Switcher' (-1) [CRITICAL OTHER/OTHER 0/0]
<8388608>...
(*) Direct/Thread: Started 'Keyboard Input' (-1) [INPUT OTHER/OTHER 0/0]
<8388608>...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(!) [ 2187: 0.000] --> Caught signal 11 (sent by the kernel) <--
(!) DirectFB/core/vt: Unable to disallocate VT!
--> Device or resource busy
Aborted
I'm trying to find a solution serching the web.
Clemente.
app # ./df_andi
=======================| DirectFB 1.0.1 |=======================
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2009-05-07 01:56)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 1155)...
(!) Direct/Modules: Unable to dlopen
`/lib/directfb-1.0-0/inputdrivers/libdirectfb_tslib.so'!
--> libts-0.0.so.0: cannot open shared object file: No such file or
directory
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 1156)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 1157)...
(*) DirectFB/Input: s3c-keypad (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 1158)...
(*) DirectFB/Input: S5P TouchScreen (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 1159)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(!) Direct/Modules: Could not open module directory
`/lib/directfb-1.0-0/gfxdrivers'!
--> No such file or directory
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
DirectFB: Error opening lcd
DIRECTFB: LCD_IOCTL ioctl call failed
df_andi.c <497>:
[Application exited without deinitialization of DirectFB!] *** [core.c:813
in dfb_core_deinit_check()]
(!!!) *** WARNING [still objects in 'Layer Region Pool'] ***
[object.c:231 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Layets in 'Surface Pool'] ***
[object.c:231 in fusion_object_pool_destroy()]
/app # ./df_andi
./df_andi: error while loading shared libraries: libdirectfb-1.0.so.0:
cannot open shared object file: No such file or directory
/app #
msh: can't execute 'strace': No such file or directory
/app # ./df_fire
=======================| DirectFB 1.0.1 |=======================
(c) 2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2009-05-07 01:56)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 1158)...
(!) Direct/Modules: Unable to dlopen
`/lib/directfb-1.0-0/inputdrivers/libdirectfb_tslib.so'!
--> libts-0.0.so.0: cannot open shared object file: No such file or
directory
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 1159)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Linus3cfb s3cfb: invalid bits per pixel
s3cfb s3cfb: invalid bits per pixel
x Input' (INPUT, 1160)...
(*) DirectFB/Input: s3c-keypad (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 1161)...
(*) DirectFB/Input: S5P TouchScreen (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 1162)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(!) Direct/Modules: Could not open module directory
`/lib/directfb-1.0-0/gfxdrivers'!
--> No such file or directory
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
(#) DirectFBError [IDirectFB::CreateSurface() failed]: Not supported!
/app # ./df_andi
=======================| DirectFB 1.0.1 |=======================
(c)2001-2007 The DirectFB Organization (directfb.org)
(c) 2000-2004 Convergence (integrated media) GmbH
------------------------------------------------------------
(*) DirectFB/Core: Single Application Core. (2009-05-07 01:56)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 1168)...
(!) Direct/Modules: Unable to dlopen
`/lib/directfb-1.0-0/inputdrivers/libdirectfb_tslib.so'!
--> libts-0.0.so.0: cannot open shared object file: No such file or
directory
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 1169)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 1170)...
(*) DirectFB/Input: s3c-keypad (1) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Linux Input' (INPUT, 1171)...
(*) DirectFB/Input: S5P TouchScreen (2) 0.1 (directfb.org)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 1172)...
(*) DirectFB/Input: Keyboard 0.ectory
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org)
(*) DirectFB/Core/WM: Default 0.3 (directfb.org)
DirectFB: Error opening lcd
DIRECTFB: LCD_IOCTL ioctl call failed
df_andi.c <497>:
(#) DirectFBError [dfb->CreateFont( dfb, FONT, &desc, &font )]:
File not found!
(!!!) *** WARNING [Application exited without deinitialization of
DirectFB!] *** [core.c:813 in dfb_core_deinit_check()]
(!!!) *** WARNING [still objects in 'Layer Region Pool'] ***
[object.c:231 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Layer Context Pool'] ***
[object.c:231 in fusion_object_pool_destroy()]
(!!!) *** WARNING [still objects in 'Surface Pool'] *** [object.c:231 in
fusion_object_pool_destroy()]


