Every driver here is a loadable kernel module for a stock GENERIC arm64 kernel on FreeBSD 15.1-RELEASE. No kernel rebuild: build a .ko, drop it into /boot/modules and load it. All code is under the BSD 2-Clause licence.
works
Wi-Fi: cywfm
On-board Wi-Fi for Pi 4, Pi 5 and Zero 2 W. Client, access point and monitor mode.
works
Fan: rp1fan
Temperature-driven fan control for the official Pi 5 fan.
first sound
Sound: vchiq + bcm2835_audio
The 3.5 mm jack on the Pi 4 plays a melody. HDMI not tried yet.
code done, radio silent
Bluetooth: ng_h4
HCI over UART for the on-board radio. Works against a simulator, not yet against the chip.
built, not loaded
SoC: temperature, cpufreq, watchdog, RNG
Four small modules for the Broadcom SoC functions FreeBSD misses on UEFI boot.
early code
RP1 I/O chip (Pi 5)
GPIO first, then Ethernet, I2C, SPI, PWM and UART.
What works on which board
| Function | Pi 5 | Pi 4 | Zero 2 W | Module |
|---|---|---|---|---|
| Wi-Fi 2.4 GHz | works | works | works | cywfm |
| Wi-Fi 5 GHz | works | works | no 5 GHz radio | cywfm |
| Fan control | works | n/a | n/a | rp1fan |
| Analogue sound (jack) | out of scope | first sound | not tried | vchiq, bcm2835_audio |
| Bluetooth | blocked: no UART driver | built, never run | simulator only | ng_h4 |
| SoC temperature | built | built | built | rpitemp |
| CPU frequency, watchdog, RNG | built | n/a | n/a | rpifreq, rpiwdog, rpirng |
| GPIO via RP1 | early code | n/a | n/a | rp1, rp1gpio |
Boards marked "expected to work" in the Wi-Fi docs (other Pi 4 revisions, Pi 400, CM4, Pi 3 B+ and 3 A+, CM5, Pi 500) have the right chip but nobody has tried them yet. For owners of those boards, a board report is the most useful contribution.
Before starting: FreeBSD on the card
Download the
FreeBSD-15.1-RELEASE-arm64-aarch64-RPI.img.xzimage from the FreeBSD download site.Write it to the SD card. On FreeBSD:
xz -dc FreeBSD-15.1-RELEASE-arm64-aarch64-RPI.img.xz | dd of=/dev/da0 bs=1m conv=syncCheck the device name twice:
dddoes not ask.Boot the board. Without Wi-Fi, Ethernet or a serial console is needed: pin 6 is GND, pin 8 TXD, pin 10 RXD, 115200 8N1, 3.3 V only.
Log in as
root/root(orfreebsd/freebsd) and change both passwords before anything else.For drivers built on the board, install the kernel sources so
/usr/src/sysexists. Then pick a driver from the list above.
The Pi 5 boots FreeBSD through UEFI firmware (tested with v0.3), so it gets ACPI tables instead of a device tree. That is why several stock FreeBSD drivers that exist for the Pi do not attach on the Pi 5: they only look in the device tree.