Apple MacBook Air 13.6-inch M2 16GB RAM 256GB SSD - macOS
Hardware info on main page.
Hint: to type vertical bar in Terminal, use Option + 7
Hints: startup options - hold the power button until the startup optins screen shows
Links
Apple Prevent a Mac laptop from turning on when opening its lid or connecting to power,
History
2025-04-27: disk5s1s1 - after fixing the contents of the two EFI partitions, both Asahi Linux and OpenBSD can boot now.
2025-04-27: disk5s1s1 - unmount the two EFI partitions
tingo@Torfinns-MacBook-Air ~ % sudo diskutil umount disk0s4 Password: Volume EFI - FEDOR on disk0s4 unmounted tingo@Torfinns-MacBook-Air ~ % sudo diskutil umount disk0s8 Volume EFI - OPENB on disk0s8 unmounted
2025-04-27: disk5s1s1 - after moving files around:
tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ FEDOR/EFI total 16 drwx------ 1 tingo staff 4096 Apr 16 20:49 BOOT drwx------ 1 tingo staff 4096 Apr 16 20:49 fedora tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ OPENB/EFI total 16 drwx------ 1 tingo staff 4096 Apr 27 14:28 BOOT drwx------ 1 tingo staff 4096 Apr 27 14:26 openbsd
2025-04-27: disk5s1s1 - mount disk0s4 (Fedora EFI)
tingo@Torfinns-MacBook-Air ~ % sudo diskutil mount disk0s4 Volume EFI - FEDOR on disk0s4 mounted
check it out
tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ FEDOR total 32 drwx------ 1 tingo staff 4096 Apr 18 18:11 EFI drwx------ 1 tingo staff 4096 Apr 16 20:51 asahi drwx------ 1 tingo staff 4096 Apr 16 20:49 m1n1 drwx------ 1 tingo staff 4096 Apr 17 21:27 vendorfw tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ FEDOR/EFI total 24 drwx------ 1 tingo staff 4096 Apr 16 20:49 BOOT drwx------ 1 tingo staff 4096 Apr 16 20:49 fedora drwx------ 1 tingo staff 4096 Apr 18 18:11 openbsd tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ FEDOR/EFI/BOOT total 2376 -rwx------ 1 tingo staff 229182 Sep 30 2024 bootaa64.efi -rwx------ 1 tingo staff 91096 Apr 16 20:49 fbaa64.efi -rwx------ 1 tingo staff 886296 Apr 16 20:49 mmaa64.efi -rwx------ 1 tingo staff 13 Sep 30 2024 startup.nsh tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ FEDOR/EFI/fedora total 13784 -rwx------ 1 tingo staff 112 Apr 16 20:49 BOOTAA64.CSV -rwx------ 1 tingo staff 154 Apr 16 20:49 grub.cfg -rwx------ 1 tingo staff 4210160 Apr 16 20:49 grubaa64.efi -rwx------ 1 tingo staff 886296 Apr 16 20:49 mmaa64.efi -rwx------ 1 tingo staff 971654 Apr 16 20:49 shim.efi -rwx------ 1 tingo staff 971654 Apr 16 20:49 shimaa64.efi tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ FEDOR/EFI/openbsd total 448 -rwx------ 1 tingo staff 229182 Apr 18 18:11 bootaa64.efi
2025-04-27: disk5s1s1 - mount disk0s8 (OpenBSD EFI)
tingo@Torfinns-MacBook-Air ~ % sudo diskutil mount disk0s8 Volume EFI - OPENB on disk0s8 mounted
and check it out
tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ OPENB total 24 drwx------ 1 tingo staff 4096 Apr 18 19:07 asahi drwx------ 1 tingo staff 4096 Apr 18 19:07 m1n1 drwx------ 1 tingo staff 4096 Apr 18 19:07 vendorfw tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ OPENB/asahi total 106184 -rwx------ 1 tingo staff 702 Apr 18 19:07 AdminUserRecoveryInfo.plist -rwx------ 1 tingo staff 75751 Apr 18 19:07 BuildManifest.plist -rwx------ 1 tingo staff 358 Apr 18 19:07 RestoreVersion.plist -rwx------ 1 tingo staff 606 Apr 18 19:07 SystemVersion.plist -rwx------ 1 tingo staff 28204426 Apr 18 19:07 all_firmware.tar.gz -rwx------ 1 tingo staff 237250 Apr 18 19:07 installer.log -rwx------ 1 tingo staff 25826504 Apr 18 19:07 kernelcache.release.mac14g -rwx------ 1 tingo staff 570 Apr 18 19:07 stub_info.json tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ OPENB/m1n1 total 6104 -rwx------ 1 tingo staff 3123121 Apr 18 19:07 boot.bin tingo@Torfinns-MacBook-Air ~ % ls -l /Volumes/EFI\ -\ OPENB/vendorfw total 127384 -rwx------ 1 tingo staff 32517848 Apr 18 19:07 firmware.cpio -rwx------ 1 tingo staff 32655360 Apr 18 19:07 firmware.tar -rwx------ 1 tingo staff 38347 Apr 18 19:07 manifest.txt drwx------ 1 tingo staff 4096 Apr 18 19:07 u-boot
2025-04-27: disk5s1s1 - check out diskutil list
now
tingo@Torfinns-MacBook-Air ~ % diskutil list /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: Apple_APFS_ISC Container disk1 524.3 MB disk0s1 2: Apple_APFS Container disk5 69.1 GB disk0s2 3: Apple_APFS Container disk3 2.5 GB disk0s3 4: EFI EFI - FEDOR 524.3 MB disk0s4 5: Linux Filesystem 1.1 GB disk0s5 6: Linux Filesystem 30.9 GB disk0s6 7: Apple_APFS Container disk2 2.5 GB disk0s7 8: EFI EFI - OPENB 500.2 MB disk0s8 9: 824CC7A0-36A8-11E3-890A-952519AD3F61 10.7 GB disk0s10 (free space) 127.3 GB - 10: Apple_APFS_Recovery Container disk4 5.4 GB disk0s9 /dev/disk2 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +2.5 GB disk2 Physical Store disk0s7 1: APFS Volume OpenBSD - Data 2.2 MB disk2s1 2: APFS Volume OpenBSD 1.2 MB disk2s2 3: APFS Volume Preboot 197.9 MB disk2s3 4: APFS Volume Recovery 809.7 MB disk2s4 /dev/disk3 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +2.5 GB disk3 Physical Store disk0s3 1: APFS Volume Fedora Linux with KD... 2.3 MB disk3s1 2: APFS Volume Fedora Linux with KD... 1.1 MB disk3s2 3: APFS Volume Preboot 197.9 MB disk3s3 4: APFS Volume Recovery 809.7 MB disk3s4 /dev/disk5 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +69.1 GB disk5 Physical Store disk0s2 1: APFS Volume Macintosh HD 11.2 GB disk5s1 2: APFS Snapshot com.apple.os.update-... 11.2 GB disk5s1s1 3: APFS Volume Preboot 6.8 GB disk5s2 4: APFS Volume Recovery 1.0 GB disk5s3 5: APFS Volume Macintosh HD - Data 11.5 GB disk5s5 6: APFS Volume VM 20.5 KB disk5s6
2025-04-18: disk4s1s1 - let me see if I can fix the grub problem and make Asahi Linux bootable again. First mount the EFI partition
tingo@Torfinns-MacBook-Air ~ % sudo diskutil mount disk0s4 Volume EFI - FEDOR on disk0s4 mounted
go there
tingo@Torfinns-MacBook-Air ~ % cd /Volumes/EFI\ -\ FEDOR tingo@Torfinns-MacBook-Air EFI - FEDOR % cd EFI
check out fedora
tingo@Torfinns-MacBook-Air EFI % ls -l fedora total 13784 -rwx------ 1 tingo staff 112 Apr 16 20:49 BOOTAA64.CSV -rwx------ 1 tingo staff 154 Apr 16 20:49 grub.cfg -rwx------ 1 tingo staff 4210160 Apr 16 20:49 grubaa64.efi -rwx------ 1 tingo staff 886296 Apr 16 20:49 mmaa64.efi -rwx------ 1 tingo staff 971654 Apr 16 20:49 shim.efi -rwx------ 1 tingo staff 971654 Apr 16 20:49 shimaa64.efi
check out BOOT
tingo@Torfinns-MacBook-Air EFI % ls -la BOOT total 2392 drwx------ 1 tingo staff 4096 Apr 16 20:49 . drwx------ 1 tingo staff 4096 Apr 16 20:49 .. -rwx------ 1 tingo staff 229182 Sep 30 2024 bootaa64.efi -rwx------ 1 tingo staff 91096 Apr 16 20:49 fbaa64.efi -rwx------ 1 tingo staff 886296 Apr 16 20:49 mmaa64.efi -rwx------ 1 tingo staff 13 Sep 30 2024 startup.nsh
the theory here is that OpenBSD's installer overwrote bootaa64.efi in BOOT. And that it really is grub. First, store away the current bootaa64.efi
tingo@Torfinns-MacBook-Air EFI % mkdir openbsd tingo@Torfinns-MacBook-Air EFI % cp -v BOOT/bootaa64.efi openbsd BOOT/bootaa64.efi -> openbsd/bootaa64.efi
then copy back grubaa64.efi to bootaa64.efi
tingo@Torfinns-MacBook-Air EFI % cp fedora/grubaa64.efi BOOT/bootaa64.efi
then cd back and unmount
tingo@Torfinns-MacBook-Air EFI % cd tingo@Torfinns-MacBook-Air ~ % sudo diskutil umount disk0s4 Password: Volume EFI - FEDOR on disk0s4 unmounted
Yes - that worked.
2025-04-18: disk4s1s1 - network en0 is the active interface
tingo@Torfinns-MacBook-Air ~ % ifconfig en0 en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM> ether 52:99:cb:f4:5f:58 inet6 fe80::80b:f9ab:d5e6:4f9c%en0 prefixlen 64 secured scopeid 0xb inet6 fd8c:2fd0:94bd:0:875:d82b:f1ff:e7ed prefixlen 64 autoconf secured inet 10.1.161.8 netmask 0xffff0000 broadcast 10.1.255.255 nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active
there are lot of other interfaces too. Not sure what all of them are
tingo@Torfinns-MacBook-Air ~ % ifconfig lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 nd6 options=201<PERFORMNUD,DAD> gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280 stf0: flags=0<> mtu 1280 anpi0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether 9a:36:8d:9c:3e:44 media: none status: inactive anpi1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether 9a:36:8d:9c:3e:45 media: none status: inactive en3: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether 9a:36:8d:9c:3e:24 nd6 options=201<PERFORMNUD,DAD> media: none status: inactive en4: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether 9a:36:8d:9c:3e:25 nd6 options=201<PERFORMNUD,DAD> media: none status: inactive en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=460<TSO4,TSO6,CHANNEL_IO> ether 36:73:bd:8f:ae:c0 media: autoselect <full-duplex> status: inactive en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 options=460<TSO4,TSO6,CHANNEL_IO> ether 36:73:bd:8f:ae:c4 media: autoselect <full-duplex> status: inactive ap1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM> ether c2:b7:da:96:07:ab nd6 options=201<PERFORMNUD,DAD> media: autoselect (none) status: inactive en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM> ether 52:99:cb:f4:5f:58 inet6 fe80::80b:f9ab:d5e6:4f9c%en0 prefixlen 64 secured scopeid 0xb inet6 fd8c:2fd0:94bd:0:875:d82b:f1ff:e7ed prefixlen 64 autoconf secured inet 10.1.161.8 netmask 0xffff0000 broadcast 10.1.255.255 nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active bridge0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=63<RXCSUM,TXCSUM,TSO4,TSO6> ether 36:73:bd:8f:ae:c0 Configuration: id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0 maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200 root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0 ipfilter disabled flags 0x0 member: en1 flags=3<LEARNING,DISCOVER> ifmaxaddr 0 port 8 priority 0 path cost 0 member: en2 flags=3<LEARNING,DISCOVER> ifmaxaddr 0 port 9 priority 0 path cost 0 nd6 options=201<PERFORMNUD,DAD> media: <unknown type> status: inactive awdl0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=6460<TSO4,TSO6,CHANNEL_IO,PARTIAL_CSUM,ZEROINVERT_CSUM> ether 92:83:c4:d2:58:7e inet6 fe80::9083:c4ff:fed2:587e%awdl0 prefixlen 64 scopeid 0xd nd6 options=201<PERFORMNUD,DAD> media: autoselect status: active llw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=400<CHANNEL_IO> ether 92:83:c4:d2:58:7e inet6 fe80::9083:c4ff:fed2:587e%llw0 prefixlen 64 scopeid 0xe nd6 options=201<PERFORMNUD,DAD> media: autoselect (none) utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380 inet6 fe80::fc53:b1ff:74aa:eb98%utun0 prefixlen 64 scopeid 0xf nd6 options=201<PERFORMNUD,DAD> utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 inet6 fe80::c974:c1b7:50ad:96f3%utun1 prefixlen 64 scopeid 0x10 nd6 options=201<PERFORMNUD,DAD> utun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000 inet6 fe80::c161:8173:6e72:7bf9%utun2 prefixlen 64 scopeid 0x11 nd6 options=201<PERFORMNUD,DAD> utun3: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1000 inet6 fe80::ce81:b1c:bd2c:69e%utun3 prefixlen 64 scopeid 0x12 nd6 options=201<PERFORMNUD,DAD>
2025-04-17: disk4s1s1 - I mounted disk0s4 and copied out the firmware from asahi and vendorfw to a usb stick (fat 32).
2025-04-17: disk4s1s1 - try to mount the other EFI partition
tingo@Torfinns-MacBook-Air ~ % sudo diskutil mount disk0s8 Volume on disk0s8 failed to mount If you think the volume is supported but damaged, try the "readOnly" option tingo@Torfinns-MacBook-Air ~ % sudo diskutil mount readOnly disk0s8 Volume on disk0s8 failed to mount If you think the volume is supported but damaged, try the "readOnly" option
ok, that didn't work.
2025-04-17: disk4s1s1 - mount disk0s4 (EF for Fedora)
tingo@Torfinns-MacBook-Air ~ % sudo diskutil mount disk0s4 Volume EFI - FEDOR on disk0s4 mounted
check it out
tingo@Torfinns-MacBook-Air ~ % ls -lF /Volumes/EFI\ -\ FEDOR/* /Volumes/EFI - FEDOR/EFI: total 16 drwx------ 1 tingo staff 4096 Apr 16 20:49 BOOT/ drwx------ 1 tingo staff 4096 Apr 16 20:49 fedora/ /Volumes/EFI - FEDOR/asahi: total 106320 -rwx------ 1 tingo staff 702 Apr 16 20:51 AdminUserRecoveryInfo.plist* -rwx------ 1 tingo staff 75751 Apr 16 20:51 BuildManifest.plist* -rwx------ 1 tingo staff 358 Apr 16 20:51 RestoreVersion.plist* -rwx------ 1 tingo staff 606 Apr 16 20:51 SystemVersion.plist* -rwx------ 1 tingo staff 28204406 Apr 16 20:51 all_firmware.tar.gz* drwx------ 1 tingo staff 4096 Apr 16 20:51 extras/ -rwx------ 1 tingo staff 302689 Apr 16 20:51 installer.log* -rwx------ 1 tingo staff 25826504 Apr 16 20:51 kernelcache.release.mac14g* -rwx------ 1 tingo staff 570 Apr 16 20:51 stub_info.json* /Volumes/EFI - FEDOR/m1n1: total 12944 -rwx------ 1 tingo staff 3310598 Apr 16 21:45 boot.bin* -rwx------ 1 tingo staff 3310410 Apr 16 20:49 boot.bin.old* /Volumes/EFI - FEDOR/vendorfw: total 127384 -rwx------ 1 tingo staff 32517848 Apr 16 20:49 firmware.cpio* -rwx------ 1 tingo staff 32655360 Apr 16 20:49 firmware.tar* -rwx------ 1 tingo staff 38347 Apr 16 20:49 manifest.txt* drwx------ 1 tingo staff 4096 Apr 16 20:49 u-boot/
checkout EFI/*
tingo@Torfinns-MacBook-Air ~ % ls -lF /Volumes/EFI\ -\ FEDOR/EFI/* /Volumes/EFI - FEDOR/EFI/BOOT: total 2376 -rwx------ 1 tingo staff 229182 Sep 30 2024 bootaa64.efi* -rwx------ 1 tingo staff 91096 Apr 16 20:49 fbaa64.efi* -rwx------ 1 tingo staff 886296 Apr 16 20:49 mmaa64.efi* -rwx------ 1 tingo staff 13 Sep 30 2024 startup.nsh* /Volumes/EFI - FEDOR/EFI/fedora: total 13784 -rwx------ 1 tingo staff 112 Apr 16 20:49 BOOTAA64.CSV* -rwx------ 1 tingo staff 154 Apr 16 20:49 grub.cfg* -rwx------ 1 tingo staff 4210160 Apr 16 20:49 grubaa64.efi* -rwx------ 1 tingo staff 886296 Apr 16 20:49 mmaa64.efi* -rwx------ 1 tingo staff 971654 Apr 16 20:49 shim.efi* -rwx------ 1 tingo staff 971654 Apr 16 20:49 shimaa64.efi*
checkout asahi/extras
tingo@Torfinns-MacBook-Air ~ % ls -lF /Volumes/EFI\ -\ FEDOR/asahi/extras total 1552 -rwx------ 1 tingo staff 399751 Apr 16 20:51 mozilla-openh264-2.4.1-2.fc42.aarch64.rpm* -rwx------ 1 tingo staff 392413 Apr 16 20:51 openh264-2.4.1-2.fc42.aarch64.rpm*
checkout vendorfw/u-boot
tingo@Torfinns-MacBook-Air ~ % ls -lF /Volumes/EFI\ -\ FEDOR/vendorfw/u-boot total 8 drwx------ 1 tingo staff 4096 Apr 16 20:49 asmedia/ tingo@Torfinns-MacBook-Air ~ % ls -lF /Volumes/EFI\ -\ FEDOR/vendorfw/u-boot/asmedia total 192 -rwx------ 1 tingo staff 98304 Apr 16 20:49 asm2214a-apple.bin*
finally, unmount the disk
tingo@Torfinns-MacBook-Air ~ % sudo diskutil umount disk0s4 Password: Volume EFI - FEDOR on disk0s4 unmounted
2025-04-17: disk4s1s1 - diskutil shows these partions and disks
tingo@Torfinns-MacBook-Air ~ % diskutil list /dev/disk0 (internal, physical): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *251.0 GB disk0 1: Apple_APFS_ISC Container disk3 524.3 MB disk0s1 2: Apple_APFS Container disk4 69.1 GB disk0s2 3: Apple_APFS Container disk2 2.5 GB disk0s3 4: EFI EFI - FEDOR 524.3 MB disk0s4 5: Linux Filesystem 1.1 GB disk0s5 6: Linux Filesystem 30.9 GB disk0s6 7: EFI 268.4 MB disk0s8 8: 824CC7A0-36A8-11E3-890A-952519AD3F61 10.7 GB disk0s9 (free space) 130.0 GB - 9: Apple_APFS_Recovery Container disk1 5.4 GB disk0s7 /dev/disk2 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +2.5 GB disk2 Physical Store disk0s3 1: APFS Volume Fedora Linux with KD... 2.1 MB disk2s1 2: APFS Volume Fedora Linux with KD... 1.1 MB disk2s2 3: APFS Volume Preboot 197.9 MB disk2s3 4: APFS Volume Recovery 809.7 MB disk2s4 /dev/disk4 (synthesized): #: TYPE NAME SIZE IDENTIFIER 0: APFS Container Scheme - +69.1 GB disk4 Physical Store disk0s2 1: APFS Volume Macintosh HD 11.2 GB disk4s1 2: APFS Snapshot com.apple.os.update-... 11.2 GB disk4s1s1 3: APFS Volume Preboot 6.8 GB disk4s2 4: APFS Volume Recovery 1.0 GB disk4s3 5: APFS Volume Macintosh HD - Data 11.9 GB disk4s5 6: APFS Volume VM 20.5 KB disk4s6
2025-04-17: ssh server - I enabled it by System Settings, General, Sharing, Remote login and enabling it there.
2025-04-16: the machine runs macOS Sequoia 15.3.2
2025-04-16: I created this page.