From owner-freebsd-arm@freebsd.org Mon Mar 28 17:57:51 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D3D5AE18AF for ; Mon, 28 Mar 2016 17:57:51 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from id.bluezbox.com (id.bluezbox.com [45.55.20.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5BF74166E; Mon, 28 Mar 2016 17:57:51 +0000 (UTC) (envelope-from gonzo@id.bluezbox.com) Received: from [208.184.220.60] (helo=r2d2.dolby.net) by id.bluezbox.com with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.86 (FreeBSD)) (envelope-from ) id 1akb76-000AFA-TE; Mon, 28 Mar 2016 10:38:10 -0700 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: RPi 2 with 7-inch touchscreen. From: Oleksandr Tymoshenko In-Reply-To: Date: Mon, 28 Mar 2016 10:37:37 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Mark R V Murray X-Mailer: Apple Mail (2.3124) Sender: gonzo@id.bluezbox.com X-Spam-Level: -- X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: > On Mar 28, 2016, at 5:44 AM, Mark R V Murray wrote: > > Hi Folks, > > I have an RPi2 and I'm having some difficulties with the "official" 7-inch touch-screen: https://www.raspberrypi.org/blog/the-eagerly-awaited-raspberry-pi-display/ > > I know the touchscreen works, because it works with RaspBian. I can't get any activity out of it with FreeBSD, however. > > I'm using FreeBSD-11-CURRENT, and the boot image is based on an 11-CURRENT "official" download, but I added a very recent build of sysutils/u-boot-rpi2. > > I can build CURRENT on the machine (using a USB SSD, manually mounted), and I made sure I had the latest RPI2.DTB file in the FAT partition. > > The screen stays stubbornly OFF. > > Here is the relevant extract of CONFIG.TXT: > > hdmi_force_unplug=1 > or > hdmi_force_hotplug=1 > or > #hdmi_safe=1 > or > hdmi_ignore_edid=0xa5000080 > hdmi_drive=2 > hdmi_group=2 > hdmi_mode=28 > > ... and I've tried a couple of combinations of the above with no luck. I can make an HDMI TV work, but not the inbuilt ribbon-cable interface. > > I suspect the DTB file as FreeBSD's is much smaller than RaspBian's, but I'm not all that clued in that department. > > Has anyone had any better luck than me? [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: raspberrypi.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2016 17:57:51 -0000 > On Mar 28, 2016, at 5:44 AM, Mark R V Murray = wrote: >=20 > Hi Folks, >=20 > I have an RPi2 and I'm having some difficulties with the "official" = 7-inch touch-screen: = https://www.raspberrypi.org/blog/the-eagerly-awaited-raspberry-pi-display/= >=20 > I know the touchscreen works, because it works with RaspBian. I can't = get any activity out of it with FreeBSD, however. >=20 > I'm using FreeBSD-11-CURRENT, and the boot image is based on an = 11-CURRENT "official" download, but I added a very recent build of = sysutils/u-boot-rpi2. >=20 > I can build CURRENT on the machine (using a USB SSD, manually = mounted), and I made sure I had the latest RPI2.DTB file in the FAT = partition. >=20 > The screen stays stubbornly OFF. >=20 > Here is the relevant extract of CONFIG.TXT: >=20 > hdmi_force_unplug=3D1 > or > hdmi_force_hotplug=3D1 > or > #hdmi_safe=3D1 > or > hdmi_ignore_edid=3D0xa5000080 > hdmi_drive=3D2 > hdmi_group=3D2 > hdmi_mode=3D28 >=20 > ... and I've tried a couple of combinations of the above with no luck. = I can make an HDMI TV work, but not the inbuilt ribbon-cable interface. >=20 > I suspect the DTB file as FreeBSD's is much smaller than RaspBian's, = but I'm not all that clued in that department. >=20 > Has anyone had any better luck than me? Hi Mark, I have it working. Here is my config.txt: disable_commandline_tags=3D0 device_tree_address=3D0x100 device_tree=3Drpi2.dtb kernel=3Du-boot.bin gpu_mem=3D128 lcd_rotate=3D2 start_x=3D1 hdmi_force_hotplug=3D1 display_default_lcd=3D1 I guess relevant lines are these: lcd_rotate=3D2 hdmi_force_hotplug=3D1 display_default_lcd=3D1 I also had touchscreen driver prototype working for it but can't find it = at the moment :(=20 It's very simple busy read from memory window. Requires FDT modification = and interface to userland which FreeBSD does not have at the moment.=20