FreeBSD/ARM on Raspberry Pi

FreeBSD-CURRENT has supported Raspberry Pi since November, 2012 and Raspberry Pi 2 since March, 2015. If you have questions, ask on the freebsd-arm mailing list.

What is Raspberry Pi?

The Raspberry Pi launched in early 2012 as an inexpensive ($35) PC based on a Broadcom BCM2835 SoC. It was developed by the UK-based Raspberry Pi foundation as an inexpensive system for educational use. As of April 2013, it has sold over a million units.

There are several versions of the Raspberry Pi:

What works

RPi 1

RPi 2

RPi 3

Audio

OK

OK

?

camera

Not Tested

OK

?

ethernet

OK

OK

?

GPIO

OK

OK

?

HDMI

OK

OK

?

i2c

OK

OK

?

SD card

OK

OK

?

SMP

Not avail.

OK

?

SPI

OK

OK

?

USB 2.0

OK

OK

?

watchdog

OK

OK

?

How to Boot the Raspberry Pi

As of January 2013, FreeBSD-CURRENT fully supports either a video console (you'll need a USB keyboard and display connected) or it can be configured to use a serial console (you'll need a USB to TTL Serial Cable such as the one sold by Adafruit.com).

After connecting video, keyboard, and inserting the SDHC card, you connect power to actually boot.

Anatomy of a Raspberry Pi Boot Image

A FreeBSD bootable image for Raspberry Pi has both FAT and UFS partitions containing the following files:

2013-12-12: Please notice that there is a new version if the RPi out, using a "micron" RAM chip, recognizable by the "M with orbit" logo on the chip. These require the newest firmware files (bootcode.bin, start.elf and possibly config.txt) None of the prebuilt images have these at this time, and trying to boot them gives you a single short flash of the green LED and no more.

2014-10-18: The firmware included in the official images has been updated to support B+ model.

2015-06-26: The default passwords for the images are freebsd/freebsd and root/root

How to Build an Image

Raspberry Pi and Raspberry Pi 2 are supported by the Crochet build tool.

GPIO

Perl, Python and Ruby wrappers for interfacing with the GPIO ioctl are available at https://github.com/gonzoua/freebsd-gpio

Camera

Instructions for setting up the Camera are here.

Binary snapshots

Raspberry Pi snapshots are available for FreeBSD 10.3-PRERELEASE for RPI-B and FreeBSD 11-CURRENT for RPI-B and RPI2.

FreeBSD/arm/Raspberry Pi (last edited 2016-05-18 18:21:20 by PaulChvostek)