DirectFB 1.0.0

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If somebody need more recent version of DirectFB (for example to use tslib and so on), version 1.0.0 works with the AVR32. Use the same instructions found inside the README for the 0.9.25.1, but replace directfb-add-avr32.patch with the one below.
I tested with DirectFB examples and it works.

Matteo

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ah, that is just a config.sub and config.guess update :) Are no other patches needed?

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes ! no other patch ;) but you have to apply the other patch you find inside the 0.9.25.1 archive. Until now it seems to work. I'll report any problem.

Matteo

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

There is already a 1.0.1 version that includes this, so now it can be build out of the box:)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi!

I met a problem with DirectFB 1.1.0 on STK1000.

The following is what I've done.

1. First I built freetype-2.3.5:
1.1. To configure

./configure CFLAGS=-O2 --host=avr32-linux --prefix=/usr --sysconfdir=/etc

1.2. To make

make

1.3. To install

make install DESTDIR=/media/disk

* /media/disk is a mount point of SD with AVR32 rootfs.

2. Father I built linux-fusion-7.0.1:
2.1. To make

make ARCH=avr32 CROSS_COMPILE=avr32-linux- KERNEL_BUILD="/linux/linux-2.6.22.atmel.3" KERNEL_SOURCE="/linux/linux-2.6.22.atmel.3"

2.2. To install

make install ARCH=avr32 CROSS_COMPILE=avr32-linux- KERNEL_BUILD="/linux/linux-2.6.22.atmel.3" KERNEL_SOURCE="/linux/linux-2.6.22.atmel.3" DESTDIR=/media/disk

3. And at last I built DirectFB-1.1.0:
3.1. To configure:

./configure CFLAGS=-O2 --host=avr32-linux --prefix=/usr/avr32-linux --with-gfxdrivers=none --with-inputdrivers=keyboard,ps2mouse --disable-video4linux --enable-jpeg --enable-png --enable-gif --enable-shared --enable-multi --disable-sdl --enable-freetype FREETYPE_CONFIG=/usr/avr32-linux/bin/freetype-config --disable-x11

3.2. To make

make

3.3. To install

make install DESTDIR=/media/disk

Then I rebuilt Pong with a link to 1.1.0.
I ran it and the message I got was:

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

(*) DirectFB/Core: Multi Application Core. (2007-09-17 11:31) 
(*) Fusion/SHM: Using MADV_REMOVE (2.6.22.0 >= 2.6.19.2)
(!) Direct/Util: opening '/dev/fusion0' failed
    --> Device or resource busy
(!) Fusion/Init: Opening fusion device (world 0) as 'any' failed!
    --> Device or resource busy
pong.c <98>:
        (#) DirectFBError [DirectFBCreate(&dfb)]: Initialization error!

Then I did delete /dev/fusion0, remake it with 250 and 0 of major and minor respectively.

Finally I ran Pong and got this:

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

(*) DirectFB/Core: Multi Application Core. (2007-09-17 11:31) 
(*) Fusion/SHM: Using MADV_REMOVE (2.6.22.0 >= 2.6.19.2)
(*) Direct/Thread: Running 'Fusion Dispatch' (MESSAGING, 334)...
(!) DirectFB/core/vt: Error opening `/dev/tty0'!
    --> No such device or address
(!) DirectFB/Core: Could not initialize 'system_core' core!
    --> Initialization error!
pong.c <98>:
        (#) DirectFBError [DirectFBCreate(&dfb)]: Initialization error!

What did I miss? or did wrong?
What should I do for run Pong with DirectFB 1.1.0 ?

Thanks in advance!

P.S. Forgot to say, I did make /dev/tty0 with 4 0 maj/min (like other tty in /dev). Should this be a keyboard? Did I need use atkbd?..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ad. 3.1
Add option --disable-multi for disable fusion.

Pong use GPIO keys directly so you don't need any keyboard driver.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Get tried. Same message. Why should I disable fusion? Is it obsolete?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Fusion is required for communication between multiple applications using DFB. I compiled DFB with parameter --disable-multi and got this:

(*) DirectFB/Config: Parsing config file '/etc/directfbrc'.

       ---------------------- DirectFB v0.9.25 ---------------------
             (c) 2000-2002  convergence integrated media GmbH
             (c) 2002-2004  convergence GmbH
        -----------------------------------------------------------

(*) DirectFB/Core: Single Application Core. (2007-09-12 20:10)
(*) Direct/Thread: Running 'VT Switcher' (CRITICAL, 417)...
(*) Direct/Modules: suppress module 'linux_input'
(*) Direct/Modules: suppress module 'ps2mouse'
(*) Direct/Thread: Running 'Keyboard Input' (INPUT, 418)...
 (!!!)  *** UNIMPLEMENTED [fusion_reactor_set_lock] *** [reactor.c:853]
(*) DirectFB/Input: Keyboard 0.9 (convergence integrated media GmbH)
(*) DirectFB/Graphics: Generic Software Rasterizer 0.6 (convergence integrated media GmbH)
(*) DirectFB/Core/WM: Default 0.2 (Convergence GmbH)
(*) Direct/Thread: Running 'EventBufferFeed' (MESSAGING, 419)...
DirectFB/core/vt: Error opening `/dev/tty0'

DFB keyboard driver require Virtual Terminal (VT) compiled in kernel.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

storm32 wrote:

DirectFB/core/vt: Error opening `/dev/tty0'

DFB keyboard driver require Virtual Terminal (VT) compiled in kernel.

I don't get it. If in previous version it was not need to use a virtual or real terminal so why the version 1.1.0 searches for it (tries to open it)?
I tried to modify tty0 in DirectFB-1.1.0/systems/fbdev/vt.c to ttyS0 or fb0, that's not helped.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Master_005 wrote:
storm32 wrote:

DirectFB/core/vt: Error opening `/dev/tty0'

DFB keyboard driver require Virtual Terminal (VT) compiled in kernel.

I don't get it. If in previous version it was not need to use a virtual or real terminal so why the version 1.1.0 searches for it (tries to open it)?
I tried to modify tty0 in DirectFB-1.1.0/systems/fbdev/vt.c to ttyS0 or fb0, that's not helped.

I don't know I still use 0.9.5.
In /etc/directfbrc I disable keyboard for sure:

no-vt
no-vt-switch
disable-module=keyboard
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do somebody know how to use both 0.9.25 and 1.1.0 versions simultaneously?

So sad, the theme is not popular :cry:

Pong won't start without VT kernel support. Dunno what it means about rights of /dev/tty0 here. I decided to add VT to the kernel. Then I found some patch here for little endian support.
Now pong is running for a second till the picture appears. Then it quits.

Any idea?

Thanks in advance!

P.S. Solved. It was wrong MAJOR of /dev/gpio.