* no output on screen
@ 2008-08-23 3:19 刘小双
2008-08-23 11:49 ` [directfb-dev] " Denis Oliver Kropp
0 siblings, 1 reply; 2+ messages in thread
From: 刘小双 @ 2008-08-23 3:19 UTC (permalink / raw)
To: linuxppc-embedded, directfb-dev
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [directfb-dev] no output on screen
2008-08-23 3:19 no output on screen 刘小双
@ 2008-08-23 11:49 ` Denis Oliver Kropp
0 siblings, 0 replies; 2+ messages in thread
From: Denis Oliver Kropp @ 2008-08-23 11:49 UTC (permalink / raw)
To: 刘小双; +Cc: directfb-dev, linuxppc-embedded
刘小双 wrote:
> 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
> <http://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 <http://directfb.org>)
> (*) Direct/Thread: Running 'Keyboard Input' (INPUT, 504)...
> (*) DirectFB/Input: Keyboard 0.9 (directfb.org <http://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]
The code you sent is looking fine. Please try a build with debug enabled (assertions).
--
Best regards,
Denis Oliver Kropp
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-23 11:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-23 3:19 no output on screen 刘小双
2008-08-23 11:49 ` [directfb-dev] " Denis Oliver Kropp
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).