RPi 2 with 7-inch touchscreen.

Oleksandr Tymoshenko gonzo at bluezbox.com
Mon Mar 28 17:57:51 UTC 2016


> On Mar 28, 2016, at 5:44 AM, Mark R V Murray <markm at FreeBSD.org> 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?

Hi Mark,

I have it working. Here is my config.txt:

disable_commandline_tags=0
device_tree_address=0x100
device_tree=rpi2.dtb
kernel=u-boot.bin
gpu_mem=128
lcd_rotate=2
start_x=1
hdmi_force_hotplug=1
display_default_lcd=1

I guess relevant lines are these:

lcd_rotate=2
hdmi_force_hotplug=1
display_default_lcd=1

I also had touchscreen driver prototype working for it but can't find it at the moment :( 
It's very simple busy read from memory window. Requires FDT modification and
interface to userland which FreeBSD does not have at the moment. 



More information about the freebsd-arm mailing list