Orange Pi PC2

Orange Pi PC2 Pinout
Orange Pi PC2 40 pin connector

The OpenBSD gpioctl command can be used to access the Orange Pi PC2's gpio pins. Eight gpio devices are in dmesg. After creating devices in /dev for them (only gpio0, gpio1, and gpio2 are created by default) they can be queried to see what pins are usable,

DevicePins
gpio020
gpio10
gpio217
gpio33
gpio416
gpio51
gpio614
gpio710

The pins on the connector map to the gpio device pins as follows.

OpenBSD GPIO pin mapping for PC2

GPIOPinPinGPIO
3.3v125v
0-12345v
0-1156Gnd
0-6782-5
Gnd9102-6
0-111123-14
0-01314Gnd
0-315162-4
3.3v17182-7
0-151920Gnd
0-1621220-2
0-1423240-13
Gnd25260-21
0-1927280-18
0-172930Gnd
0-831326-8
0-93334Gnd
0-1035366-9
3-1137386-6
Gnd39406-7

The gpio0 pin 20 lights a red LED next to the green power LED on the board.

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

Once the boot media is done, insert it into the PC2 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:

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