Hello directfb-dev 
 
Sorry for asking here too. I tried directfb-users with little responce(1)

I am a newbie regarding directfb.
I am working on a project, where we are changing linux kernel from 2.4.3 to 2.4.25
I the 'old' system, we were using SVGAlib, and have been quite happy for that.
As we wanted to be able to add some more'fun' to bootscreen, we decided to go for 
Framebuffer-device and DirectFB in the new project.
 
What I have managed so far is:
 
Patch our 2.4.25 - kernel with the linux-2.4.23-24-i810fb-lite.diff.bz2 to add 
framebuffer-support for I810 to our kernel.
A few tweeks had to be done, but it seems to work. 
A few line in syslinux.cfg was added:
 
video=i810fb:xres=1024:yres=768:bpp=16:hsync1=30:hsync2=55:vsync1=50:vsync2=85:accel:mtrr
 
Booting our system now brings a small Geek in the upper left corner.
 
Issuing these commands turn off cursor and disables screen-blanking:
 
setterm -term linux -blank 0 >/dev/tty0
setterm -term linux -cursor off >/dev/tty0
 
Issuing fbset -i gives following output:
 
sh-2.05a# fbset -i
 
mode "1024x768-69"
     # D: 74.873 MHz, H: 55.053 kHz, V: 68.903 Hz
     geometry 1024 768 1024 768 16
     timings 13356 168 56 27 1 112 3
     hsync high
     vsync high
     gsync true
     accel true
     rgba 5/11,6/5,5/0,0/0
 endmode
 
 Frame buffer device information:
     Name        : i810fb
     Address     : 0xe2000000
     Size        : 4194304
     Type        : PACKED PIXELS
     Visual      : TRUECOLOR
     XPanStep    : 1
     YPanStep    : 1
     YWrapStep   : 0
     LineLength  : 2048
     MMIO Address: 0xe6000000
     MMIO Size   : 524288
     Accelerator : Unknown (43)
 sh-2.05a#
 
 I have then managed to get DirectFB-0.9.20/0.9.21 to build static library and with 
i810-gfxdriver-support.
 
 I installed it to /usr/local and it now contains DirectFB-commands in /usr/local/bin 
and the rest in /usr/local/lib (drivers etc...):
 
 direct.pc             directfb-internal.pc  directfb.pc           fusion.pc
 sh-2.05a# ls -R /usr/local/lib/
 directfb-0.9.21  libdirect.la     libdirectfb.la   libfusion.la     pkgconfig
 libdirect.a      libdirectfb.a    libfusion.a      php
 sh-2.05a# ls -R /usr/local/lib/directfb-0.9.21/
 gfxdrivers    inputdrivers  interfaces    systems       wm
 
 /usr/local/lib/directfb-0.9.21/gfxdrivers:
 libdirectfb_i810.a   libdirectfb_i810.la
 
 /usr/local/lib/directfb-0.9.21/inputdrivers:
 libdirectfb_joystick.a      libdirectfb_lirc.a          libdirectfb_sdlinput.a      
libdirectfb_sonypi.a
 libdirectfb_joystick.la     libdirectfb_lirc.la         libdirectfb_sdlinput.la     
libdirectfb_sonypi.la
 libdirectfb_keyboard.a      libdirectfb_ps2mouse.a      libdirectfb_serialmouse.a
 libdirectfb_keyboard.la     libdirectfb_ps2mouse.la     libdirectfb_serialmouse.la
 
 /usr/local/lib/directfb-0.9.21/interfaces:
 IDirectFBFont           IDirectFBImageProvider  IDirectFBVideoProvider
 
 /usr/local/lib/directfb-0.9.21/interfaces/IDirectFBFont:
 libidirectfbfont_default.a   libidirectfbfont_default.la  libidirectfbfont_ft2.a      
 libidirectfbfont_ft2.la
 
 /usr/local/lib/directfb-0.9.21/interfaces/IDirectFBImageProvider:
 libidirectfbimageprovider_gif.a     libidirectfbimageprovider_jpeg.la   
libidirectfbimageprovider_png.a
 libidirectfbimageprovider_gif.la    libidirectfbimageprovider_mpeg2.a   
libidirectfbimageprovider_png.la
 libidirectfbimageprovider_jpeg.a    libidirectfbimageprovider_mpeg2.la
 
 /usr/local/lib/directfb-0.9.21/interfaces/IDirectFBVideoProvider:
 libidirectfbvideoprovider_v4l.a   libidirectfbvideoprovider_v4l.la
 
 /usr/local/lib/directfb-0.9.21/systems:
 libdirectfb_fbdev.a   libdirectfb_fbdev.la  libdirectfb_sdl.a     libdirectfb_sdl.la
 
 /usr/local/lib/directfb-0.9.21/wm:
 libdirectfbwm_default.a   libdirectfbwm_default.la
 sh-2.05a#
 
 I have included /usr/local/bin in PATH.> 
 
 Copied fb.modes to /etc and created a small directfbrc in /etc too:
 
 system = fbdev
 fbdev = /dev/fb0
 
 Running dfbinfo yields following output:
 
 sh-2.05a# dfbinfo
 (*) DirectFB/Config: Parsing config file '/etc/directfbrc'.
 
        ---------------------- DirectFB v0.9.21 ---------------------
              (c) 2000-2002  convergence integrated media GmbH
              (c) 2002-2004  convergence GmbH
         -----------------------------------------------------------
 
 (*) DirectFB/Core: Single Application Core. (with MMX support) (2004-10-05 06:44)
 (!) DirectFB/core/system: No system found!
 (#) DirectFBError [DirectFBCreate() failed]: No (suitable) implementation found!
 sh-2.05a#
 
 I get the same message, when I call 
 
 DirectFBInit(NULL,NULL) ; 
 
 in my application.
 
My application is 'static'-linked to libdirectfb.a(no errors)
We are using ElinOS 3.0 as target-Linux(2.4.25) and only need single-app.

What am I missing ?????
 
 Can I expressly tell DirectFB to use the I810-gfxdriver ????
 
 Is it o.k. to only use I810-lite ????
 
 best regards
 
 [EMAIL PROTECTED]
 
 * Software Manager
  * danelec electronics a/s
  * Blokken 44
  * DK-3460 Birkeroed
  * DENMARK
   * Phone: +45 45821879
    * Fax:  +45 45821979
     * SE-no : DK18630877
      * Email: [EMAIL PROTECTED]
       * http://www.danelec.dk
        * ftp://ftp.danelec.dk
         * Radio call sign: oz1jru
          
 ***************************************************************
 *    If you seek luck, luck will strike you ..... 8o)         *
 ***************************************************************
 
 
 


Reply via email to