#asahi-dev · 2021-11-05 07:58
agraf3) Copy all partitions from the disk image after that 2nd OS APFS container#asahi-dev · 2021-11-05 07:57
agraf2) Inject 2nd OS (Linux) APFS container right after#asahi-dev · 2021-11-05 07:57
agraf1) Shrink system macOS APFS container#asahi-dev · 2021-11-05 07:57
agrafmarcan: Your installer would do the following:#asahi-dev · 2021-11-05 07:57
agrafmarcan: So, what if you're just treating the distro disk image as what it is: A container with partitions and some meta information#asahi-dev · 2021-01-27 11:24
agrafThere were a few UEFI protocols that Windows relied on that U-Boot didn't implement last time I looked#asahi-dev · 2021-01-27 11:24
agrafBluerise: that one is using edk2 :)#asahi-dev · 2021-01-27 11:24
agrafBluerise: IIRC there were a few things missing for Windows support#asahi-dev · 2021-01-27 11:17
agrafBluerise: yup#asahi-dev · 2021-01-27 11:17
agrafmarcan: You can easily provide a tool to patch the Mach-O header accordingly as part of m1n1 ;)#asahi-dev · 2021-01-27 11:16
agrafBluerise: just do the linking step with m1n1 instead of ATF#asahi-dev · 2021-01-27 11:16
agrafBluerise: you could treat m1n1 like ATF, no?#asahi-dev · 2021-01-27 11:15
agrafIt's more about one source of reference ;)#asahi-dev · 2021-01-27 11:15
agrafBluerise: if you embed U-Boot into the m1n1 binary, you only have one binary too#asahi-dev · 2021-01-27 11:14
agrafI'd be curious to see which way actually ends up easier / more maintainable down the road#asahi-dev · 2021-01-27 11:14
agrafYeah, let's just see what Bluerise comes up with :)#asahi-dev · 2021-01-27 11:14
agrafAgain, it has special hooks for exactly that type of purpose#asahi-dev · 2021-01-27 11:14
agraf:)#asahi-dev · 2021-01-27 11:14
agrafmarcan: There are special per-SoC directories that are basically just dumpsters for exactly that type of code#asahi-dev · 2021-01-27 11:13
agrafmarcan: U-Boot does SMP spinup on some platforms#asahi-dev · 2021-01-27 11:13
agrafBluerise: I'm super happy it's been useful beyond my own use case ;)#asahi-dev · 2021-01-27 11:13
agrafSure, absolutely :)#asahi-dev · 2021-01-27 11:12
agrafI'm still not sure why we would need m1n1 in the picture though#asahi-dev · 2021-01-27 11:12
agrafThat wouldn't be too far off from the usual boot chains on ARM, yeah#asahi-dev · 2021-01-27 11:12
agrafor the OpenBSD loader for that matter#asahi-dev · 2021-01-27 11:11
agraf:)#asahi-dev · 2021-01-27 11:11
agrafyou boot grub#asahi-dev · 2021-01-27 11:11
agrafThere's a module that does it via OP-TEE, IIRC there's also one that just does it only at boot time via the UEFI env code, so could be anywhere, even on disk#asahi-dev · 2021-01-27 11:11
agrafThat's implementation dependent#asahi-dev · 2021-01-27 11:10
agrafso in theory you can store an actual boot order#asahi-dev · 2021-01-27 11:10
agrafit even implements bootmgr support these days#asahi-dev · 2021-01-27 11:10
agrafyes :)#asahi-dev · 2021-01-27 11:10
agrafNo, U-Boot just implements the UEFI removable protocol#asahi-dev · 2021-01-27 11:09
agrafAh#asahi-dev · 2021-01-27 11:09
agrafAlpine?#asahi-dev · 2021-01-27 11:09
agrafWhat is ALARM?#asahi-dev · 2021-01-27 11:08
agrafThat's the whole reason I built the UEFI support in U-Boot#asahi-dev · 2021-01-27 11:08
agrafif you want to target distros, you want *one* boot protocol, not 50#asahi-dev · 2021-01-27 11:08
agrafyeah, and then you have distros that are going to curse at you for the rest of your life because they now have to treat M1 special ;)#asahi-dev · 2021-01-27 11:07
agrafHaha :)#asahi-dev · 2021-01-27 11:07
agrafmarcan: why reinvent the wheel?#asahi-dev · 2021-01-27 11:07
agrafexactly :)#asahi-dev · 2021-01-27 11:07
agrafIRQs are optional#asahi-dev · 2021-01-27 11:07
agrafyes, and a bit of startup code#asahi-dev · 2021-01-27 11:06
agrafBluerise: It also solves the update problem nicely. The current Corellium blobs require you to go into recovery mode on update, because the kernel checksum is stored in the firmware#asahi-dev · 2021-01-27 11:06
agrafBluerise: I think porting U-Boot is an amazing idea#asahi-dev · 2021-01-27 11:06
agrafBluerise: sorry, was asleep until just now :)#asahi-dev · 2021-01-20 16:15
agrafpower management will also be a lot of fun ;)#asahi-dev · 2021-01-14 16:30
agrafin pci regs, the access type is just a cell#asahi-dev · 2021-01-14 16:30
agrafyou can do the same for an mmio64+prefetch -> mmio range :)