FreeBSD on RPI2
Grab a microSD card and USB reader, hook to your freebsd desktop, fetch the
latest snapshot from:
ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0/
Then:
unxz FreeBSD-11.0-CURRENT-arm-armv6-RPI2-20160408-r297692.img.xz
dd if=FreeBSD-11.0-CURRENT-arm-armv6-RPI2-20160408-r297692.img of=/dev/da0 bs=1m
Once the rpi2 is booting FreeBSD, tweak a few items.
In /boot/loader.conf:
autoboot_delay=0
In /etc/rc.conf
hald_enable="YES"
dbus_enable="YES"
To boost from 600mhz to 900mhz (reboot):
echo hw.cpufreq.turbo=1 >> /etc/sysctl.conf
echo force_turbo=1 >> /boot/msdos/config.txt
pkg install xorg
pkg install xf86-video-scfb
pkg install dillo
pkg install x11vnc
Copy xorg.conf to /etc/X11/xorg.conf
To launch Dillo full-screen: dillo -f -g 1920x1024 http://uptownconnections.com
Setup password for x11vnc: x11vnc -storepasswd
To launch x11vnc current screen: x11vnc -forever -usepw -display :0 -tightfilexfer -24to32 -bg
Page on GPIO: https://vzaigrin.wordpress.com/2014/04/18/working-with-gpio-on-raspberry-pi-with-freebsd/
startx
The rpi2 will play HD video using omxplayer. This pkg has conflicts with x11 packages so only one or the other can be installed:
pkg install omxplayer
rehash
omxplayer --loop -o hdmi VideoFile.mp4