Xorg on a RaspberryPI

Ulrich Grey usenet at ulrich-grey.de
Tue May 12 19:46:12 UTC 2015


On Tue, 12 May 2015 15:09:39 -0300
Luiz Otavio O Souza <lists.br at gmail.com> wrote:

> On 10 May 2015 at 16:03, Ulrich Grey wrote:
> > On Sun, 10 May 2015 08:19:51 -0700
> > Adrian Chadd <adrian at freebsd.org> wrote:
> >
> >> hm, there's something odd with 32 bit colours in the fb driver. The
> >> red and blue are swapped. That may be your problem.
> >>
> >> Can you try booting / running it on 24 bit colour instead?
> >
> > I have tried it with Depth 16, 24 and 32 in /etc/xorg.conf and /boot/msdos/config.txt.
> > The colors are still strange.
> >
> > Section "Device"
> >     Identifier  "Generic FB"
> >     Driver      "scfb"
> > EndSection
> >
> > Section "Screen"
> >     Identifier  "Screen"
> >     Device      "Generic FB"
> >     Monitor     "Monitor"
> >     SubSection "Display"
> >        Depth            16 #24 #32
> >     EndSubsection
> > EndSection
> >
> > config.txt:
> > framebuffer_depth=16
> > disable_commandline_tags=1
> > gpu_mem=64
> > device_tree=rpi.dtb
> > device_tree_address=0x100
> > kernel=uboot.img
> 
> I 'think' that the 16bpp mode will work for you, but the above setting
> is being overwritten by default fb settings in FreeBSD.
> 
> Could you post your fb details (from dmesg), it should look like this:

Here are the details:

fb0: 1440x900(1440x900 at 0,0) 24bpp
fb0: fbswap: 0, pitch 4320, base 0x1c288000, screen_size 3939840

> Are you using the standard firmware (from official images or from u-boot-rpi) ?

The image was built with crochet.
It uses u-boot-rpi.
I can not find a man page for fb/fbd.

> The recent firmware versions uses a different color mapping (the
> fbswap flag).  In this case I think you could tell xorg to use the
> appropriate color mapping (but I don't know how to do that), look if
> you can find where you should specify the RGB or BGR mode.  The 16bpp
> mode isn't affected by this change.
> 
> Luiz


More information about the freebsd-arm mailing list