no output on screen

刘小双 liuxs226 at gmail.com
Sat Aug 23 13:19:02 EST 2008


hi, all
I am writing a gfxdriver for Fujitsu mb86296 video card under DirectFB. When
I run a example df_fire from DirectFB-examples-1.0.0.tar.gz, there is  no
output on the computer screen, it is black completely, and the error result
looks like this:

sh-3.00# ./df_fire

     =======================|  DirectFB 1.0.0  |=======================
          (c) 2001-2007  The DirectFB Organization (directfb.org)
          (c) 2000-2004  Convergence (integrated media) GmbH
        ------------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2008-06-03 03:01) [ TRACE ]
(*) Direct/Memcpy: Using ppcasm_memcpy()
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 502)...
(*) Direct/Thread: Running 'PS/2 Input' (INPUT, 503)...
(*) DirectFB/Input: IMPS/2 Mouse 1.0 (directfb.org)
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 504)...
(*) DirectFB/Input: Keyboard 0.9 (directfb.org)
(*) DirectFB/Graphics: Fujitsu MB86296 0.5 (Atom Create)
(!) [  493:    0.000] --> Caught signal 11 (at (nil), invalid address) <--
(-) [  493: -STACK- ]
  #0  0x0fecef48 in signal_handler () from
/mnt/gtkdfb/lib/libdirect-1.0.so.0
[0xfec4000]
  #1  0x0ffc5b40 in dfb_screens_initialize () from
/mnt/gtkdfb/lib/libdirectfb-1.0.so.0 [0xff5f000]
  #2  0x0ffb3520 in dfb_core_part_initialize () from
/mnt/gtkdfb/lib/libdirectfb-1.0.so.0 [0xff5f000]
  #3  0x0ffb2edc in dfb_core_arena_initialize () from
/mnt/gtkdfb/lib/libdirectfb-1.0.so.0 [0xff5f000]
  #4  0x0ffb2edc in dfb_core_arena_initialize () from
/mnt/gtkdfb/lib/libdirectfb-1.0.so.0 [0xff5f000]
  #5  0x0ff029f8 in fusion_arena_enter () from
/mnt/gtkdfb/lib/libfusion-1.0.so.0 [0xfeff000]
  #6  0x0ffb18f4 in dfb_core_create () from
/mnt/gtkdfb/lib/libdirectfb-1.0.so.0 [0xff5f000]
  #7  0x100127b4 in DirectFBCreate () from ./df_fire [0x10000000]

(-) [  502: -STACK- 'VT Switcher']
  #0  0x0fcf3970 in vt_thread () from
/mnt/gtkdfb/lib/directfb-1.0-0/systems/libdirectfb_fbdev.so [0xfcea000]

(-) [  503: -STACK- 'PS/2 Input']
  #0  0x0fba6c88 in ps2mouseEventThread () from
/mnt/gtkdfb/lib/directfb-1.0-0/inputdrivers/libdirectfb_ps2mouse.so
[0xfba4000]

(-) [  504: -STACK- 'Keyboard Input']
  #0  0x0fc56e84 in keyboardEventThread () from
/mnt/gtkdfb/lib/directfb-1.0-0/inputdrivers/libdirectfb_keyboard.so
[0xfc55000]

Aborted

I wonder if it is wrong in my code in mb86296_screen.c which I refer to
sh7722 gfxdriver, here is the code:

/**********************************************************************************************************************/

static DFBResult
mb86296InitScreen( CoreScreen           *screen,
               CoreGraphicsDevice       *device,
               void                 *driver_data,
               void                 *screen_data,
               DFBScreenDescription *description )
{
          /* Set the screen capabilities. */
     description->caps = DSCCAPS_NONE;

     /* Set the screen name. */
     snprintf( description->name, DFB_SCREEN_DESC_NAME_LENGTH, "MB86296
Screen" );

     return DFB_OK;
}

static DFBResult
mb86296GetScreenSize( CoreScreen *screen,
                  void       *driver_data,
                  void       *screen_data,
                  int        *ret_width,
                  int        *ret_height )
{
     *ret_width  = MB86296_LCD_WIDTH;
     *ret_height = MB86296_LCD_HEIGHT;

     return DFB_OK;
}

ScreenFuncs mb86296ScreenFuncs = {
     InitScreen:    mb86296InitScreen,
     GetScreenSize: mb86296GetScreenSize
};

In driver_init_driver(), I called dfb_screens_register( device, driver_data,
&mb86296ScreenFuncs ).

anybody can help me??
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ozlabs.org/pipermail/linuxppc-embedded/attachments/20080823/83c13572/attachment.htm>


More information about the Linuxppc-embedded mailing list