#asahi · 2021-08-06 15:35
marcanon M1 all memory is coherent, and you want it like that#asahi · 2021-08-06 15:35
marcanthat is mostly x86 specific#asahi · 2021-08-06 15:35
marcanalyssa: do not use any of that nonsense#asahi · 2021-08-06 11:23
marcanbut AIUI that can only happen from recovery mode#asahi · 2021-08-06 11:23
marcanyou *can* do a "reduced security" mode install, I actually got a prompt for that while installing macOS once because I guess the network failed?#asahi · 2021-08-06 11:22
marcanno, Apple will only sign a subset of recent macOS versions for security reasons if you're in "full security" mode#asahi · 2021-08-06 11:19
marcanif you are using an older base macOS then you either need to run the installer from recovery first, or make it a three step process (macOS -> recovery -> 1TR) I believe#asahi · 2021-08-06 11:18
marcan(stage 2, i.e. bputil/kmutil, always has to happen in 1TR, but we know that already)#asahi · 2021-08-06 11:17
marcanalso, all of this can be tested/developed under macOS. in fact you don't need recovery at all for the first step of installation *if* you're using a base macOS version that Apple still signs in TSS.#asahi · 2021-08-06 11:16
marcanIf standalone python bootstrap isn't an issue and I write this in python as I intend to, I expect just making a little cache layer between ZipFile and urllib will do what I want#asahi · 2021-08-06 11:16
marcanI haven't tried that yet but I know that will work. I've done streamed zips before.#asahi · 2021-08-06 11:15
marcanThe initial installer prototype will probably be a simple thing that you can point at an APFS container and it'll create everything needed to run m1n1, I might add some basic logic so you can just point it at a macOS partition and give it a target size and it'll make space for a secondary linux install next to it and set things up#asahi · 2021-08-06 11:14
marcanbtw, for those that missed the installer stream: building a bootable partition "manually" works, copying files from another one. I believe I know how to construct all those files from ipsw contents, so now I just need to write a script to do it.#asahi · 2021-08-06 11:12
marcansven: awesome :D#asahi · 2021-08-06 11:12
marcanj_ey: I saw the tweet :)#asahi · 2021-08-06 09:52
marcanah, makes sense then#asahi · 2021-08-06 09:31
marcan(other than it not being pci)#asahi · 2021-08-06 09:31
marcanI hadn't realized there were deeper differences this time around#asahi · 2021-08-06 09:31
marcansven: is the different nvme queue thing new for M1? with the larger qes I was referring to the quirk that T2 macs needed#asahi · 2021-08-05 15:33
marcanAFAICT, 1TR now is the paired recovery of whatever the default boot OS is#asahi · 2021-08-05 15:33
marcanrobinp: so 1TR isn't "that last partition", it means "physical presence asserted"#asahi · 2021-08-05 11:21
marcannot much there we don't already know about#asahi · 2021-08-04 12:41
marcanI wonder if it works for a first install; if it does we may be able to bypass the need for macos at all, at some point#asahi · 2021-08-04 12:40
marcanthe user DB stuff is interesting though, because that was a prior problem/thing that was broken#asahi · 2021-08-04 12:39
marcanthis is copying files from an existing install, but other than that user database stuff, nothing I shouldn't know how to create#asahi · 2021-08-04 12:39
marcanyeah#asahi · 2021-08-04 10:21
marcanstreaming installer shenanigans in a bit: https://youtu.be/uqPLyBS20PA#asahi · 2021-08-04 09:22
marcansince I don't really have a use for a "normal" macOS install on this machine, it's just a dev box (that's what the air is for)#asahi · 2021-08-04 09:21
marcanI'm actually probably going to nuke my 2nd macOS install on my mini soon, and just say my first is the main one (mostly to use with the HV) and the second one linux only, so I can try the installer out on the second one#asahi · 2021-08-04 09:20
marcanyou can install m1n1 "on top of" macOS but it's not recommended unless you're using that to run that macOS instance under the HV#asahi · 2021-08-04 01:37
marcanj_ey: 70GB is still good enough, assuming you delete old installer garbage and such if it ends up left over#asahi · 2021-08-03 18:20
marcanhaven't tried it yet, but M1 support got merged#asahi · 2021-08-03 18:20
marcanhttps://github.com/libimobiledevice/idevicerestore#asahi · 2021-08-03 18:20
marcanpipcet[m]: #asahi · 2021-08-03 18:16
marcanhides#asahi · 2021-08-03 18:16
marcanactually the imac is still in the box because I've been procrastinating figuring out where to mount it#asahi · 2021-08-03 18:16
marcansame (+pro but tbh I don't really use it much)#asahi · 2021-08-03 18:16
marcanpipcet[m]: you can DFU from linux#asahi · 2021-08-03 18:15
marcanmps: it'll be really good when it's done, but it's not done yet ;)#asahi · 2021-08-03 18:01
marcanand then once that's done you swap out the kernel's idea of what the real L1 is and you're done#asahi · 2021-08-03 18:01
marcanas long as the copy is word-wise, I think it should be atomic and not bork#asahi · 2021-08-03 18:00
marcanif locked, copy instead#asahi · 2021-08-03 18:00
marcanand then, if !locked, just swap the TTBRs#asahi · 2021-08-03 18:00
marcanI was thinking we could walk the page table, re-adding those mappings to the kernel's view#asahi · 2021-08-03 17:59
marcaneven for non-locked DARTs like disp0#asahi · 2021-08-03 17:59
marcanthe main thing though is that we also need to support seamlessly adopting all mappings#asahi · 2021-08-03 17:59
marcanso it just means the kernel needs to adopt that PT as is#asahi · 2021-08-03 17:59
marcanbut that pagetable is writable#asahi · 2021-08-03 17:59
marcanso you need to continue to use the L1 pagetable from iBoot#asahi · 2021-08-03 17:34
marcanand once that works you can move on to working through the init sequence, which you can do incrementally (the very first thing it's going to require you to do is support callbacks)