GPIO | Pin | Pin | GPIO |
---|---|---|---|
3.3v | 1 | 2 | 5v |
7-5 | 3 | 4 | 5v |
7-4 | 5 | 6 | Gnd |
2-9 | 7 | 8 | 7-2 |
Gnd | 9 | 10 | 7-3 |
2-6 | 11 | 12 | 2-11 |
2-5 | 13 | 14 | Gnd |
2-8 | 15 | 16 | 2-15 |
3.3v | 17 | 18 | 2-14 |
7-7 | 19 | 20 | Gnd |
7-8 | 21 | 22 | 2-7 |
7-6 | 23 | 24 | 7-9 |
Gnd | 25 | 26 | 2-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 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 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