Denis,

In the "directfb-src-0.9.22\systems\fbdev\fbdev.c", this function  
"dfb_fbdev->framebuffer_base = mmap" failed, maybe ucLinux does not  
support this function.
Do you know which directfb version had been ported to ucLinux? How to  
download it?
Thanks!

static DFBResult
system_initialize( CoreDFB *core, void **data )
{
      DFBResult   ret;
      CoreScreen *screen;
      long        page_size;

      ...

      /* Map the framebuffer */
      dfb_fbdev->framebuffer_base = mmap( NULL,  
dfb_fbdev->shared->fix.smem_len,
                                          PROT_READ | PROT_WRITE,  
MAP_SHARED,
                                          dfb_fbdev->fd, 0 );
      if ((int)(dfb_fbdev->framebuffer_base) == -1) {
           D_PERROR( "DirectFB/FBDev: "
                     "Could not mmap the framebuffer!\n");
           SHFREE( dfb_fbdev->shared );
           close( dfb_fbdev->fd );
           D_FREE( dfb_fbdev );
           dfb_fbdev = NULL;

           return DFB_INIT;
      }

      ...

}

Best regards,
Sing

On Fri, 01 Dec 2006 18:09:34 +0800, Denis Oliver Kropp <[EMAIL PROTECTED]>  
wrote:

> singg schrieb:
>> Denis, thanks!
>>
>>> ./gogiopera-dfb-static  -url www.baidu.com
>>         ---------------------- DirectFB v0.9.22 ---------------------
>>              (c) 2000-2002  convergence integrated media GmbH
>>              (c) 2002-2004  convergence GmbH
>>         --------MAP_SHARED not supported (cannot write mappings to disk)
>
> Is this from uclibc or the kernel?
>
>> ---------------------------------------------------
>>  (*) DirectFB/Core: Single Application Core. (2006-12-01 06:59)
>> (*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 71)...
>> (!) DirectFB/FBDev: Could not mmap the framebuffer!
>>     --> Invalid argument
>
> Are you sure /dev/fb0 or /dev/fb/0 is not a regular file?
>



-- 
Opera Software ASA
Mobile: +8613910069610
Office: +8610-85910542
Email: [EMAIL PROTECTED]

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to