Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 2015 19:45:31 +0000
From:      Ulrich Grey <usenet@ulrich-grey.de>
To:        Luiz Otavio O Souza <lists.br@gmail.com>
Cc:        Adrian Chadd <adrian@freebsd.org>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Xorg on a RaspberryPI
Message-ID:  <20150512194531.ae4912e86788ebedd47be3c4@ulrich-grey.de>
In-Reply-To: <CAB=2f8yWho6WL7Ltqf0j1ynzbprLK5gZUQTv-VW-Fm8mMm0Cgg@mail.gmail.com>
References:  <20150510112444.9e12a9739c7e2b91e5fc2ea4@ulrich-grey.de> <CAJ-VmomStkjpX%2BocD5vin6TQ9JyvFMVO7HBnzy6xUSh-OFPeLg@mail.gmail.com> <20150510190300.05772f5ceaaf047d47f32b75@ulrich-grey.de> <CAB=2f8yWho6WL7Ltqf0j1ynzbprLK5gZUQTv-VW-Fm8mMm0Cgg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 12 May 2015 15:09:39 -0300
Luiz Otavio O Souza <lists.br@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@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150512194531.ae4912e86788ebedd47be3c4>