Home

Awesome

OpenBSD 6.8 on RaspberryPi 4 B

The following notes capture the process I followed to get OpenBSD 6.8 running on a Raspberry Pi 4 (8GB). There is working X11 support (without hardware acceleration) on top of the framebuffer and the framebuffer console does work via HDMI with the latest EEPROM and UEFI as per below.

Supposedly it's possible to boot directly from usb without needing an sdcard for the UEFI but I have not had success with that yet.

Update: As of 4/17/2021, there has been some cleanup and improvements to the Raspberry Pi 4 boot process on OpenBSD 6.9 without requiring all the extra steps involving UEFI firmware, see more details below:

https://marc.info/?l=openbsd-cvs&m=161869438709739&w=2

https://marc.info/?l=openbsd-cvs&m=161869450909798&w=2

Update EEPROM via Raspberry Pi OS

  1. Boot Raspberry Pi OS on an sdcard
  2. Run updates:
apt update && apt upgrade -y

rpi-eeprom-update

Load the latest UEFI onto an sdcard (or USB drive)

Follow these steps: https://github.com/pftf/RPi4#installation

2021-04-11 Update:

Set UEFI settings for OpenBSD compatability

Save the above with F10 and Reset from the main UEFI menu.

You can also try to set the boot order to have your USB drive first but I found that this setting would never actually save and take effect upon a reboot.

Install OpenBSD

Load miniroot onto a usb drive

# from an OpenBSD machine
dd if=miniroot68.img of=/dev/rsdXc bs=1m status=progress

# Or from a linux machine
dd if=miniroot68.img of=/dev/sdX bs=1M status=progress

Boot the OpenBSD installer (serial console NOT required)