Hi Baskar.

system=devmem expects you to provide video-phys and video-mem, so it can map this in userspace. If you use system=fbdev instead, it would have used ioctls to come to the same result. For devmem, you must provide those always.

The layers are not registered because there is no graphic driver selected that registers your layers. I see you used -with-gfxdrivers=none so that is logical. However, if you use system=fbdev, this will do this for you already.

A lot of times the graphics driver determines what system you must select. If you do not have a graphics driver, you cannot use devmem. So, either try system=fbdev, or select a graphic driver that is devmem aware (check the probe() function).

Greets
Niels


Baskar O wrote:

Iam trying to run multicore DFB application on my arm based device.

I have modprobed fusion.ko, created the /dev/fusion nodes and also did

 "mount tmpfs /dev/shm -ttmpfs "

I configured DFB thus:

./configure --host=arm-linux --build=i386-linux --target=arm --srcdir=`pwd` --prefix=$PREFIX --libdir=$PREFIX/lib --libexecdir=$PREFIX/libexec --include=$PREFIX/include --disable-x11 --enable-debug --disable-voodoo --disable-mmx disable-see --disable-sdl --enable-jpeg --enable-png --enable-gif --enable-freetype --enable-fbdev --disable-video4linux --disable-video4linux2 --with-gfxdrivers=none --with-inputdrivers=linuxinput --enable-multi

When I run

[r...@bb bin]# ./arm-dfbmaster

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.3.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~

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

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

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

(*) DirectFB/Core: Multi Application Core. (2009-04-09 15:15) [ DEBUG ]

(*) Fusion/SHM: Using MADV_REMOVE (2.6.22.19 >= 2.6.19.2)

(*) Direct/Thread: Started 'Fusion Dispatch' (-1) [MESSAGING OTHER/OTHER 0/0] <8388608>...

(!) System/DevMem: Please supply 'video-phys = 0xXXXXXXXX' and 'video-length = XXXX' options!

(!) DirectFB/Core: Could not initialize 'system_core' core!

    --> Invalid argument!

(!) DFBMaster: DirectFBCreate() failed!

    --> Invalid argument!

so when run this:

[r...@bb bin]# ./arm-dfbmaster --dfb:video-phys=0xD8909000,video-length=960000

   ~~~~~~~~~~~~~~~~~~~~~~~~~~| DirectFB 1.3.0 |~~~~~~~~~~~~~~~~~~~~~~~~~~

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

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

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

(*) DirectFB/Core: Multi Application Core. (2009-04-09 15:15) [ DEBUG ]

(*) Fusion/SHM: Using MADV_REMOVE (2.6.22.19 >= 2.6.19.2)

(*) Direct/Thread: Started 'Fusion Dispatch' (-1) [MESSAGING OTHER/OTHER 0/0] <8388608>...

(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (directfb.org <http://directfb.org>)

(*) DirectFB/Core/WM: Default 0.3 (directfb.org)

(!) IDirectFB_Construct: No layers available! Missing driver?

(!) DFBMaster: DirectFBCreate() failed!

    --> Not supported!


Questions:

1. video-phys - Is it the physical address of /dev/fb/0?, why do I need to provide that?

2. Why do I get the "No layers available"?


------------------------------------------------------------------------
Quick access to your favorite MSN content and Windows Live with Internet Explorer 8. Download FREE now! <http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=B037MSN55C0701A>
------------------------------------------------------------------------

_______________________________________________
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

Reply via email to