Apple MacBook Air 13.6-inch M2 - OpenBSD

Hardware info on main page.

OpenBSD / arm64

partition info

sd0: 1> print g
Disk: sd0       Usable LBA: 6 to 61279338 [234 Gigabytes]
GUID: bfa84943-3a1b-430a-af7a-d8d9f0708cdf
   #: type                                 [       start:         size ]
      guid                                 name
------------------------------------------------------------------------
   0: APFS ISC                             [           6:            0G]
      aabc200b-aa74-4019-85a9-cf9323a5d6c0 iBootSystemContainer
   1: APFS                                 [      128006:           64G]
      86325945-e3e6-4a8d-9e1d-5d517a8f44e6 Container
   2: APFS                                 [    16988934:            2G]
      5e02b940-ac44-4962-b129-dd1307cef35a 
   3: EFI Sys                              [    17599238:            0G]
      b92c7ffe-2956-4cd1-894f-5df0fe11ee0f 
   4: Linux files*                         [    17727238:            1G]
      40e3fa35-8f83-4770-a72d-c25ab4231473 
   5: Linux files*                         [    17989382:           29G]
      d810b6db-d369-4fcb-b818-9c847a4a1603 
   6: APFS Recovery                        [    59968630:            5G]
      54c679e3-84e8-4449-bd64-8925e20aaa1d RecoveryOSContainer
   7: EFI Sys                              [    25533702:            0G]
      c3c93542-977a-4c66-97a6-2f5d06427b42 
   8: OpenBSD                              [    25599238:           10G]
      7f695388-db11-47ff-9103-2e0c09e8df8d openbsd

usb boot

usb reset
usb start
run bootcmd_usb0

Hints: startup options - hold the power button until the startup options screen shows

Links

OpenBSD arm64, bsd-hardware.info probe, xsettingsd, ArchWiki: X resources, OpenBSD and High DPI Displays, Linux High DPI Settings, ksh cheatsheet (PDF), How to Master Korn Shell Scripting, You Have Installed OpenBSD. Now For The Daily Tasks.,

History

2025-04-27: and the OpenBSD 7.7 upgrade overwrote the Asahi Linux EFI bootloader on the first EFI partition - again.

2025-04-27: sd0a - run sysmerge

tim2obsd$ doas sysmerge

========================================================================

===> Displaying differences between ./etc/ssh/sshd_config and installed version:

--- /etc/ssh/sshd_config        Mon Sep 30 18:07:22 2024
+++ ./etc/ssh/sshd_config       Tue Apr 22 07:32:42 2025
@@ -1,4 +1,4 @@
-#      $OpenBSD: sshd_config,v 1.104 2021/07/02 05:11:21 dtucker Exp $
+#      $OpenBSD: sshd_config,v 1.105 2024/12/03 14:12:47 dtucker Exp $

 # This is the sshd server system-wide configuration file.  See
 # sshd_config(5) for more information.
@@ -27,7 +27,7 @@
 # Authentication:

 #LoginGraceTime 2m
-PermitRootLogin no
+#PermitRootLogin prohibit-password
 #StrictModes yes
 #MaxAuthTries 6
 #MaxSessions 10
@@ -51,11 +51,13 @@
 # Don't read the user's ~/.rhosts and ~/.shosts files
 #IgnoreRhosts yes

-# To disable tunneled clear text passwords, change to no here!
+# To disable tunneled clear text passwords, change to "no" here!
 #PasswordAuthentication yes
 #PermitEmptyPasswords no

-# Change to no to disable s/key passwords
+# Change to "no" to disable keyboard-interactive authentication.  Depending on
+# the system's configuration, this may involve passwords, challenge-response,
+# one-time passwords or some combination of these and other methods.
 #KbdInteractiveAuthentication yes

 #AllowAgentForwarding yes

  Use 'd' to delete the temporary ./etc/ssh/sshd_config
  Use 'i' to install the temporary ./etc/ssh/sshd_config
  Use 'm' to merge the temporary and installed versions
  Use 'v' to view the diff results again

  Default is to leave the temporary file to deal with by hand

How should I deal with this? [Leave it for later] i

===> Updating /etc/ssh/sshd_config

2025-04-27: sd0a - after reboot (twice, one for upgrade, one to boot into new version) OpenBSD 7.7 is in

tim2obsd$ uname -a
OpenBSD tim2obsd.local 7.7 GENERIC.MP#361 arm64

2025-04-27: sd0a - sysupgrade

tim2obsd$ doas sysupgrade -n
Fetching from https://cdn.openbsd.org/pub/OpenBSD/7.7/arm64/
SHA256.sig   100% |***********************************************************************************|  1899       00:00    
Signature Verified
BUILDINFO    100% |***********************************************************************************|    54       00:00    
Verifying old sets.
INSTALL.arm64 100% |**********************************************************************************| 41786       00:00    
base77.tgz   100% |***********************************************************************************|   336 MB    06:37    
bsd          100% |***********************************************************************************| 18322 KB    00:08    
bsd.mp       100% |***********************************************************************************| 18388 KB    00:08    
bsd.rd       100% |***********************************************************************************| 18084 KB    00:08    
comp77.tgz   100% |***********************************************************************************| 78735 KB    00:29    
game77.tgz   100% |***********************************************************************************|  2750 KB    00:04    
man77.tgz    100% |***********************************************************************************|  8282 KB    00:07    
xbase77.tgz  100% |***********************************************************************************| 52061 KB    00:14    
xfont77.tgz  100% |***********************************************************************************| 23022 KB    00:02    
xserv77.tgz  100% |***********************************************************************************| 15606 KB    00:09    
xshare77.tgz 100% |***********************************************************************************|  4570 KB    00:05    
Verifying sets.
Fetching updated firmware.
fw_update: add apple-boot,bwfm; update none
Will upgrade on next reboot

2025-04-27: sd0a - pkg_delete - remove all packages before sysupgrade

tim2obsd$ doas pkg_delete -X
libcdio-paranoia-2.0.1: ok
libogg-1.3.5:libtheora-1.2.20190601p0: ok
libogg-1.3.5: ok
pcre2-10.37p2:firefox-130.0.1p0: ok
pcre2-10.37p2:feh-3.10.3: ok
pcre2-10.37p2:imlib2-1.12.3: ok
pcre2-10.37p2:libjxl-0.11.0: ok
pcre2-10.37p2:dunst-1.9.2p0: ok
pcre2-10.37p2:libheif-1.18.0: ok
pcre2-10.37p2:gtk+3-3.24.43: ok
pcre2-10.37p2:adwaita-icon-theme-46.2: ok
pcre2-10.37p2:librsvg-2.58.4: ok
pcre2-10.37p2:libnotify-0.8.3: ok
pcre2-10.37p2:rofi-1.7.5p1: ok
pcre2-10.37p2:adwaita-icon-theme-legacy-46.2: ok
pcre2-10.37p2:gtk4-update-icon-cache-4.14.5: ok
pcre2-10.37p2:gdk-pixbuf-2.42.12: ok
pcre2-10.37p2:shared-mime-info-2.4p0: ok
pcre2-10.37p2:dconf-0.40.0p0: ok
pcre2-10.37p2:libass-0.17.1p0: ok
pcre2-10.37p2:pango-1.54.0: ok
pcre2-10.37p2:harfbuzz-9.0.0p0: ok
pcre2-10.37p2:cairo-1.18.2p0: ok
pcre2-10.37p2:at-spi2-core-2.52.0: ok
pcre2-10.37p2:desktop-file-utils-0.27: ok
pcre2-10.37p2:glib2-2.80.4: ok
pcre2-10.37p2: ok
hw-probe-1.6: ok
icu4c-75.1p0v0: ok
zimg-3.0.5: ok
pciutils-3.11.1: ok
giflib-5.2.2:libwebp-1.4.0: ok
giflib-5.2.2: ok
wayland-1.22.0p0:libxkbcommon-1.7.0: ok
wayland-1.22.0p0: ok
libusb1-1.0.27:usbutils-007p0: ok
libusb1-1.0.27: ok
ngtcp2-1.7.0:git-2.46.1: ok
ngtcp2-1.7.0:curl-8.10.1: ok
ngtcp2-1.7.0: ok
nghttp3-1.5.0: ok
hicolor-icon-theme-0.18: ok
tiff-4.6.0p0:openjp2-2.5.2: ok
tiff-4.6.0p0:libraw-0.21.2: ok
tiff-4.6.0p0:lcms2-2.16p0: ok
tiff-4.6.0p0: ok
nghttp2-1.63.0: ok
lzo2-2.10p2: ok
libexif-0.6.24: ok
gsm-1.0.22: ok
libvidstab-1.1.0: ok
libv4l-1.24.1: ok
jasper-4.2.4: ok
lz4-1.10.0:zstd-1.5.6: ok
lz4-1.10.0: ok
xvidcore-1.3.7: ok
epoll-shim-0.0.20240608: ok
libunibreak-5.1: ok
libb2-0.98.1v0:py3-packaging-24.1: ok
libb2-0.98.1v0:python-3.11.10p0: ok
libb2-0.98.1v0: ok
libudfread-1.1.2: ok
jpeg-3.0.3v0: ok
libcddb-1.3.2p1:libcdio-2.1.0: ok
libcddb-1.3.2p1: ok
dav1d-1.2.1p3: ok
p5-Mail-Tools-2.21p0: ok
gettext-runtime-0.22.5:avahi-0.8p10: ok
gettext-runtime-0.22.5:avahi-libs-0.8p5: ok
gettext-runtime-0.22.5:gdbm-1.24: ok
gettext-runtime-0.22.5: ok
xz-5.6.2:libxml-2.13.3p0: ok
xz-5.6.2: ok
libevent-2.1.12p1: ok
libde265-1.0.15: ok
smartmontools-7.4p0: ok
libdaemon-0.14p1: ok
graphite2-1.3.14: ok
highway-1.1.0: ok
libdvdcss-1.4.3: ok
gitwrapper-0.103: ok
p5-Time-TimeDate-2.33: ok
x265-3.6: ok
sdl2-2.30.6: ok
libid3tag-0.15.1bp6: ok
libffi-3.4.6: ok
png-1.6.43: ok
xsettingsd-1.0.2p0: ok
dbus-1.14.10v0:dbus-daemon-launch-helper-1.14.10: ok
dbus-1.14.10v0: ok
libsamplerate-0.2.2p0: ok
libiconv-1.17: ok
bzip2-1.0.8p0: ok
nss-3.104: ok
usbutil-0.5p1: ok
speexdsp-1.2.1: ok
sqlite3-3.44.2: ok
quirks-7.50: ok
p5-Error-0.17029: ok
startup-notification-0.12p8: ok
aom-3.9.1p0: ok
updatedb-0p0: ok
cvsps-2.1p3: ok
brotli-1.0.9p0: ok
nspr-4.35: ok
fribidi-1.0.15: ok
lscpu-1.2.0: ok
Running tags: ok
Read shared items: ok
--- -avahi-0.8p10 -------------------
You should also run /usr/sbin/userdel _avahi
You should also run /usr/sbin/groupdel _avahi
--- -dbus-1.14.10v0 -------------------
You should also remove /etc/machine-id
You should also run /usr/sbin/userdel _dbus
You should also run /usr/sbin/groupdel _dbus
--- -dconf-0.40.0p0 -------------------
You should also run rm -rf /etc/dconf/db/*
You should also run rm -rf /etc/dconf/profile/*
--- -firefox-130.0.1p0 -------------------
You may wish to remove /usr/local/share/fonts/firefox from your font path
--- -git-2.46.1 -------------------
You should also run /usr/sbin/userdel _gitdaemon
You should also run /usr/sbin/groupdel _gitdaemon
--- -libxml-2.13.3p0 -------------------
You should also remove /var/db/xmlcatalog

2025-04-27: sd0a - df situation now

tim2obsd$ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/sd0a      1.1G    133M    953M    13%    /
/dev/sd0e      1.9G    257M    1.6G    14%    /home
/dev/sd0d      2.9G    2.8G   -1.2M   101%    /usr

disklabel as is

tim2obsd$ doas disklabel sd0
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: APPLE SSD AP0256
duid: 48d84f8f07343fb3
flags:
bytes/sector: 4096
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 3814
total sectors: 61279344
boundstart: 26266118
boundend: 28887558

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:           304690         26266118  4.2BSD   4096 32768  9446 # /
  b:            65536         26570808    swap                    # none
  c:         61279344                0  unused                    
  d:           786432         26636344  4.2BSD   4096 32768 21726 # /usr
  e:           524288         27422776  4.2BSD   4096 32768 16384 # /home
  i:           128000                6 unknown                    
  j:         16860928           128006 unknown                    
  k:           610304         16988934 unknown                    
  l:           128000         17599238   MSDOS                    
  m:           262144         17727238  ext2fs                    
  n:          7544320         17989382  ext2fs                    
  o:           610304         25533702 unknown                    
  p:           122112         26144006   MSDOS                    

disklabel built in editor

tim2obsd$ doas disklabel -E sd0 
Label editor (enter '?' for help at any prompt)
sd0> ?
Available commands:
 ? | h    - show help                 n [part] - set mount point
 A        - auto partition all space  p [unit] - print partitions
 a [part] - add partition             q        - quit & save changes
 b        - set OpenBSD boundaries    R [part] - resize auto allocated partition
 c [part] - change partition size     r        - display free space
 D        - reset label to default    s [path] - save label to file
 d [part] - delete partition          U        - undo all changes
 e        - edit label description    u        - undo last change
 i        - modify disklabel UID      w        - write label to disk
 l [unit] - print disk label header   x        - exit & lose changes
 M        - disklabel(8) man page     z        - delete all partitions
 m [part] - modify partition

Suffixes can be used to indicate units other than sectors:
 'b' (bytes), 'k' (kilobytes), 'm' (megabytes), 'g' (gigabytes) 't' (terabytes)
 'c' (cylinders), '%' (% of total disk), '&' (% of free space).
Values in non-sector units are truncated to the nearest cylinder boundary.
sd0> p g
OpenBSD area: 26266118-28887558; size: 10.0G; free: 3.6G
#                size           offset  fstype [fsize bsize   cpg]
  a:             1.2G         26266118  4.2BSD   4096 32768  9446 # /
  b:             0.2G         26570808    swap                    # none
  c:           233.8G                0  unused                    
  d:             3.0G         26636344  4.2BSD   4096 32768 21726 # /usr
  e:             2.0G         27422776  4.2BSD   4096 32768 16384 # /home
  i:             0.5G                6 unknown                    
  j:            64.3G           128006 unknown                    
  k:             2.3G         16988934 unknown                    
  l:             0.5G         17599238   MSDOS                    
  m:             1.0G         17727238  ext2fs                    
  n:            28.8G         17989382  ext2fs                    
  o:             2.3G         25533702 unknown                    
  p:             0.5G         26144006   MSDOS                    

2025-04-27: it turns out that the OpenBSD installer clobbers the EFI partition for Asahi Linux, that is the reason why only OpenBSD booted. After fixing both EFI partitions, both Asahi Linux and OpenBSD boots again.

2025-04-21: sd0a - pkg_add - install dunst

tim2obsd$ doas pkg_add dunst
doas (tingo@tim2obsd.local) password: 
quirks-7.50 signed on 2024-09-30T18:52:07Z
dunst-1.9.2p0:libnotify-0.8.3: ok
dunst-1.9.2p0: ok

2025-04-21: sd0a - X - I ended up with this .xinitrc file for now

tim2obsd$ cat ~/.xinitrc
# ---  .xinitrc  ---
export GDK_SCALE=2.0
export GDK_DPI_SCALE=0.5
export QT_SCALE_FACTOR=2.0
#xrdb -load $HOME/.Xresources
[[ -f ~/.Xresources ]] && xrdb -merge -I$HOME ~/.Xresources
#xsetroot -solid grey &
xsetroot -solid lightblue &
/usr/local/bin/xsettingsd &
[[ -f ~/data/backgrounds/openbsd-background.jpg ]] && /usr/local/bin/feh --bg-fill ~/data/backgrounds/openbsd-background.jpg &
xinput set-prop "/dev/wsmouse" "Device Accel Constant Deceleration" 0.5 &
#oclock -geometry 75x75-0-0 &
#xload -geometry -80-0 &
xterm -bg white -fg black +sb &
#cwm
#twm
fvwm

it is usable - barely.

2025-04-21: sd0a - pkg_add - install xsettingsd

tim2obsd$ doas pkg_add xsettingsd    
quirks-7.50 signed on 2024-09-30T18:52:07Z
xsettingsd-1.0.2p0: ok

2025-04-20: sd0a - X - tried adding (update: yes, GDK_SCALE is an integer)

export GDK_SCALE=2.0
export QT_SCALE_FACTOR=2.0

to ~/.xinitrc but things then get to big. Using 1.5 as a scale facot insted doesn't help anything. Also tried using

xrandr --output eDP-1 --scale 1.2x1.2

but that also make things too big. Hm. And using 1.5 or 0.8 instead doesn't help either.

2025-04-20: sd0a - pkg_add - install feh

tim2obsd$ doas pkg_add feh    
quirks-7.50 signed on 2024-09-30T18:52:07Z
feh-3.10.3:libexif-0.6.24: ok
feh-3.10.3:giflib-5.2.2: ok
feh-3.10.3:brotli-1.0.9p0: ok
feh-3.10.3:highway-1.1.0: ok
feh-3.10.3:lcms2-2.16p0: ok
feh-3.10.3:libjxl-0.11.0: ok
feh-3.10.3:jasper-4.2.4: ok
feh-3.10.3:libraw-0.21.2: ok
feh-3.10.3:libid3tag-0.15.1bp6: ok
feh-3.10.3:libwebp-1.4.0: ok
feh-3.10.3:openjp2-2.5.2: ok
feh-3.10.3:dav1d-1.2.1p3: ok
feh-3.10.3:libde265-1.0.15: ok
feh-3.10.3:aom-3.9.1p0: ok
feh-3.10.3:x265-3.6: ok
feh-3.10.3:libheif-1.18.0: ok
feh-3.10.3:imlib2-1.12.3: ok
feh-3.10.3: ok
Running tags: ok

2025-04-20: sd0a - pkg_add install git

tim2obsd$ doas pkg_add git
quirks-7.50 signed on 2024-09-30T18:52:07Z
git-2.46.1:cvsps-2.1p3: ok
git-2.46.1:gitwrapper-0.103: ok
git-2.46.1:p5-Error-0.17029: ok
git-2.46.1:p5-Time-TimeDate-2.33: ok
git-2.46.1:p5-Mail-Tools-2.21p0: ok
git-2.46.1: ok
The following new rcscripts were installed: /etc/rc.d/gitdaemon
See rcctl(8) for details.
New and changed readme(s):
    /usr/local/share/doc/pkg-readmes/git

pk_add - install firefox

tim2obsd$ doas pkg_add firefox
quirks-7.50 signed on 2024-09-30T18:52:07Z
firefox-130.0.1p0:jpeg-3.0.3v0: ok
firefox-130.0.1p0:xz-5.6.2: ok
firefox-130.0.1p0:lz4-1.10.0: ok
firefox-130.0.1p0:zstd-1.5.6: ok
firefox-130.0.1p0:tiff-4.6.0p0: ok
firefox-130.0.1p0:libxml-2.13.3p0: ok
firefox-130.0.1p0:libffi-3.4.6: ok
firefox-130.0.1p0:sqlite3-3.44.2: ok
firefox-130.0.1p0:libb2-0.98.1v0: ok
firefox-130.0.1p0:bzip2-1.0.8p0: ok
firefox-130.0.1p0:python-3.11.10p0: ok
firefox-130.0.1p0:py3-packaging-24.1: ok
firefox-130.0.1p0:pcre2-10.37p2: ok
firefox-130.0.1p0:glib2-2.80.4: ok
firefox-130.0.1p0:shared-mime-info-2.4p0: ok
firefox-130.0.1p0:png-1.6.43: ok
firefox-130.0.1p0:gdk-pixbuf-2.42.12: ok
firefox-130.0.1p0:hicolor-icon-theme-0.18: ok
firefox-130.0.1p0:gtk4-update-icon-cache-4.14.5: ok
firefox-130.0.1p0:desktop-file-utils-0.27: ok
firefox-130.0.1p0:epoll-shim-0.0.20240608: ok
firefox-130.0.1p0:wayland-1.22.0p0: ok
firefox-130.0.1p0:adwaita-icon-theme-legacy-46.2: ok
firefox-130.0.1p0:lzo2-2.10p2: ok
firefox-130.0.1p0:cairo-1.18.2p0: ok
firefox-130.0.1p0:graphite2-1.3.14: ok
firefox-130.0.1p0:harfbuzz-9.0.0p0: ok
firefox-130.0.1p0:fribidi-1.0.15: ok
firefox-130.0.1p0:pango-1.54.0: ok
firefox-130.0.1p0:librsvg-2.58.4: ok
firefox-130.0.1p0:adwaita-icon-theme-46.2: ok
firefox-130.0.1p0:at-spi2-core-2.52.0: ok
firefox-130.0.1p0:libxkbcommon-1.7.0: ok
firefox-130.0.1p0:dconf-0.40.0p0: ok
firefox-130.0.1p0:gtk+3-3.24.43: ok
firefox-130.0.1p0:nspr-4.35: ok
firefox-130.0.1p0:nss-3.104: ok
firefox-130.0.1p0:icu4c-75.1p0v0: ok
firefox-130.0.1p0: ok
Running tags: ok
Updating font cache: ok
New and changed readme(s):
    /usr/local/share/doc/pkg-readmes/firefox
    /usr/local/share/doc/pkg-readmes/glib2
    /usr/local/share/doc/pkg-readmes/gtk+3

2025-04-20: sd0a - wireless - sometimes / after a few hours - the wireless interface stops sending / forwarding packet. Setting it down en aup via ifconfig doesn't help, neither does

doas ifconfig bwfm0 down
doas sh /etc/netstart bwfm0

only workaround is to reboot the machine.

2025-04-20: sd0a - pkg_add - install hw-probe

tim2obsd$ doas pkg_add hw-probe    
quirks-7.50 signed on 2024-09-30T18:52:07Z
hw-probe-1.6:lscpu-1.2.0: ok
hw-probe-1.6:pciutils-3.11.1: ok
hw-probe-1.6:smartmontools-7.4p0: ok
hw-probe-1.6:usbutil-0.5p1: ok
hw-probe-1.6:libusb1-1.0.27: ok
hw-probe-1.6:usbutils-007p0: ok
hw-probe-1.6: ok
The following new rcscripts were installed: /etc/rc.d/smartd
See rcctl(8) for details.

enable and start smartd

tim2obsd$ doas rcctl enable smartd
tim2obsd$ doas rcctl start smartd  
smartd(ok)

2025-04-18: sd0a - Xorg - note to self: 'startx' works for 'user' if 'user' logs into the first terminal (/dev/ttyC0) on the console.

2025-04-18: sd0a - Xorg - the high resolution display (2560x1600) makes text and everything else small

tim2obsd$ DISPLAY=:0 xrandr
Screen 0: minimum 320 x 200, current 2560 x 1600, maximum 16384 x 16384
eDP-1 connected primary 2560x1600+0+0 (normal left inverted right x axis y axis) 290mm x 181mm
   2560x1600     60.00*+

2025-04-18: sd0a - ntp - check with ntpctl usage

tim2obsd$ ntpctl
usage: ntpctl -s all | peers | Sensors | status

status

tim2obsd$ ntpctl -s status
5/5 peers valid, constraint offset -1s, clock synced, stratum 4

view peers

tim2obsd$ ntpctl -s peers  
peer
   wt tl st  next  poll          offset       delay      jitter
162.159.200.1 time.cloudflare.com
 *  1 10  3    5s   30s         1.300ms     4.748ms     2.418ms
162.159.200.123 from pool pool.ntp.org
    1 10  3   28s   34s         1.281ms     4.512ms     2.720ms
185.175.56.208 from pool pool.ntp.org
    1 10  2    2s   32s         1.568ms     4.882ms     2.931ms
185.181.61.91 from pool pool.ntp.org
    1 10  3   17s   34s         0.607ms     6.090ms     2.812ms
162.159.200.1 from pool pool.ntp.org
 *  1 10  3   23s   30s         1.055ms     4.806ms     2.967ms

2025-04-18: sd0a - battery life - use apm

tim2obsd$ apm
Battery state: high, 68% remaining, 592 minutes life estimate
AC adapter state: not connected
Performance adjustment mode: manual (660 MHz)

2025-04-18: sd0a - pkg_add install avahi

tim2obsd$ doas pkg_add avahi    
quirks-7.50 signed on 2024-09-30T18:52:07Z
avahi-0.8p10:libdaemon-0.14p1: ok
avahi-0.8p10:libevent-2.1.12p1: ok
avahi-0.8p10:libiconv-1.17: ok
avahi-0.8p10:gettext-runtime-0.22.5: ok
avahi-0.8p10:dbus-1.14.10v0: ok
avahi-0.8p10:avahi-libs-0.8p5: ok
avahi-0.8p10:dbus-daemon-launch-helper-1.14.10: ok
avahi-0.8p10:gdbm-1.24: ok
avahi-0.8p10: ok
The following new rcscripts were installed: /etc/rc.d/avahi_daemon /etc/rc.d/avahi_dnsconfd /etc/rc.d/messagebus
See rcctl(8) for details.
New and changed readme(s):
    /usr/local/share/doc/pkg-readmes/avahi
    /usr/local/share/doc/pkg-readmes/dbus

enable it

tim2obsd$ doas rcctl enable messagebus
tim2obsd$ doas rcctl enable avahi_daemon

start it

tim2obsd$ doas rcctl start messagebus    
messagebus(ok)
tim2obsd$ doas rcctl start avahi_daemon
avahi_daemon(ok)

2025-04-18: sd0a - pkg_add - install curl

tim2obsd$ doas pkg_add curl    
quirks-7.50:updatedb-0p0: ok
quirks-7.50 signed on 2024-09-30T18:52:07Z
quirks-7.50: ok
curl-8.10.1:ngtcp2-1.7.0: ok
curl-8.10.1:nghttp2-1.63.0: ok
curl-8.10.1:nghttp3-1.5.0: ok
curl-8.10.1: ok

2025-04-18: sd0a - and after fixing a typo in /etc/hostname.bwfm0, I now connect to my network upon reboot.

tim2obsd$ ifconfig bwfm0
bwfm0: flags=a48843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF6TEMP,AUTOCONF6,AUTOCONF4> mtu 1500
    lladdr 14:7f:ce:cc:0e:54
    index 1 priority 4 llprio 3
    groups: wlan egress
    media: IEEE802.11 autoselect (VHT-MCS0 mode 11ac)
    status: active
    ieee80211: join kg6-5Ghz chan 36 bssid 60:38:e0:0c:2c:51 -56dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
    inet6 fe80::167f:ceff:fecc:e54%bwfm0 prefixlen 64 scopeid 0x1
    inet 10.1.161.31 netmask 0xffff0000 broadcast 10.1.255.255
    inet6 fd8c:2fd0:94bd:0:73c9:b073:ce34:3cda prefixlen 64 autoconf
    inet6 fd8c:2fd0:94bd:0:2211:de87:4713:38ef prefixlen 64 autoconf temporary pltime 77044 vltime 172694

this also means that I can add more join statements to that file, if I want to add more trusted networks. Nice.

2025-04-18: sd0a - wireless - try to join a network

tim2obsd$ doas ifconfig bwfm0 nwid kg6-5Ghz wpakey secret_key
tim2obsd$ doas ifconfig bwfm0 inet autoconf

check

tim2obsd$ ifconfig bwfm0                                    
bwfm0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
    lladdr 14:7f:ce:cc:0e:54
    index 1 priority 4 llprio 3
    groups: wlan egress
    media: IEEE802.11 autoselect (VHT-MCS8 mode 11ac)
    status: active
    ieee80211: nwid kg6-5Ghz chan 36 bssid 60:38:e0:0c:2c:51 -57dBm wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp
    inet 10.1.161.31 netmask 0xffff0000 broadcast 10.1.255.255

yes, that worked. Nice!

2025-04-18: sd0a - reboot, we now have a wireless interface

tim2obsd$ ifconfig
lo0: flags=2008049<UP,LOOPBACK,RUNNING,MULTICAST,LRO> mtu 32768
    index 3 priority 0 llprio 3
    groups: lo
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
    inet 127.0.0.1 netmask 0xff000000
bwfm0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
    lladdr 14:7f:ce:cc:0e:54
    index 1 priority 4 llprio 3
    groups: wlan
    media: IEEE802.11 autoselect
    status: no network
    ieee80211: nwid ""
enc0: flags=0<>
    index 2 priority 0 llprio 3
    groups: enc
    status: active
ure0: flags=808c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
    lladdr 00:e0:4c:36:08:f8
    index 4 priority 0 llprio 3
    groups: egress
    media: Ethernet autoselect (100baseTX full-duplex)
    status: active
    inet 10.1.161.19 netmask 0xffff0000 broadcast 10.1.255.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
    index 5 priority 0 llprio 3
    groups: pflog

try to scan

tim2obsd$ doas ifconfig bwfm0 up
tim2obsd$ ifconfig bwfm0 scan    
bwfm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    lladdr 14:7f:ce:cc:0e:54
    index 1 priority 4 llprio 3
    groups: wlan
    media: IEEE802.11 autoselect
    status: no network
    ieee80211: nwid ""
        nwid kg5 chan 7 bssid e0:cb:4e:86:81:0b -44dBm HT-MCS15 privacy,short_slottime,wpa2 
        nwid kg4 chan 10 bssid 74:44:01:36:4b:6a -48dBm HT-MCS15 privacy,wpa2 
        nwid kg6-5Ghz chan 36 bssid 60:38:e0:0c:2c:51 -56dBm HT-MCS23 privacy,short_preamble,wpa2 
        nwid Home_Net-004430 chan 11 bssid 78:c5:7d:fe:ca:b0 -60dBm HT-MCS31 privacy,short_slottime,apsd,radio_measurement,wpa2 
[..]

that looks promising. dmesg output for the bwfm interface

tim2obsd$ dmesg | grep bwfm
bwfm0 at pci1 dev 0 function 0 "Broadcom BCM4387" rev 0x07: msi
bwfm0: address 14:7f:ce:cc:0e:54

2025-04-18: sd0a - run syspatch check

tim2obsd# syspatch -c
tim2obsd# syspatch -l
tim2obsd# syspatch

check date

tim2obsd# date
Mon Sep 30 18:35:14 CEST 2024

aha - fix!

tim2obsd# date 202504181955
Fri Apr 18 19:55:00 CEST 2025

re-run syspatch check

tim2obsd# syspatch -c
001_unbound
002_xserver
004_aplsmc
005_expat
006_wg
007_pffrag
008_ssh
009_xserver
010_expat
011_expat
012_ike
013_ssh
014_rpki
015_perl

ok, patch

tim2obsd# syspatch
Get/Verify syspatch76-001_unbound... 100% |********************************************************************************************************|  2732 KB    00:00    
Installing patch 001_unbound
Get/Verify syspatch76-002_xserver... 100% |********************************************************************************************************|  4302 KB    00:00    
Installing patch 002_xserver
Get/Verify syspatch76-004_aplsmc.tgz 100% |********************************************************************************************************| 63024       00:00    
Installing patch 004_aplsmc
Get/Verify syspatch76-005_expat.tgz 100% |*********************************************************************************************************|   624 KB    00:00    
Installing patch 005_expat
Get/Verify syspatch76-006_wg.tgz 100% |************************************************************************************************************|   140 KB    00:00    
Installing patch 006_wg
Get/Verify syspatch76-007_pffrag.tgz 100% |********************************************************************************************************|   111 KB    00:00    
Installing patch 007_pffrag
Get/Verify syspatch76-008_ssh.tgz 100% |***********************************************************************************************************|  3476 KB    00:00    
Installing patch 008_ssh
Get/Verify syspatch76-009_xserver... 100% |********************************************************************************************************|  4307 KB    00:00    
Installing patch 009_xserver
Get/Verify syspatch76-010_expat.tgz 100% |*********************************************************************************************************|   633 KB    00:00    
Installing patch 010_expat
Get/Verify syspatch76-011_expat.tgz 100% |*********************************************************************************************************|   626 KB    00:00    
Installing patch 011_expat
Get/Verify syspatch76-012_ike.tgz 100% |***********************************************************************************************************|   398 KB    00:00    
Installing patch 012_ike
Get/Verify syspatch76-013_ssh.tgz 100% |***********************************************************************************************************|  1133 KB    00:00    
Installing patch 013_ssh
Get/Verify syspatch76-014_rpki.tgz 100% |**********************************************************************************************************|   118 KB    00:00    
Installing patch 014_rpki
Get/Verify syspatch76-015_perl.tgz 100% |**********************************************************************************************************|  1230 KB    00:00    
Installing patch 015_perl
Relinking to create unique kernel... done; reboot to load the new kernel
Errata can be reviewed under /var/syspatch

check

tim2obsd# syspatch -l
001_unbound
002_xserver
004_aplsmc
005_expat
006_wg
007_pffrag
008_ssh
009_xserver
010_expat
011_expat
012_ike
013_ssh
014_rpki
015_perl

2025-04-18: sd0a - copy the wireless firmware after unpacking it

tim2obsd$ doas mkdir -p /etc/firmware/apple-bwfm                                                                                                                          
tim2obsd$ doas cp -pv brcm/*hokk* /etc/firmware/apple-bwfm/
brcm/brcmbt4387c2-apple,hokkaido-u.bin -> /etc/firmware/apple-bwfm/brcmbt4387c2-apple,hokkaido-u.bin
brcm/brcmbt4387c2-apple,hokkaido-u.ptb -> /etc/firmware/apple-bwfm/brcmbt4387c2-apple,hokkaido-u.ptb
brcm/brcmfmac4387c2-pcie.apple,hokkaido.bin -> /etc/firmware/apple-bwfm/brcmfmac4387c2-pcie.apple,hokkaido.bin
brcm/brcmfmac4387c2-pcie.apple,hokkaido.clm_blob -> /etc/firmware/apple-bwfm/brcmfmac4387c2-pcie.apple,hokkaido.clm_blob
brcm/brcmfmac4387c2-pcie.apple,hokkaido.txcap_blob -> /etc/firmware/apple-bwfm/brcmfmac4387c2-pcie.apple,hokkaido.txcap_blob
brcm/brcmfmac4387c2-pcie.apple,hokkaido.txt -> /etc/firmware/apple-bwfm/brcmfmac4387c2-pcie.apple,hokkaido.txt

2025-04-18: sd0a - OpenBSD 7.6 is in, still no wireless. fdisk info

tim2obsd# fdisk sd0
Disk: sd0       Usable LBA: 6 to 61279338 [61279344 4096-byte Sectors]
   #: type                                 [       start:         size ]
------------------------------------------------------------------------
   0: APFS ISC                             [           6:       128000 ]
   1: APFS                                 [      128006:     16860928 ]
   2: APFS                                 [    16988934:       610304 ]
   3: EFI Sys                              [    17599238:       128000 ]
   4: Linux files*                         [    17727238:       262144 ]
   5: Linux files*                         [    17989382:      7544320 ]
   6: APFS                                 [    25533702:       610304 ]
   7: EFI Sys                              [    26144006:       122112 ]
   8: APFS Recovery                        [    59968630:      1310709 ]
   9: OpenBSD                              [    26266118:      2621440 ]

and the other way

tim2obsd# fdisk -e sd0
Enter 'help' for information
sd0: 1> print g
Disk: sd0       Usable LBA: 6 to 61279338 [234 Gigabytes]
GUID: bfa84943-3a1b-430a-af7a-d8d9f0708cdf
   #: type                                 [       start:         size ]
      guid                                 name
------------------------------------------------------------------------
   0: APFS ISC                             [           6:            0G]
      aabc200b-aa74-4019-85a9-cf9323a5d6c0 iBootSystemContainer
   1: APFS                                 [      128006:           64G]
      86325945-e3e6-4a8d-9e1d-5d517a8f44e6 Container
   2: APFS                                 [    16988934:            2G]
      5e02b940-ac44-4962-b129-dd1307cef35a 
   3: EFI Sys                              [    17599238:            0G]
      b92c7ffe-2956-4cd1-894f-5df0fe11ee0f 
   4: Linux files*                         [    17727238:            1G]
      40e3fa35-8f83-4770-a72d-c25ab4231473 
   5: Linux files*                         [    17989382:           29G]
      d810b6db-d369-4fcb-b818-9c847a4a1603 
   6: APFS                                 [    25533702:            2G]
      c07b80d9-7111-4cb0-8c83-80f4d97d6f8d 
   7: EFI Sys                              [    26144006:            0G]
      4b66ffb3-6ac4-40f0-9c02-9ab8adaaeb8c 
   8: APFS Recovery                        [    59968630:            5G]
      54c679e3-84e8-4449-bd64-8925e20aaa1d RecoveryOSContainer
   9: OpenBSD                              [    26266118:           10G]
      890f98a9-e807-4901-8613-c89dd572ad1b openbsd
sd0: 1> exit

2025-04-18: reinstalling OpenBSD. First I ran Asahi Linux installer to install "UEFI environment only (m1n1 + U-Boot + ESP)" into free space. I named it OpenBSD. Next I plugged in a OpenBSD 7.6 install usb stick. To get it to boot, I had to select OpenBSD from boot opetions screen, interrupt uboot and run

usb reset
usb start
run bootcmd_usb0

and then the installer ran. This time I'm only creating a single OpenBSD partiton (A6), we shall see how that goes.

2025-04-17: sd0a - network - now when I try ifconfig bwfm0 up, /var/log/messages shows

Apr 17 22:20:14 tim2obsd /bsd: bwfm0: address 00:11:22:33:44:55

but ifconfig still shows

tim2obsd$ ifconfig bwfm0 
bwfm0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
    lladdr 00:11:22:33:44:55
    index 1 priority 4 llprio 3
    groups: wlan
    media: IEEE802.11 autoselect
    status: no network
    ieee80211: nwid kg6-5Ghz wpakey wpaprotos wpa2 wpaakms psk wpaciphers ccmp wpagroupcipher ccmp

hmm.

2025-04-17: sd0a - mount the usb stick with firmware on it. I guess that the msdos partiton is 'i'

tim2obsd$ doas mount /dev/sd1i /mnt 

check

tim2obsd$ mount
/dev/sd0a on / type ffs (local)
/dev/sd0e on /home type ffs (local, nodev, nosuid)
/dev/sd0d on /usr type ffs (local, nodev, wxallowed)
/dev/sd1i on /mnt type msdos (local)

I guessed correctly. I copied in the files, unpacked the firmware tar file, and copied the firmware to

tim2obsd$ ll /etc/firmware/apple-bwfm/                                                                                                                                    
total 3160
drwxr-xr-x  2 root  wheel  -     512 Apr 17 22:19 ./
drwxr-xr-x  4 root  wheel  -    4608 Apr 17 22:18 ../
-rw-r--r--  1 root  wheel  - 1568607 Apr 17 22:19 brcmfmac4387c2-pcie.apple,hokkaido.bin

2025-04-17: sd0a - network, reboot, now there is a wireless interface too

tim2obsd$ ifconfig
lo0: flags=2008049<UP,LOOPBACK,RUNNING,MULTICAST,LRO> mtu 32768
    index 3 priority 0 llprio 3
    groups: lo
    inet6 ::1 prefixlen 128
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
    inet 127.0.0.1 netmask 0xff000000
bwfm0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
    lladdr 00:00:00:00:00:00
    index 1 priority 4 llprio 3
    groups: wlan
    media: IEEE802.11 autoselect
    status: no network
    ieee80211: nwid ""
enc0: flags=0<>
    index 2 priority 0 llprio 3
    groups: enc
    status: active
ure0: flags=808c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
    lladdr 00:e0:4c:36:08:f8
    index 4 priority 0 llprio 3
    groups: egress
    media: Ethernet autoselect (100baseTX full-duplex)
    status: active
    inet 10.1.161.19 netmask 0xffff0000 broadcast 10.1.255.255
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33136
    index 5 priority 0 llprio 3
    groups: pflog

but when I try ifconfig bwfm0 up it fails, and dmesg shows

bwfm0: failed loadfirmware of file apple-bwfm/brcmfmac4387c2-pcie.apple,hokkaido.bin
bwfm0: could not init bus

add firmware

tim2obsd# fw_update
fw_update: add apple-boot,bwfm; update none

this helps, /etc/firmware now has been populated

tim2obsd# ls -F /etc/firmware/brcm*
/etc/firmware/brcmfmac43143-sdio.bin                                                  /etc/firmware/brcmfmac43455-sdio.MINIX-NEO Z83-4.txt
/etc/firmware/brcmfmac43143.bin                                                       /etc/firmware/brcmfmac43455-sdio.bin
/etc/firmware/brcmfmac43236b.bin                                                      /etc/firmware/brcmfmac43455-sdio.raspberrypi,3-model-b-plus.txt
/etc/firmware/brcmfmac43241b0-sdio.bin                                                /etc/firmware/brcmfmac43455-sdio.raspberrypi,4-model-b.txt
/etc/firmware/brcmfmac43241b4-sdio.bin                                                /etc/firmware/brcmfmac43456-sdio.pine64,pinebook-pro.bin
/etc/firmware/brcmfmac43241b5-sdio.bin                                                /etc/firmware/brcmfmac43456-sdio.pine64,pinebook-pro.txt
/etc/firmware/brcmfmac43242a.bin                                                      /etc/firmware/brcmfmac43456-sdio.pine64,rockpro64-v2.1.bin
/etc/firmware/brcmfmac4329-sdio.bin                                                   /etc/firmware/brcmfmac43456-sdio.pine64,rockpro64-v2.1.txt
/etc/firmware/brcmfmac4330-sdio.Prowise-PT301.txt                                     /etc/firmware/brcmfmac43456-sdio.raspberrypi,400.bin
/etc/firmware/brcmfmac4330-sdio.bin                                                   /etc/firmware/brcmfmac43456-sdio.raspberrypi,400.clm_blob
/etc/firmware/brcmfmac4330-sdio.solidrun,cubox-i.txt                                  /etc/firmware/brcmfmac43456-sdio.raspberrypi,400.txt
/etc/firmware/brcmfmac4334-sdio.bin                                                   /etc/firmware/brcmfmac4350-pcie.bin
/etc/firmware/brcmfmac43340-sdio.bin                                                  /etc/firmware/brcmfmac4350c2-pcie.bin
/etc/firmware/brcmfmac43340-sdio.meegopad-t08.txt                                     /etc/firmware/brcmfmac4354-sdio.bin
/etc/firmware/brcmfmac43340-sdio.pov-tab-p1006w-data.txt                              /etc/firmware/brcmfmac4356-pcie.bin
/etc/firmware/brcmfmac4335-sdio.bin                                                   /etc/firmware/brcmfmac4356-pcie.gpd-win-pocket.txt
/etc/firmware/brcmfmac43362-sdio.bin                                                  /etc/firmware/brcmfmac4356-sdio.bin
/etc/firmware/brcmfmac43362-sdio.cubietech,cubietruck.txt                             /etc/firmware/brcmfmac4356-sdio.friendlyarm,nanopc-t4.txt
/etc/firmware/brcmfmac43362-sdio.lemaker,bananapro.txt                                /etc/firmware/brcmfmac4356-sdio.vamrs,rock960.bin
/etc/firmware/brcmfmac4339-sdio.bin                                                   /etc/firmware/brcmfmac4356-sdio.vamrs,rock960.txt
/etc/firmware/brcmfmac43430-sdio.AP6212.txt                                           /etc/firmware/brcmfmac43569.bin
/etc/firmware/brcmfmac43430-sdio.Hampoo-D2D3_Vi8A1.txt                                /etc/firmware/brcmfmac43570-pcie.bin
/etc/firmware/brcmfmac43430-sdio.MUR1DX.txt                                           /etc/firmware/brcmfmac4358-pcie.bin
/etc/firmware/brcmfmac43430-sdio.bin                                                  /etc/firmware/brcmfmac43602-pcie.ap.bin
/etc/firmware/brcmfmac43430-sdio.raspberrypi,3-model-b.txt                            /etc/firmware/brcmfmac43602-pcie.bin
/etc/firmware/brcmfmac43430a0-sdio.ONDA-V80 PLUS.txt                                  /etc/firmware/brcmfmac4366b-pcie.bin
/etc/firmware/brcmfmac43430a0-sdio.bin                                                /etc/firmware/brcmfmac4366c-pcie.bin
/etc/firmware/brcmfmac43430a0-sdio.jumper-ezpad-mini3.txt                             /etc/firmware/brcmfmac4371-pcie.bin
/etc/firmware/brcmfmac43436-sdio.raspberrypi,model-zero-2-w.bin                       /etc/firmware/brcmfmac4373-sdio.bin
/etc/firmware/brcmfmac43436-sdio.raspberrypi,model-zero-2-w.clm_blob                  /etc/firmware/brcmfmac4373.bin
/etc/firmware/brcmfmac43436-sdio.raspberrypi,model-zero-2-w.txt

now see if I can get the interface up - nope, still these

Apr 17 20:11:19 tim2obsd /bsd: bwfm0: failed loadfirmware of file apple-bwfm/brcmfmac4387c2-pcie.apple,hokkaido.bin
Apr 17 20:11:19 tim2obsd /bsd: bwfm0: could not init bus

2025-04-17: sd0a - syspatch - check for patches

tim2obsd$ doas syspatch -c
doas (tingo@tim2obsd.local) password: 
001_unbound
002_xserver
004_aplsmc
005_expat
006_wg
007_pffrag
008_ssh
009_xserver
010_expat
011_expat
012_ike
013_ssh
014_rpki
015_perl

install

tim2obsd$ doas syspatch    
doas (tingo@tim2obsd.local) password: 
Get/Verify syspatch76-001_unbound... 100% |********************************************************************************************************|  2732 KB    00:00    
Installing patch 001_unbound
Get/Verify syspatch76-002_xserver... 100% |********************************************************************************************************|  4302 KB    00:00    
Installing patch 002_xserver
Get/Verify syspatch76-004_aplsmc.tgz 100% |********************************************************************************************************| 63024       00:00    
Installing patch 004_aplsmc
Get/Verify syspatch76-005_expat.tgz 100% |*********************************************************************************************************|   624 KB    00:00    
Installing patch 005_expat
Get/Verify syspatch76-006_wg.tgz 100% |************************************************************************************************************|   140 KB    00:00    
Installing patch 006_wg
Get/Verify syspatch76-007_pffrag.tgz 100% |********************************************************************************************************|   111 KB    00:00    
Installing patch 007_pffrag
Get/Verify syspatch76-008_ssh.tgz 100% |***********************************************************************************************************|  3476 KB    00:00    
Installing patch 008_ssh
Get/Verify syspatch76-009_xserver... 100% |********************************************************************************************************|  4307 KB    00:00    
Installing patch 009_xserver
Get/Verify syspatch76-010_expat.tgz 100% |*********************************************************************************************************|   633 KB    00:00    
Installing patch 010_expat
Get/Verify syspatch76-011_expat.tgz 100% |*********************************************************************************************************|   626 KB    00:00    
Installing patch 011_expat
Get/Verify syspatch76-012_ike.tgz 100% |***********************************************************************************************************|   398 KB    00:00    
Installing patch 012_ike
Get/Verify syspatch76-013_ssh.tgz 100% |***********************************************************************************************************|  1133 KB    00:00    
Installing patch 013_ssh
Get/Verify syspatch76-014_rpki.tgz 100% |**********************************************************************************************************|   118 KB    00:00    
Installing patch 014_rpki
Get/Verify syspatch76-015_perl.tgz 100% |**********************************************************************************************************|  1230 KB    00:00    
Installing patch 015_perl
Relinking to create unique kernel... done; reboot to load the new kernel
Errata can be reviewed under /var/syspatch

2025-04-17: sd0a - Xorg - Xorg works, I get a 2560x1600 resolution, the touchpad works, as well as a usb connected mouse.Contents of /var/log/Xorg.0.log

tim2obsd$ cat /var/log/Xorg.0.log   
[  2972.344] (--) Using wscons driver on /dev/ttyC4
[  2972.365] 
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[  2972.365] Current Operating System: OpenBSD tim2obsd.local 7.6 GENERIC.MP#196 arm64
[  2972.365]  
[  2972.365] Current version of pixman: 0.42.2
[  2972.365]    Before reporting problems, check http://wiki.x.org
    to make sure that you have the latest version.
[  2972.365] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2972.366] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Apr 17 19:25:14 2025
[  2972.367] (==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d"
[  2972.368] (==) No Layout section.  Using the first Screen section.
[  2972.368] (==) No screen section available. Using defaults.
[  2972.368] (**) |-->Screen "Default Screen Section" (0)
[  2972.368] (**) |   |-->Monitor "<default monitor>"
[  2972.368] (==) No monitor specified for screen "Default Screen Section".
    Using a default monitor configuration.
[  2972.368] (**) Allowing byte-swapped clients
[  2972.368] (==) Automatically adding devices
[  2972.368] (==) Automatically enabling devices
[  2972.368] (==) Not automatically adding GPU devices
[  2972.368] (==) Automatically binding GPU devices
[  2972.369] (==) Max clients allowed: 256, resource mask: 0x1fffff
[  2972.371] (==) FontPath set to:
    /usr/X11R6/lib/X11/fonts/misc/,
    /usr/X11R6/lib/X11/fonts/TTF/,
    /usr/X11R6/lib/X11/fonts/OTF/,
    /usr/X11R6/lib/X11/fonts/Type1/,
    /usr/X11R6/lib/X11/fonts/100dpi/,
    /usr/X11R6/lib/X11/fonts/75dpi/
[  2972.371] (==) ModulePath set to "/usr/X11R6/lib/modules"
[  2972.371] (II) The server relies on wscons to provide the list of input devices.
    If no devices become available, reconfigure wscons or disable AutoAddDevices.
[  2972.371] (II) Loader magic: 0xbea192df8
[  2972.371] (II) Module ABI versions:
[  2972.371]    X.Org ANSI C Emulation: 0.4
[  2972.371]    X.Org Video Driver: 25.2
[  2972.371]    X.Org XInput driver : 24.4
[  2972.371]    X.Org Server Extension : 10.0
[  2972.371] (II) LoadModule: "glx"
[  2972.372] (II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
[  2972.381] (II) Module glx: vendor="X.Org Foundation"
[  2972.381]    compiled for 1.21.1.13, module version = 1.0.0
[  2972.381]    ABI class: X.Org Server Extension, version 10.0
[  2972.382] (==) Matched modesetting as autoconfigured driver 0
[  2972.382] (==) Assigned the driver to the xf86ConfigLayout
[  2972.382] (II) LoadModule: "modesetting"
[  2972.382] (II) Loading /usr/X11R6/lib/modules/drivers/modesetting_drv.so
[  2972.382] (II) Module modesetting: vendor="X.Org Foundation"
[  2972.382]    compiled for 1.21.1.13, module version = 1.21.1
[  2972.382]    Module class: X.Org Video Driver
[  2972.382]    ABI class: X.Org Video Driver, version 25.2
[  2972.382] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[  2972.382] (WW) Falling back to old probe method for modesetting
[  2972.395] (II) modeset(0): using default device
[  2972.395] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  2972.396] (II) modeset(0): Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32
[  2972.396] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[  2972.396] (==) modeset(0): RGB weight 888
[  2972.396] (==) modeset(0): Default visual is TrueColor
[  2972.396] (II) Loading sub module "glamoregl"
[  2972.396] (II) LoadModule: "glamoregl"
[  2972.396] (II) Loading /usr/X11R6/lib/modules/libglamoregl.so
[  2972.401] (II) Module glamoregl: vendor="X.Org Foundation"
[  2972.401]    compiled for 1.21.1.13, module version = 1.0.1
[  2972.401]    ABI class: X.Org ANSI C Emulation, version 0.4
[  2972.478] (II) modeset(0): Refusing to try glamor on llvmpipe
[  2972.492] (II) modeset(0): glamor initialization failed
[  2972.492] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[  2972.492] (II) modeset(0): Output eDP-1 has no monitor section
[  2972.492] (II) modeset(0): EDID for output eDP-1
[  2972.492] (II) modeset(0): Printing probed modes for output eDP-1
[  2972.492] (II) modeset(0): Modeline "2560x1600"x60.0  277.04  2560 2568 2600 2640  1600 1633 1705 1749 (104.9 kHz eP)
[  2972.492] (II) modeset(0): Output eDP-1 connected
[  2972.492] (II) modeset(0): Using exact sizes for initial modes
[  2972.492] (II) modeset(0): Output eDP-1 using initial mode 2560x1600 +0+0
[  2972.492] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[  2972.492] (--) modeset(0): Display dimensions: (290, 181) mm
[  2972.492] (--) modeset(0): DPI set to (224, 224)
[  2972.492] (II) Loading sub module "fb"
[  2972.492] (II) LoadModule: "fb"
[  2972.492] (II) Module "fb" already built-in
[  2972.498] (==) modeset(0): Backing store enabled
[  2972.498] (==) modeset(0): Silken mouse enabled
[  2972.504] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[  2972.504] (==) modeset(0): DPMS enabled
[  2972.504] (II) Initializing extension Generic Event Extension
[  2972.505] (II) Initializing extension SHAPE
[  2972.505] (II) Initializing extension MIT-SHM
[  2972.505] (II) Initializing extension XInputExtension
[  2972.506] (II) Initializing extension XTEST
[  2972.507] (II) Initializing extension BIG-REQUESTS
[  2972.507] (II) Initializing extension SYNC
[  2972.507] (II) Initializing extension XKEYBOARD
[  2972.508] (II) Initializing extension XC-MISC
[  2972.508] (II) Initializing extension SECURITY
[  2972.509] (II) Initializing extension XFIXES
[  2972.509] (II) Initializing extension RENDER
[  2972.510] (II) Initializing extension RANDR
[  2972.510] (II) Initializing extension COMPOSITE
[  2972.511] (II) Initializing extension DAMAGE
[  2972.511] (II) Initializing extension MIT-SCREEN-SAVER
[  2972.512] (II) Initializing extension DOUBLE-BUFFER
[  2972.512] (II) Initializing extension RECORD
[  2972.512] (II) Initializing extension DPMS
[  2972.513] (II) Initializing extension Present
[  2972.513] (II) Initializing extension DRI3
[  2972.513] (II) Initializing extension X-Resource
[  2972.514] (II) Initializing extension XVideo
[  2972.514] (II) Initializing extension XVideo-MotionCompensation
[  2972.514] (II) Initializing extension GLX
[  2972.515] (II) AIGLX: Screen 0 is not DRI2 capable
[  2972.554] (II) IGLX: Loaded and initialized swrast
[  2972.554] (II) GLX: Initialized DRISWRAST GL provider for screen 0
[  2972.554] (II) Initializing extension XFree86-VidModeExtension
[  2972.555] (II) Initializing extension XFree86-DGA
[  2972.555] (II) Initializing extension XFree86-DRI
[  2972.555] (II) Initializing extension DRI2
[  2972.556] (II) modeset(0): Damage tracking initialized
[  2972.556] (II) modeset(0): Setting screen physical size to 290 x 181
[  2972.626] (II) config/wscons: checking input device /dev/wskbd
[  2972.626] (II) wskbd: using layout no
[  2972.626] (II) LoadModule: "kbd"
[  2972.627] (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
[  2972.627] (II) Module kbd: vendor="X.Org Foundation"
[  2972.627]    compiled for 1.21.1.13, module version = 2.0.0
[  2972.627]    Module class: X.Org XInput Driver
[  2972.627]    ABI class: X.Org XInput driver, version 24.4
[  2972.627] (II) Using input driver 'kbd' for '/dev/wskbd'
[  2972.627] (**) /dev/wskbd: always reports core events
[  2972.627] (**) /dev/wskbd: always reports core events
[  2972.627] (**) Option "Protocol" "standard"
[  2972.627] (**) Option "XkbRules" "base"
[  2972.627] (**) Option "XkbModel" "pc105"
[  2972.627] (**) Option "XkbLayout" "no"
[  2972.627] (II) XINPUT: Adding extended input device "/dev/wskbd" (type: KEYBOARD, id 6)
[  2972.650] (II) config/wscons: checking input device /dev/wsmouse0
[  2972.650] (II) LoadModule: "ws"
[  2972.651] (II) Loading /usr/X11R6/lib/modules/input/ws_drv.so
[  2972.651] (II) Module ws: vendor="X.Org Foundation"
[  2972.651]    compiled for 1.21.1.13, module version = 1.3.0
[  2972.651]    Module class: X.Org XInput Driver
[  2972.651]    ABI class: X.Org XInput driver, version 24.4
[  2972.651] (II) Using input driver 'ws' for '/dev/wsmouse0'
[  2972.651] (**) /dev/wsmouse0: always reports core events
[  2972.651] (II) ws: /dev/wsmouse0: debuglevel 0
[  2972.651] (**) Option "Device" "/dev/wsmouse0"
[  2972.651] (**) ws: /dev/wsmouse0: ZAxisMapping: buttons 4 and 5
[  2972.651] (**) ws: /dev/wsmouse0: WAxisMapping: buttons 6 and 7
[  2972.651] (**) ws: /dev/wsmouse0: associated screen: 0
[  2972.651] (II) ws: /dev/wsmouse0: minimum x position: 0
[  2972.651] (II) ws: /dev/wsmouse0: maximum x position: 2559
[  2972.651] (II) ws: /dev/wsmouse0: minimum y position: 0
[  2972.651] (II) ws: /dev/wsmouse0: maximum y position: 1599
[  2972.651] (==) ws: /dev/wsmouse0: Buttons: 7
[  2972.651] (**) ws: /dev/wsmouse0: YAxisMapping: buttons 4 and 5
[  2972.651] (II) XINPUT: Adding extended input device "/dev/wsmouse0" (type: MOUSE, id 7)
[  2972.651] (**) /dev/wsmouse0: (accel) keeping acceleration scheme 1
[  2972.651] (**) /dev/wsmouse0: (accel) acceleration profile 0
[  2972.651] (**) /dev/wsmouse0: (accel) acceleration factor: 2.000
[  2972.651] (**) /dev/wsmouse0: (accel) acceleration threshold: 4
[  2972.659] (II) config/wscons: checking input device /dev/wsmouse
[  2972.659] (II) Using input driver 'ws' for '/dev/wsmouse'
[  2972.659] (**) /dev/wsmouse: always reports core events
[  2972.659] (II) ws: /dev/wsmouse: debuglevel 0
[  2972.659] (**) Option "Device" "/dev/wsmouse"
[  2972.659] (**) ws: /dev/wsmouse: ZAxisMapping: buttons 4 and 5
[  2972.659] (**) ws: /dev/wsmouse: WAxisMapping: buttons 6 and 7
[  2972.659] (**) ws: /dev/wsmouse: associated screen: 0
[  2972.663] (II) ws: /dev/wsmouse: minimum x position: 0
[  2972.663] (II) ws: /dev/wsmouse: maximum x position: 2559
[  2972.663] (II) ws: /dev/wsmouse: minimum y position: 0
[  2972.663] (II) ws: /dev/wsmouse: maximum y position: 1599
[  2972.663] (==) ws: /dev/wsmouse: Buttons: 7
[  2972.667] (**) ws: /dev/wsmouse: YAxisMapping: buttons 4 and 5
[  2972.667] (II) XINPUT: Adding extended input device "/dev/wsmouse" (type: MOUSE, id 8)
[  2972.671] (**) /dev/wsmouse: (accel) keeping acceleration scheme 1
[  2972.671] (**) /dev/wsmouse: (accel) acceleration profile 0
[  2972.671] (**) /dev/wsmouse: (accel) acceleration factor: 2.000
[  2972.671] (**) /dev/wsmouse: (accel) acceleration threshold: 4
[  2972.689] (II) modeset(0): Disabling kernel dirty updates, not required.
[  2972.689] (EE) Failed to open authorization file "/root/.serverauth.bT7ch1Yh1e": Permission denied

2025-04-17: sd0a - pkg_add - install curl

tim2obsd$ doas pkg_add curl
doas (tingo@tim2obsd.local) password: 
quirks-7.50:updatedb-0p0: ok
quirks-7.50 signed on 2024-09-30T18:52:07Z
quirks-7.50: ok
curl-8.10.1:ngtcp2-1.7.0: ok
curl-8.10.1:nghttp2-1.63.0: ok
curl-8.10.1:nghttp3-1.5.0: ok
curl-8.10.1: ok

2025-04-17: sd0a - sysupgrade

tim2obsd$ doas sysupgrade
doas (tingo@tim2obsd.local) password: 
Fetching from https://cdn.openbsd.org/pub/OpenBSD/7.7/arm64/
sysupgrade: Error retrieving https://cdn.openbsd.org/pub/OpenBSD/7.7/arm64/SHA256.sig: 404 Not Found
Fetching from https://cdn.openbsd.org/pub/OpenBSD/7.6/arm64/
SHA256.sig   100% |********************************************************************************************************************************|  1814       00:00    
Signature Verified
BUILDINFO    100% |********************************************************************************************************************************|    54       00:00    
Downloaded release is older than installed system. Use -f to force downgrade.

2025-04-17: sd0a - network, using a usb ethernet dongle for now, it shows up as ure0 in dmesg

tim2obsd$ dmesg | grep ^ure
ure0 at uhub3 port 4 configuration 1 interface 0 "Realtek USB 10/100 LAN" rev 2.10/20.00 addr 4
ure0: RTL8152 (0x4c10), address 00:e0:4c:36:08:f8

and ifconfig output

tim2obsd$ ifconfig ure0
ure0: flags=808843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,AUTOCONF4> mtu 1500
    lladdr 00:e0:4c:36:08:f8
    index 3 priority 0 llprio 3
    groups: egress
    media: Ethernet autoselect (100baseTX full-duplex)
    status: active
    inet 10.1.161.19 netmask 0xffff0000 broadcast 10.1.255.255

I created /etc/hostname.ure0 for automatic config

tim2obsd$ cat /etc/hostname.ure0                                                                                                                                          
dhcp

2025-04-17: sd0a - sysctl hw info

tim2obsd$ sysctl hw
hw.machine=arm64
hw.model=Apple Blizzard r1p0
hw.ncpu=8
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:8e6c7aa0baf0f61c
hw.diskcount=1
hw.sensors.aplcpu0.frequency0=2424.00 Hz
hw.sensors.aplcpu1.frequency0=3504.00 Hz
hw.sensors.nvme0.temp0=29.00 degC, OK
hw.sensors.nvme0.percent0=0.00% (endurance used), OK
hw.sensors.nvme0.percent1=100.00% (available spare), OK
hw.cpuspeed=3504
hw.setperf=100
hw.product=Apple MacBook Air (13-inch, M2, 2022)
hw.serialno=DV2M463203
hw.physmem=16578224128
hw.usermem=16578220032
hw.ncpufound=8
hw.allowpowerdown=1
hw.perfpolicy=auto
hw.smt=0
hw.ncpuonline=8
hw.power=1
hw.ucomnames=ucom0:usb1.1.00003.2

2025-04-17: sd0a - fw_update info

tim2obsd$ doas fw_update -n 
doas (tingo@tim2obsd.local) password: 
fw_update: add apple-boot; update none

2025-04-17: sd0a - disk info from dmesg

tim2obsd$ dmesg | grep ^sd
sd0 at scsibus0 targ 1 lun 0: <NVMe, APPLE SSD AP0256, 499.>
sd0: 239372MB, 4096 bytes/sector, 61279344 sectors

2025-04-17: sd0a - swap devices

tim2obsd$ swapctl -l
Device      512-blocks     Used    Avail Capacity  Priority
/dev/sd0b       524288        0   524288     0%    0

2025-04-17: sd0a - OpenBSD 7.6 installed

tim2obsd$ uname -a
OpenBSD tim2obsd.local 7.6 GENERIC.MP#196 arm64

disk layout

tim2obsd$ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/sd0a      1.1G    105M    982M    10%    /
/dev/sd0e      1.9G   36.0K    1.8G     1%    /home
/dev/sd0d      2.9G    1.5G    1.3G    54%    /usr

fidisk info

tim2obsd$ doas fdisk sd0 
doas (tingo@tim2obsd.local) password: 
Disk: sd0       Usable LBA: 6 to 61279338 [61279344 4096-byte Sectors]
   #: type                                 [       start:         size ]
------------------------------------------------------------------------
   0: APFS ISC                             [           6:       128000 ]
   1: APFS                                 [      128006:     16860928 ]
   2: APFS                                 [    16988934:       610304 ]
   3: EFI Sys                              [    17599238:       128000 ]
   4: Linux files*                         [    17727238:       262144 ]
   5: Linux files*                         [    17989382:      7544320 ]
   6: APFS Recovery                        [    59968630:      1310709 ]
   7: EFI Sys                              [    25533702:        65536 ]
   8: OpenBSD                              [    25599238:      2621440 ]

detailed info

tim2obsd$ doas fdisk -e sd0
doas (tingo@tim2obsd.local) password: 
Enter 'help' for information
sd0: 1> print g
Disk: sd0       Usable LBA: 6 to 61279338 [234 Gigabytes]
GUID: bfa84943-3a1b-430a-af7a-d8d9f0708cdf
   #: type                                 [       start:         size ]
      guid                                 name
------------------------------------------------------------------------
   0: APFS ISC                             [           6:            0G]
      aabc200b-aa74-4019-85a9-cf9323a5d6c0 iBootSystemContainer
   1: APFS                                 [      128006:           64G]
      86325945-e3e6-4a8d-9e1d-5d517a8f44e6 Container
   2: APFS                                 [    16988934:            2G]
      5e02b940-ac44-4962-b129-dd1307cef35a 
   3: EFI Sys                              [    17599238:            0G]
      b92c7ffe-2956-4cd1-894f-5df0fe11ee0f 
   4: Linux files*                         [    17727238:            1G]
      40e3fa35-8f83-4770-a72d-c25ab4231473 
   5: Linux files*                         [    17989382:           29G]
      d810b6db-d369-4fcb-b818-9c847a4a1603 
   6: APFS Recovery                        [    59968630:            5G]
      54c679e3-84e8-4449-bd64-8925e20aaa1d RecoveryOSContainer
   7: EFI Sys                              [    25533702:            0G]
      c3c93542-977a-4c66-97a6-2f5d06427b42 
   8: OpenBSD                              [    25599238:           10G]
      7f695388-db11-47ff-9103-2e0c09e8df8d openbsd

2025-04-17: OpenBSD - booted from a usb stick with arm64 install.76 image on (connected to a usb hub) and installed OpenBSD. As usual, getting partion sizes right required the use of a calculator.

2025-04-17: I created this page.