Skip to content

Instantly share code, notes, and snippets.

@vladak
Last active July 5, 2026 20:06
Show Gist options
  • Select an option

  • Save vladak/494047c7d7941f6a3540f5d23ed7012a to your computer and use it in GitHub Desktop.

Select an option

Save vladak/494047c7d7941f6a3540f5d23ed7012a to your computer and use it in GitHub Desktop.
OpenBSD APU notes

OpenBSD APU notes

Install

serial console setup

SeaBIOS (version rel-1.16.0.1-0-g77603a32)

Press F10 key now for boot menu

Select boot device:

1. AHCI/0: KingFast ATA-10 Hard-Disk (111 GiBytes)
2. USB MSC Drive Generic Flash Disk 8.07
3. Payload [setup]
4. Payload [memtest]

Booting from Hard Disk...
Using drive 0, partition 3.
Loading......
probing: pc0 com0 com1 com2 com3 mem[639K 3325M 752M a20=on]
disk: hd0+ hd1+*
>> OpenBSD/amd64 BOOT 3.68
boot> stty com0 115200
boot> set tty com0
switching console to com>> OpenBSD/amd64 BOOT 3.68
boot>
0
cannot open hd0a:/etc/random.seed: No such file or directory
booting hd0a:/7.9/amd64/bsd.rd: 4264850+1827840+3892024+0+720896 [109+484968+336166]=0xb00b80
entry point at 0xffffffff81001000
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California.  All rights reserved.
Copyright (c) 1995-2026 OpenBSD. All rights reserved.  https://www.OpenBSD.org

OpenBSD 7.9 (RAMDISK_CD) #396: Wed May  6 13:25:05 MDT 2026

Lessons learned

  • also, use good known USB cable. Initially I tried micro USB cable that did not work, possibly was good just for charging.
  • good USB cable will make /dev/ttyUSB0 appear on Linux right after connecting
  • type the stty com0 115200 and set tty com0 commands by hand rather than pasting them. When pasting they will usually end up corrupted and the system will either stop writing to console as a result (e.g. 115200 will be missing the last zero) or the system will reset to BIOS after loading the kernel
  • GPT does not work, one has to use MBR
  • use disk install, installXY.img contains all the sets, no need for the network during the install
  • deselect Xorg and games (-x*, -games*)
  • /etc/hostname.* interface description is limited in length (to 64 chars)
    • SIOCSIFDESCR / IFDESCRSIZE = 64
  • leave the swap for savecore (cannot really be disabled it seems, at least not with =NO in /etc/rc.conf.local)
  • there does not seem to be vanity network interface naming, so all parent interfaces in hostname.vlan* have to be rewired when changing the driver of the physical network device
  • do not forget to add the /etc/fstab entry for MFS /tmp: swap /tmp mfs rw,noatime,nodev,nosuid,-s=327680 0 0

actual output

Use (W)hole disk MBR, whole disk (G)PT, (O)penBSD area or (E)dit? [OpenBSD] W
Setting OpenBSD MBR partition to whole sd0...done.

...
sd0*> p G
OpenBSD area: 64-234441648; size: 111.8G; free: 36.6G
#                size           offset  fstype [fsize bsize   cpg]
  a:             1.0G               64  4.2BSD   2048 16384     1 # /
  b:             4.2G          2097216    swap                    
  c:           111.8G                0  unused                    
  d:            10.0G         10941664  4.2BSD   2048 16384     1 # /home
  e:            10.0G         31921152  4.2BSD   2048 16384     1 # /var
  f:            50.0G         52902016  4.2BSD   2048 16384     1 # /usr
sd0*> q
Write new label?: [y]

...


Location of sets? (disk http nfs or 'done') [http] disk
Is the disk partition already mounted? [no] 
Available disks are: sd0 sd1.
Which disk contains the install media? (or 'done') [sd1] 
  a:          1637376             1024  4.2BSD   2048 16384 16142 
  i:              960               64   MSDOS                    
Available sd1 partitions are: a i.
Which sd1 partition has the install sets? (or 'done') [a] 
Pathname to the sets? (or 'done') [7.9/amd64] 


...


gw# fdisk sd0
Disk: sd0       geometry: 14593/255/63 [234441648 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: 00      0   0   0 -      0   0   0 [           0:           0 ] Unused
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] Unused
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] Unused
*3: A6      0   1   2 -  14593  80  63 [          64:   234441584 ] OpenBSD
gw# exit

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment