Orange Pi Zero 2

Orange Pi Zero 2 Pinout

OpenBSD GPIO pin mapping for Pi Zero 2 26 pin connector

GPIOPinPinGPIO
3.3v125v
7-5345v
7-456Gnd
2-9787-2
Gnd9107-3
2-611122-11
2-51314Gnd
2-815162-15
3.3v17182-14
7-71920Gnd
7-821222-7
7-623247-9
Gnd25262-10

The 13 pin analog connector also has three gpio pins. Numbered from the top pin 2 is gpio8 pin 6, pin 3 is gpio8 pin 16, pin 4 is gpio2 pin 1.

Installing OpenBSD

Installing onto the Orange Pi Zero 2 you'll need the dtb and the u-boot-sun50i packages.

Once the boot media is done, insert it into the Zero2 and boot it. Remember, it defaults to a serial console. Perform the OpenBSD install as usual.

To use HDMI out, create /etc/boot.conf containing the line:

set tty fb0

This tells the kernel to use the frame buffer as the console. You can also run X. To get X running on startup:

doas rcctl enable xenodm

Packages

Packages on the mirrors are named differently to the install, arm64 are in /pub/OpenBSD/6.8/packages/aarch64. To make the package manager easy to use, set the PKG_PATH environment variable to something useful in your .profile, e.g.

PKG_PATH=https://ftp.openbsd.org/pub/OpenBSD/7.3/packages/aarch64/
export PKG_PATH