linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: 刘小双 <liuxs226@gmail.com>
To: linuxppc-embedded@ozlabs.org, directfb-dev@directfb.org
Subject: no output on screen
Date: Sat, 23 Aug 2008 11:19:02 +0800	[thread overview]
Message-ID: <e81b2fb40808222019hd8b7eb9va649b0771ed83f49@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 3620 bytes --]

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??

[-- Attachment #2: Type: text/html, Size: 5685 bytes --]

             reply	other threads:[~2008-08-23  3:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-23  3:19 刘小双 [this message]
2008-08-23 11:49 ` [directfb-dev] no output on screen Denis Oliver Kropp

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e81b2fb40808222019hd8b7eb9va649b0771ed83f49@mail.gmail.com \
    --to=liuxs226@gmail.com \
    --cc=directfb-dev@directfb.org \
    --cc=linuxppc-embedded@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).