From owner-freebsd-arm@FreeBSD.ORG Tue May 12 19:46:12 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 31D1D23F; Tue, 12 May 2015 19:46:12 +0000 (UTC) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 983681DCE; Tue, 12 May 2015 19:46:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1431459943; l=1864; s=domk; d=ulrich-grey.de; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References: In-Reply-To:Subject:Cc:To:From:Date; bh=kQ6k1BMZIQ/LRcXufkedm7UST5FhviNRCh0RVouXJGw=; b=NJ5H3C7vD63I2OZcYsWX7UOXk/FQqDvwt2aLTHAwFNq/2SKrPlYzpKBG9q+7G7phCw2 hj0lUsIA7MjkM2V3C4c7FIoNL6swOMrkPVSJ82Ga5ryd7w6XfLPEQhJZaOPQwYJA6Gw+9 Sn04L5J/spHvIW6SE+YMW1f/aygvnYycCg0= X-RZG-AUTH: :OX8Be0W8W+pMC3rDLL/lo2xV/LZTbZkYhOcjg8suic3iYr/B8J9Lzp3TJg49scv/Fumt X-RZG-CLASS-ID: mo00 Received: from quad (p54869F7E.dip0.t-ipconnect.de [84.134.159.126]) by smtp.strato.de (RZmta 37.5 DYNA|AUTH) with ESMTPSA id k064e3r4CJjWWAR (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve sect571r1 with 571 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 12 May 2015 21:45:32 +0200 (CEST) Date: Tue, 12 May 2015 19:45:31 +0000 From: Ulrich Grey To: Luiz Otavio O Souza Cc: Adrian Chadd , "freebsd-arm@freebsd.org" Subject: Re: Xorg on a RaspberryPI Message-Id: <20150512194531.ae4912e86788ebedd47be3c4@ulrich-grey.de> In-Reply-To: References: <20150510112444.9e12a9739c7e2b91e5fc2ea4@ulrich-grey.de> <20150510190300.05772f5ceaaf047d47f32b75@ulrich-grey.de> Organization: - X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; armv6-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 May 2015 19:46:12 -0000 On Tue, 12 May 2015 15:09:39 -0300 Luiz Otavio O Souza wrote: > On 10 May 2015 at 16:03, Ulrich Grey wrote: > > On Sun, 10 May 2015 08:19:51 -0700 > > Adrian Chadd 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