#asahi · 2021-09-12 02:25
marcan*skip#asahi · 2021-09-12 02:25
marcansure you can skil everything after m1n1, it's just not... practical#asahi · 2021-09-12 02:25
marcanthe point of the m1n1 -> U-Boot -> GRUB chain is that each step of the way gets closer to distro/user-friendly management#asahi · 2021-09-12 02:24
marcan(or load it via USB, tethered)#asahi · 2021-09-12 02:24
marcanyeah though I wouldn't recommend skipping U-Boot, because it means you have to go into macos recovery for every kernel update#asahi · 2021-09-12 02:22
marcanthen you get to roll your own install tooling though, most mainstream distros won't be managing U-Boot configs for you#asahi · 2021-09-12 02:22
marcanof course if you want to build U-Boot without UEFI support and install that with m1n1, you are completely free to do that too :)#asahi · 2021-09-12 02:22
marcan(in its core)#asahi · 2021-09-12 02:22
marcanand actually completely openly documented and open source as I said#asahi · 2021-09-12 02:21
marcanthere are of course technical reasons not to like UEFI's design (e.g. the fact that it uses the Windows PE executable format of all things), but those are minor gripes; the reality is that for better or for worse it's a standard well worth supporting#asahi · 2021-09-12 02:20
marcan(not sure, just guessing)#asahi · 2021-09-12 02:20
marcan(except maybe like, headers)#asahi · 2021-09-12 02:20
marcanbut this isn't even that, this is a completely separate implementation in U-Boot, which has nothing to do with EDK2 as far as I know#asahi · 2021-09-12 02:20
marcanpart of which is required by AMD/Intel etc#asahi · 2021-09-12 02:20
marcanof course once manufacturers go and put that on devices they throw in a million proprietary modules#asahi · 2021-09-12 02:19
marcanyou can build them yourself, I have#asahi · 2021-09-12 02:19
marcanUEFI's core stuff is completely open source, e.g. the versions that run on KVM/QEMU#asahi · 2021-09-12 02:19
marcanit's a very different thing#asahi · 2021-09-12 02:19
marcanthis is *U-Boot* that just happens to provide a UEFI *interface*#asahi · 2021-09-12 02:18
marcanthis is not UEFI *firmware*#asahi · 2021-09-12 02:18
marcanand as I said, the U-Boot version is way, way simpler#asahi · 2021-09-12 02:18
marcanall the code is open source, both EDK2 and what we'll be using in U-Boot#asahi · 2021-09-12 02:18
marcanchadmed: it's completely libre#asahi · 2021-09-12 02:18
marcanand it runs on that secret hypervisor mode on x86 that has existed since pentium#asahi · 2021-09-12 02:17
marcanthat's not a thing on ARM#asahi · 2021-09-12 02:17
marcanyou're thinking of ye olde PS/2 SMM emulation nonsense on x86#asahi · 2021-09-12 02:17
marcannope#asahi · 2021-09-12 02:17
marcanOSes can only use an extremely restricted set of services, basically the framebuffer that is already set up and EFI variable storage#asahi · 2021-09-12 02:17
marcanUEFI apps can use console/keyboard/etc services#asahi · 2021-09-12 02:16
marcanOSes aren't#asahi · 2021-09-12 02:16
marcanGRUB is a UEFI app that runs in the UEFI environment#asahi · 2021-09-12 02:16
marcanExitBootServices gets called prior to booting the OS#asahi · 2021-09-12 02:16
marcanno, I don't think grub needs IRQs, nor do most bootloaders#asahi · 2021-09-12 02:16
marcanand without interrupts and timers you can't really have an OS#asahi · 2021-09-12 02:15
marcanonly the FB, not the keyboard#asahi · 2021-09-12 02:15
marcanthat's not a thing once you exit bootservices AIUI#asahi · 2021-09-12 02:15
marcanwe are going to be using the UEFI implementation that is part of U-Boot; we are not throwing EDK2 on here#asahi · 2021-09-12 02:15
marcan(which looks likely with sven's magic)#asahi · 2021-09-12 02:14
marcan(especially if we solve the page size issue)#asahi · 2021-09-12 02:14
marcanyou just install m1n1+u-boot, plug in a USB install image, and it just works like on any other machine#asahi · 2021-09-12 02:14
marcanthat means once we upstream things into the kernel/userspace, distros don't have to do *anything*#asahi · 2021-09-12 02:14
marcanthe OS still needs to be modified; *bootloaders* don't, and thus neither does a lot of the installation machinery#asahi · 2021-09-12 02:13
marcanUEFI allows distributions to use the same installation process as on ARM SystemReady platforms (and x86), with GRUB and such, which users are used to and things integrate with#asahi · 2021-09-12 02:12
marcanchadmed: what do you think is problematic about UEFI?#asahi · 2021-09-12 01:05
marcanit should come up before the main CPU#asahi · 2021-09-12 01:05
marcanthat was re: SMC#asahi · 2021-09-12 01:05
marcaner sorry, was backlogged#asahi · 2021-09-12 01:04
marcanit should be#asahi · 2021-09-11 13:02
marcanyeah#asahi · 2021-09-11 13:02
marcanthe library solution seems reasonable, especially considering all the display related sub-drivers in DCP are the kind of thing that ends up in one big module on linux anyway, for other hardware