#asahi · 2021-09-13 17:33
marcanand boots a linux-standard image#asahi · 2021-09-13 17:33
marcanand the whole thing that puts ADT data into the FDT#asahi · 2021-09-13 17:33
marcanPCIe init, other tunables, disabling the watchdog, etc#asahi · 2021-09-13 17:32
marcanyes, what else would take its place?#asahi · 2021-09-13 17:29
marcanamw: you should delete the extra volumes in the first partition, if it's not something you're using. that's not supported and patching the len(vols) thing will just give you a 50/50 on which one it picks, which isn't great#asahi · 2021-09-13 17:27
marcanat this point the goal is to prove that the whole idea of the installer is viable, and to make life a lot easier for devs who don't want to have to do a full blown macOS install#asahi · 2021-09-13 17:27
marcanamw: the script is a PoC, it's missing features like "just upgrade my existing m1n1" and "resize macOS for me"#asahi · 2021-09-13 13:09
marcankettenis: it might be that on machines I remember doing this in there was already something else there :)#asahi · 2021-09-12 17:27
marcandistros being able to use the usual kernel management stuff#asahi · 2021-09-12 17:25
marcankettenis: I don't know if this is different on arm64, but at least on x86 it's common to put grub on a nonstandard path and rely on BootOrder to point to it#asahi · 2021-09-12 10:49
marcan(I need to fix this to make multiple OSes per container work)#asahi · 2021-09-12 10:49
marcanthat's what's causing it to bail#asahi · 2021-09-12 10:49
marcanbesides the macOS install#asahi · 2021-09-12 10:49
marcanamw: you have a Linux-V thing going on in your first container#asahi · 2021-09-12 08:37
marcanyeah, exactly#asahi · 2021-09-12 08:37
marcanand you can run it from /tmp/asahi-install and just edit files there#asahi · 2021-09-12 08:36
marcanyeah#asahi · 2021-09-12 08:36
marcanif you have multiple installs in one APFS container it won't work, I need to rearchitect things a bit to fix that#asahi · 2021-09-12 08:36
marcanamw: can you show the APFS volumes on that first partition?#asahi · 2021-09-12 08:35
marcansorear: they usually have locks like that, yes#asahi · 2021-09-12 08:34
marcanamw: it should work; it doesn't like something about the macOS partition#asahi · 2021-09-12 04:28
marcan*that* was the problem, not the existence of a serial number#asahi · 2021-09-12 04:28
marcanthe piii controversy was about *letting any random unprivileged app read it*#asahi · 2021-09-12 04:28
marcanthe piii controversy wasn't about that#asahi · 2021-09-12 04:28
marcanthat ship has long sailed#asahi · 2021-09-12 04:28
marcanchadmed: *every* modern SoC has a unique serial number#asahi · 2021-09-12 04:27
marcanthere is definitely calibration data in fuses too#asahi · 2021-09-12 04:27
marcanthe chip ID etc#asahi · 2021-09-12 04:27
marcanphire: fuses#asahi · 2021-09-12 02:35
marcanI guess that works by grabbing certs/calibration from the mothership? which is neat if it works#asahi · 2021-09-12 02:35
marcanthough I'm not sure if I want to try that#asahi · 2021-09-12 02:35
marcanOTOH I've heard that, in fact, these machines *are* fully unbrickable via DFU even if you manage to nuke the entire NOR#asahi · 2021-09-12 02:34
marcanyou'll probably need a DT overlay or somesuch to turn it on if I have my way#asahi · 2021-09-12 02:34
marcanyes, I don't plan to expose the NOR flash at *all* unless I have to#asahi · 2021-09-12 02:30
marcanthat'd be a neat hack#asahi · 2021-09-12 02:30
marcanOTOH, it would be possible to just patch efibootmgr to access efivars differently, or even if u-boot uses an EFI variable storage as flat files, just bind mount that into /sys/firmware/efi/efivars#asahi · 2021-09-12 02:30
marcanand we have no way to share NVMe access with the running OS#asahi · 2021-09-12 02:30
marcansince unless we use the M1's actual nvram (which seems reeeeal hairy), we'd have to store variables on disk#asahi · 2021-09-12 02:29
marcanthere's no real way for us to support that#asahi · 2021-09-12 02:29
marcanso we might still need to have users manually move grub if installed to a nondefault path, or patch u-boot to recognize "typical" boot paths for distros, to make it properly seamless#asahi · 2021-09-12 02:28
marcanyeah thought so#asahi · 2021-09-12 02:28
marcanruntime."#asahi · 2021-09-12 02:28
marcan"As of U-Boot v2018.03 UEFI variables are not persisted and cannot be set at#asahi · 2021-09-12 02:27
marcanbut at least booting from the default path should#asahi · 2021-09-12 02:27
marcanso probably efibootmgr and co won't actually work, need to look into that#asahi · 2021-09-12 02:27
marcanI'm guessing not, given it has no way to share storage access#asahi · 2021-09-12 02:27
marcan(EFI variables basically)#asahi · 2021-09-12 02:27
marcanI should look into that#asahi · 2021-09-12 02:27
marcannot even sure if U-Boot provides runtime services#asahi · 2021-09-12 02:27
marcanyup