#asahi-dev · 2021-05-15 08:55
marcanif they don't already exist :)#asahi-dev · 2021-05-15 08:55
marcanm1n1's job is to build a devicetree for the next stages to use among other things, and currently m1n1 protects itself in memory (it may free some of its memory in the future but some things will require parts of it to stay resident; this is all subject to change as more details are worked out) so it would be fairly simple to establish DT bindings to do the same thing that ACPI table does#asahi-dev · 2021-05-15 08:52
marcanwell, I'm sure we can come up with something for this#asahi-dev · 2021-05-15 08:52
marcanah no, it goes to a separate memory area presumably#asahi-dev · 2021-05-15 08:51
marcanoh wait, it's just a descriptor?#asahi-dev · 2021-05-15 08:50
marcanI would've imagined it worked like the latter, heh#asahi-dev · 2021-05-15 08:50
marcanohh, so, like, passing a firmware background explicitly instead of just saying "contents of the framebuffer"?#asahi-dev · 2021-05-15 08:47
marcanand then as long as the DRM/KMS driver knows how to hand-off (which it will because it's all specific to this hardware anyway) it should just work#asahi-dev · 2021-05-15 08:46
marcanUEFI obviously has the UEFI framebuffer stuff and we can support that I think, for bootloader bits (though these macs use a 10bpc mode, not sure if the UEFI spec supports that, but if we *really* want to m1n1 or u-boot could probably flicker-free downgrade that to 8bpc for compat)#asahi-dev · 2021-05-15 08:46
marcanI don't think ACPI has anything to do with this, or does it?#asahi-dev · 2021-05-15 08:44
marcanthat's definitely my plan anyway#asahi-dev · 2021-05-15 08:44
marcaniBoot initializes the framebuffer, puts an apple there; m1n1 replaces it with the Asahi logo; whatever comes after m1n1 pre-OS will still use the same framebuffer (e.g. u-boot) and hopefully Linux will smoothly take over that#asahi-dev · 2021-05-15 08:43
marcanI thought you meant some kind of specific logo thing#asahi-dev · 2021-05-15 08:43
marcan(this also ties in with the DRM KMS driver I need to write)#asahi-dev · 2021-05-15 08:43
marcanEighth_Doctor: oh you mean framebuffer handover? yeah I want to do that as cleanly as possible#asahi-dev · 2021-05-15 08:42
marcan:-)#asahi-dev · 2021-05-15 08:42
marcanwhich is perfect#asahi-dev · 2021-05-15 08:41
marcaniBoot doesn't care and happily loads whatever *is* available#asahi-dev · 2021-05-15 08:41
marcanI did a nasty trick where I have a 64MB segment at the end of the mach-o, then chop it off#asahi-dev · 2021-05-15 08:41
marcanso while you can't change the logo post install or keep it as a separate file, it's certainly easy to add support for changing the logo at install time easily#asahi-dev · 2021-05-15 08:40
marcanor you can append a kernel and direct boot that#asahi-dev · 2021-05-15 08:40
marcanthat's how u-boot is embedded#asahi-dev · 2021-05-15 08:40
marcani.e. cat m1n1.macho logo.bin or whatever (not supported right now but easy to add)#asahi-dev · 2021-05-15 08:40
marcanalso fwiw, m1n1 does support inline payloads so at least adding support for replacing the logo that way (i.e. easily at m1n1 install time) is trivial#asahi-dev · 2021-05-15 08:39
marcanEighth_Doctor: not sure how the efi logo thingy works?#asahi-dev · 2021-05-15 08:39
marcanI can control the version but haven't figured out if I can change the macOS part#asahi-dev · 2021-05-15 08:39
marcanbut under that it says "macOS <someversion>"#asahi-dev · 2021-05-15 08:39
marcanno I mean Linux is just the partition name#asahi-dev · 2021-05-15 08:38
marcanj`ey: :)#asahi-dev · 2021-05-15 08:38
marcanyeah that's the version thing#asahi-dev · 2021-05-15 08:38
marcanEmantor: pretty much#asahi-dev · 2021-05-15 08:37
marcanI know I can change the version number at least#asahi-dev · 2021-05-15 08:37
marcanthat's another thing, "Linux" shows up as macOS on the boot picker right now, but I hope there's a way to change that#asahi-dev · 2021-05-15 08:37
marcanneat :)#asahi-dev · 2021-05-15 08:37
marcannot like Arch has much branding to begin with#asahi-dev · 2021-05-15 08:37
marcanI'm not even sure if we'll brand our ALARM images, maybe optionally?#asahi-dev · 2021-05-15 08:37
marcanwe're really about "Linux on M1", people can pick their distro#asahi-dev · 2021-05-15 08:36
marcanlike, we'll be maintaining an ALARM package repo, sure, but that's just an example#asahi-dev · 2021-05-15 08:36
marcanfwiw the Asahi stuff is more about the core M1 support project than a distro per se, so an Asahi logo briefly flashing before Fedora takes over at the UEFI stage is not incongruent#asahi-dev · 2021-05-15 08:35
marcanhah#asahi-dev · 2021-05-15 08:35
marcan:)#asahi-dev · 2021-05-15 08:34
marcanwell, I want to make our installer as newbie-friendly as I can in textmode, and if someone wants to do a graphical version I would certainly welcome that :-)#asahi-dev · 2021-05-15 08:34
marcanwe don't have ext4 mounting in 1TR of course, but we could use a userspace library or just rely on the disk image being sane; the EFI partition of course will be FAT32. m1n1 itself gets installed on APFS as that is all iBoot supports (along with iBoot2 and device firmwares, that layer we do not control but have to provision)#asahi-dev · 2021-05-15 08:33
marcanmy plan is to stream the rootfs straight to disk in 1TR, no need for USB#asahi-dev · 2021-05-15 08:32
marcanor just let people use m1n1+u-boot to boot a standard USB UEFI installer#asahi-dev · 2021-05-15 08:32
marcanbut if you really want to have a full custom installer from 1TR you could do that#asahi-dev · 2021-05-15 08:32
marcanEighth_Doctor: depends on how much control you want to have; e.g. if people put up disk images we can just add to our alx.sh script I certainly would want to give people a list of options in our install script#asahi-dev · 2021-05-15 08:30
marcanaudio is a lot simpler than USB :P#asahi-dev · 2021-05-15 08:30
marcanso I do not expect anyone to ever remove 1TR (you can if you want to, but you'll be stuck without e.g. boot selection until you recover via DFU mode)#asahi-dev · 2021-05-15 08:30
marcanthis is also why I call 1TR part of firmware, you really do need it for basic functionality