#asahi-dev · 2026-02-16 04:19
nicolas17but that would mean a normal boot (macOS as a mach-o) involves iBoot loading and initializing SPTM and *then* booting the kernel mach-o#asahi-dev · 2026-02-16 04:18
nicolas17so if I understand correctly, in M4 booting a raw binary has GXF unavailable (so we can't run macOS), and booting a mach-o starts with SPTM already loaded (so we can't run m1n1 or Linux because we don't have raw control over page tables), right?#asahi-dev · 2026-02-15 00:26
nicolas17I wish I could recommend appledb instead of wiki for programmatic use, but the "API" kinda sucks (and I should do something about it)#asahi-dev · 2026-02-15 00:20
nicolas17PrerequisiteBuild and PrerequisiteOSVersion in /Info.plist#asahi-dev · 2026-02-15 00:20
nicolas17ah yeah#asahi-dev · 2026-02-15 00:17
nicolas17in the wiki, the full OTA is the one with — as prerequisite version#asahi-dev · 2026-02-15 00:16
nicolas17but in what situation would you get a zip URL and need to dynamically check whether it's delta or not?#asahi-dev · 2026-02-14 23:04
nicolas17fl0_id: why do you need to check "if" an OTA is full or delta? where are you getting the URL for it?#asahi-dev · 2026-02-13 21:32
nicolas17but it got little testing so can't discount bugs :)#asahi-dev · 2026-02-13 21:31
nicolas17I *think* marcan implemented all that#asahi-dev · 2026-02-13 21:31
nicolas17the exception is arm64eBaseSystem.dmg which is in a binary delta with an empty base#asahi-dev · 2026-02-13 21:29
nicolas17most firmware files are just sitting in the OTA zip, in a slightly different path than in the ipsw#asahi-dev · 2026-02-13 21:22
nicolas17no ipsw, but you can get the ota update https://theapplewiki.com/wiki/OTA_Updates/Mac/14.x#asahi-dev · 2026-02-13 06:15
nicolas17shutting the lid will lower the wifi quality because the antenna is around the screen but that's an entirely different topic :D#asahi-dev · 2026-02-12 01:55
nicolas17the only thing remaining encrypted is SEPOS, and that I think with a swd-capable development-fused device you don't necessarily get the needed SEP access either#asahi-dev · 2026-02-12 01:54
nicolas17nickchan: well nowadays iBoot is not encrypted anymore#asahi-dev · 2026-02-11 21:13
nicolas17not that it would help us bypass it, but...#asahi-dev · 2026-02-11 21:11
nicolas17has anyone tried reversing iBoot to figure out how these registers/features get locked down in raw boot mode (or enabled in mach-o mode)?#asahi-dev · 2026-02-11 03:52
nicolas17nickchan: fun fact, a few years ago never_released wanted to play around with nested virtualization and only had M1, so I gave him an ssh account on my M2 Mac; a month later I rebooted and saw him in the macOS login screen and freaked out for a second until I remembered >.>#asahi-dev · 2026-02-11 03:35
nicolas17...what's "NV"?#asahi-dev · 2026-02-11 03:26
nicolas17then there's M5 where I think every OS is using exclaves (:#asahi-dev · 2026-02-11 03:24
nicolas17/s#asahi-dev · 2026-02-11 03:24
nicolas17write a driver to make Linux delegate its pagetable management to Apple's SPTM code, how hard could it be#asahi-dev · 2026-02-11 03:21
nicolas17I don't consider qualcomm to be a high bar :p https://wetdry.world/@ipg/114999351341131151#asahi-dev · 2026-02-11 03:19
nicolas17so if we tell them "fine keep your GL2 secrets but we really need the hypervisor system register" *maybe* they will listen?#asahi-dev · 2026-02-11 03:18
nicolas17they added raw boot objects later, to our benefit#asahi-dev · 2026-02-11 03:17
nicolas17IIRC macOS 11 shipped with only Mach-O boot objects#asahi-dev · 2026-02-11 03:14
nicolas17if you mean exploits I find that unlikely :P#asahi-dev · 2026-02-11 03:13
nicolas17...do we need to lobby Apple?#asahi-dev · 2026-02-11 03:10
nicolas17in magical land where we have hardware documentation or whatever and we can magically port linux to m4... we can't run VMs because registers required for hypervisor are disabled in raw boot mode??#asahi-dev · 2026-02-11 03:09
nicolas17wth#asahi-dev · 2026-02-11 03:06
nicolas17Shiz: so yeah I think what sven meant with "we can't virtualize it on m4" is "we can't run macOS in m1n1 and trace the way it accesses GXF, because there is no GXF available when we do that"#asahi-dev · 2026-02-11 03:04
nicolas17at least that's how I'd do it...#asahi-dev · 2026-02-11 03:03
nicolas17then you can move that to an M4#asahi-dev · 2026-02-11 03:03
nicolas17then you can start emulating the behavior instead of letting the actual CPU handle it#asahi-dev · 2026-02-11 03:01
nicolas17and *that* needs M2/M3#asahi-dev · 2026-02-11 03:01
nicolas17to emulate GL2 first you need to understand how it works and how the software uses it, and for that the best way is what y'all have been doing for other hardware: pass-through virtualization that logs accesses but then forwards it to the real hardware#asahi-dev · 2026-02-11 02:59
nicolas17ah now I see the context of the conversation :p#asahi-dev · 2026-02-11 02:54
nicolas17oof#asahi-dev · 2026-02-11 02:54
nicolas17"Either: emulate GL2 on a "regular" ARM CPU: Trap genter/gexit and create shadow copies of pagetables, or: Try to inject hardware driver kexts into vmapple XNU that can run without guarded levels"#asahi-dev · 2026-02-11 02:53
nicolas17AH just found it on mastodon#asahi-dev · 2026-02-11 02:53
nicolas17sven: btw are your slides available? you skipped a few things due to time constraints#asahi-dev · 2026-02-11 02:51
nicolas17according to sven's talk at 39c3, the CPU extensions are available on M2/M3 when booting a foreign OS, they are not on M4#asahi-dev · 2026-02-11 02:46
nicolas17I think on M4 macOS expects SPTM to handle pagetables, but if you boot a "foreign OS" like m1n1, the proprietary instructions to initialize guarded exception levels and make SPTM run on it, are all disabled#asahi-dev · 2026-02-09 05:24
nicolas17in practice, wayback machine has issues with files that large#asahi-dev · 2026-02-09 05:24
nicolas17in theory this would give you the 13.5 installassistant https://web.archive.org/web/20231017143944/https://swcdn.apple.com/content/downloads/01/07/032-69593-A_15V577BH7O/fau3wbhcg9pmo81cgkb2qjp0gfbp1jxu26/InstallAssistant.pkg#asahi-dev · 2025-11-18 06:09
nicolas17ah there's always the logs i guess#asahi-dev · 2025-11-18 05:27
nicolas17nickchan: deadf00d isn't here now :P#asahi-dev · 2025-10-26 22:06
nicolas17iretq: so you had both sq and cq on the same piece of memory? :D#asahi-dev · 2025-10-25 21:13
nicolas17pmgr = power manager, MMIOs = memory-mapped I/O registers