#asahi · 2021-01-08 05:46
marcanbut Linux already supports crazy ARM64 machines (see: every Android phone), so I don't see why u-boot will buy me anything at *this* stage#asahi · 2021-01-08 05:45
marcanwhether I go straight to Linux at that point, or u-boot first, will depend on what I see when I investigate that boot protocol on ARM64#asahi · 2021-01-08 05:45
marcananyway, I know my *first* shot will be me playing around with mini#asahi · 2021-01-08 05:45
marcanhttps://github.com/AsahiLinux/docs/wiki/M1-vs.-PC-Boot wrote some stuff up#asahi · 2021-01-08 05:45
marcanwe are not putting the kernel on APFS, that's for sure#asahi · 2021-01-08 05:30
marcan:)#asahi · 2021-01-08 05:30
marcanmaybe hackintosh recovery mode is different#asahi · 2021-01-08 05:30
marcan(we cannot run our own binary code in recovery mode, it's signed)#asahi · 2021-01-08 05:30
marcans/whatever/whatever scripts/#asahi · 2021-01-08 05:30
marcanas long as we can do the entire boot setup process in recovery mode, that will be the sanest installer environment#asahi · 2021-01-08 05:29
marcanyou can curl|sh and run whatever#asahi · 2021-01-08 05:29
marcanrecovery mode gives you a root shell#asahi · 2021-01-08 05:29
marcananyway, again, think of recovery mode as your UEFI setup#asahi · 2021-01-08 05:29
marcanI mean there's mkfs#asahi · 2021-01-08 05:29
marcanon macos, yes#asahi · 2021-01-08 05:29
marcanso ideally we never change it#asahi · 2021-01-08 05:29
marcansince to update that first stage requires doing bootpolicy magic which requires being in recovery mode I believe#asahi · 2021-01-08 05:28
marcanthat could be whatever we want it to be, but the reasonable thing to do is make it be a first stage that hands off to something more controllable#asahi · 2021-01-08 05:28
marcanexactly#asahi · 2021-01-08 05:28
marcaniBoot can boot a mach-o object file wrapped in img4 and whose hash is inserted into the local bootpolicy#asahi · 2021-01-08 05:27
marcanor do you mean to boot it?#asahi · 2021-01-08 05:27
marcanI think#asahi · 2021-01-08 05:27
marcandavidrysk[m]: it's signed, so you need the whole thing#asahi · 2021-01-08 05:26
marcanlet me write a wiki page about this#asahi · 2021-01-08 05:26
marcanif you think of the mental map like that the whole model makes a lot more sense#asahi · 2021-01-08 05:26
marcanand the "recovery partition" is the UEFI setup#asahi · 2021-01-08 05:26
marcanand the "ESP" is APFS here#asahi · 2021-01-08 05:26
marcanit is what it is, effectively#asahi · 2021-01-08 05:26
marcanyou need to think of iBoot as the UEFI firmware on any random PC#asahi · 2021-01-08 05:26
marcanthe unsigned code handoff is from iBoot#asahi · 2021-01-08 05:25
marcanAlex[m]17: we cannot not use iBoot#asahi · 2021-01-08 05:25
marcanso the first usable linux will probably look like a minimal APFS (or a full macos for dual boot) for the bootloader/mini, /boot on FAT32 (not unlike people who use the ESP as /boot, I do that on some systems), and ext4 or whatever for /#asahi · 2021-01-08 05:24
marcanbecause iBoot only understands APFS#asahi · 2021-01-08 05:24
marcanprobably FAT32 for the first version because fatfs is just so easy to run on anything and mini has it already#asahi · 2021-01-08 05:23
marcandavidrysk[m]: the first stage needs to live on APFS, I intend for that to be a bootloader only and the real linux kernel can live on something else#asahi · 2021-01-08 05:07
marcanu-boot makes sense when low level init an ATF and such are involved, but with the M1 being so custom (AIC...) and iBoot doing all the low level stuff for us, I don't feel like it'll buy us much a priori#asahi · 2021-01-08 05:06
marcanbut it might for long-term bootloading#asahi · 2021-01-08 05:06
marcanporting u-boot doesn't seem like worth the effort for initial bring-up#asahi · 2021-01-08 05:05
marcanwhether it makes sense to switch to u-boot at some point or not, we will see#asahi · 2021-01-08 05:05
marcannot decided yet. initially it will be a custom thing I cook up based on mini#asahi · 2021-01-08 04:58
marcanI mean I won't work with those vendors either, but at least you know upfront what you get#asahi · 2021-01-08 04:58
marcanyeah, that's a different story#asahi · 2021-01-08 04:47
marcanyeah, that's still dumb but a different story#asahi · 2021-01-08 04:42
marcandavidrysk[m]: please do#asahi · 2021-01-08 04:41
marcan(still shit, but not the same)#asahi · 2021-01-08 04:41
marcanDMCAing "confidential" leaked datasheets I could understand#asahi · 2021-01-08 04:41
marcanI assume these were *public* datasheets?#asahi · 2021-01-08 04:40
marcanI don't care what the lawyers think should happen on paper, if engineers can't share datasheets I can't work with you#asahi · 2021-01-08 04:40
marcanthat's a big nopenopenopenopenope#asahi · 2021-01-08 04:40
marcanstill, DMCAing a datasheet is an instant DQ from any future design from me, as far as I'm concerned