directfb and atmel_lcdfb

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

Does anybody use directfb (from BSP 2.0 CD) with the new lcdc driver atmel_lcdfb (from 2.6.22.atmel3 kernel tree) ?

When I try to use one of the directfb examples (df_particle or others) I can see this error:

(!) DirectFB/FBDev: Unsupported pixelformat: rgba 8/0, 8/8, 8/16, 0/0 (24bit)

With the same rootfs and kernel with the sisdafb driver the example works well.

It seems related to the RGB/BRG order. In fact I use RGB24, but I think the mode used by the lcd controller is BRG24, but this is not supported by directfb.

My fb.modes is

mode "480x234-56"
# D: 6.891 MHz, H: 13.949 kHz, V: 56.022 Hz
geometry 480 234 480 234 32
timings 145116 8 2 12 2 4 1
rgba 8/0,8/8,8/16,0/0
endmode

My directfbrc is

depth=16
pixelformat=RGB24
fbdev=/dev/fb0
penmount-device=/dev/event0
no-vt

Matteo

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

The problem is that the atmel_lcdfb use big endian memory ordering format (in LCDCON2) and sisdafb use the little endian one. Is there any reason why atmel_lcdfb must use big endian memory ordering format ?

Matteo

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

This is a patch modify atmel_lcdfb to use little endian ordering. In setup.c ATMEL_LCDC_MEMOR_BIG must be removed also.

Matteo

Attachment(s): 

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

this is working ?

What is the dependancy ? Can we use web browswer in it ?

dumarjo

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

If you can find a directfb-rendering web browser sure! DirectFB is actually supported on the BSP.

AFAIK DirectFB doesn't have any dependency except Linux and a framebuffer device.

-S.

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

do you think that this browser can work ?

http://www.directfb.org/wiki/ind...

dumarjo

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

At first glance, sure. Try it! You'll need gtkdfb (which I didn't know existed but cool!) and fusion (which ships with the bsp iirc).

And there's a directfb port for gnash too, sounds good!

Good luck with that!

-S.

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

I was able to compile Firefox 1.5.0.3 with thous patches on avr32. (using gtk+ 2.11.2 with DirectFB support)

But running it was another story. It outputed alot of debug/warning/error messages and finally segfaulted. I haven't looked much more into it but i will, my project depends on getting a working browser :)

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

arnarmar wrote:
I was able to compile Firefox 1.5.0.3 with thous patches on avr32. (using gtk+ 2.11.2 with DirectFB support)

But running it was another story. It outputed alot of debug/warning/error messages and finally segfaulted. I haven't looked much more into it but i will, my project depends on getting a working browser :)

Same thing here. The project need to get a browser working on AVR32.

I will try another one than firefox i think.

Dumarjo

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

Quote:
This is a patch modify atmel_lcdfb to use little endian ordering. In setup.c ATMEL_LCDC_MEMOR_BIG must be removed also.

Which setup.c to modify, the setup.c in project_build_av32 or that one in toolchain_build_avr32 ?

Thanks.