#asahi-alt · 2023-09-22 12:32
chadmedthey should not behave like an rpi4 because theyre like 999 grillion times more useable and powerful #asahi-alt · 2023-09-22 12:32
chadmedand even more politically i think it gives these machines too much of an "embedded" image#asahi-alt · 2023-09-22 12:32
chadmedleio: i dont think its really in the spirit of gentoo for starters#asahi-alt · 2023-09-22 10:45
chadmedack, joined#asahi-alt · 2023-09-22 10:36
chadmedjust joined the gentoo channels on libera too if we want to discuss with others there, just ping me#asahi-alt · 2023-09-22 10:34
chadmedleio: https://gist.github.com/chadmed/97cfabbc109c7e616ccb9c32c21e71c4 (ccing sam_ too)#asahi-alt · 2023-09-22 09:47
chadmedthe config shouldnt change for t602x #asahi-alt · 2023-09-22 09:46
chadmedactually let me get a gist together that summarises what we need and where#asahi-alt · 2023-09-22 09:46
chadmedi can chuck mine in a gist, should be enough to work across all currently supported devices#asahi-alt · 2023-09-22 09:45
chadmedi dont change anything else about the root extracted from the image#asahi-alt · 2023-09-22 09:45
chadmedliterally the only difference is the kernel, if releng can spin out a livecd with the asahi kernel and its modules then thats all that needs to change #asahi-alt · 2023-09-22 09:44
chadmedyeah that would be ideal#asahi-alt · 2023-09-22 09:43
chadmedmy whole thing is that i like to make these things self-hosting because i dont think i can keep my web server uptime high enough to host images/build artefacts#asahi-alt · 2023-09-22 09:41
chadmedi was thinking reuse the existing infrastructure we have to pull out and manipulate the squashfs, but extract it to a bootable usb #asahi-alt · 2023-09-22 09:40
chadmedyeah i see what youre doing now, that makes a lot more sense#asahi-alt · 2023-09-22 09:38
chadmedi think given the time it takes to actually install gentoo its been an acceptable tradeoff until now, and its really only a problem now because things are in flux#asahi-alt · 2023-09-22 09:38
chadmedlike i said, i got far enough in to pluck the squashfs out of the cd image but then gave up trying to manipulate both it and the image itself and just wrapped the squashfs in an initramfs#asahi-alt · 2023-09-22 09:37
chadmedits very odd#asahi-alt · 2023-09-22 09:37
chadmedthe issue we have is that the gentoo livecd itself boots a weird stub which then extracts a squashfs to memory and pivots to that which contains the _real_ kernel and modules etc#asahi-alt · 2023-09-22 09:36
chadmedthen add a grub entry and boot to it#asahi-alt · 2023-09-22 09:35
chadmedi do something very similar to turn the gentoo livecd into an asahi-friendly initramfs#asahi-alt · 2023-09-22 09:35
chadmedmps: those scripts look very familiar :P#asahi-alt · 2023-09-22 09:33
chadmedi made it work with fedora a while ago but because i am exceedingly stupid and an idiot i was making changes in the copy i had stored on the fedora rootfs... which i then wiped when i got it working and installed gentoo...#asahi-alt · 2023-09-22 09:33
chadmedleio: no what you need to do right now to get it installed is hack on genstrap.sh to make it work with fedora#asahi-alt · 2023-09-22 09:30
chadmedwent on a big QA spree a while ago getting the packages up to scratch with proper metadata and stuff#asahi-alt · 2023-09-22 09:29
chadmedyeah id like to upstream some stuff eventually #asahi-alt · 2023-09-22 09:29
chadmedwith that last step being interrupted by our little install helper that takes care of setting up the overlay and pulling in asahi-meta#asahi-alt · 2023-09-22 09:28
chadmedthe ideal workflow is basically vanilla asahi-installer makes some free space and does all the SEP/macOS stuff -> user puts in a usb flashed with our special livecd image -> user follows gentoo handbook#asahi-alt · 2023-09-22 09:27
chadmedwhich is exactly what we want#asahi-alt · 2023-09-22 09:27
chadmedtheres an option in the asahi-installer to just install the m1n1/u-boot#asahi-alt · 2023-09-22 09:24
chadmedall the usb boot stuff works, its just getting a known-good kernel into the livecd image and making it boot that stumped me#asahi-alt · 2023-09-22 09:23
chadmedbut eventually users being able to select the "uefi only" option in the installer and put a usb stick in would be sick#asahi-alt · 2023-09-22 09:23
chadmedalso means we dont have to modify the actual asahi installer #asahi-alt · 2023-09-22 09:23
chadmedi tried to do it myself but it never worked so i landed on this solution as a stop-gap #asahi-alt · 2023-09-22 09:23
chadmedsam_: might have some ideas#asahi-alt · 2023-09-22 09:22
chadmedbecause all this nonsense of pivoting into an initramfs from a minimal asahi install was just to avoid having to dissect and wrap my head around how fucking stupid the gentoo livecd boot process is #asahi-alt · 2023-09-22 09:22
chadmedwhat i would like eventually is just a minimal livecd with the gentoo kernel and modules swapped out for asahi kernel and modules #asahi-alt · 2023-09-22 09:21
chadmedwaste of time#asahi-alt · 2023-09-22 09:21
chadmedwell no because then youd need to install all the build deps for the kernel, pull down the sources, build it, install it, then spin _that_ into the livecd squashfs#asahi-alt · 2023-09-22 09:17
chadmedthe kernel message buffer is full of stupid errors too but they dont actually break anything #asahi-alt · 2023-09-22 09:17
chadmedthe one thing i could never get to work properly was vfat modprobing automatically#asahi-alt · 2023-09-22 09:16
chadmedi am swamped with other stuff but will eventually push fixes for asahi-gentoosupport#asahi-alt · 2023-09-22 09:16
chadmedbut it wasnt fun#asahi-alt · 2023-09-22 09:16
chadmedleio: i did eventually manage to bootstrap an install off fedora#asahi-alt · 2023-09-21 20:55
chadmedit builds an initramfs with a squashfs root filesystem of the livecd with our kernel modules in it#asahi-alt · 2023-09-21 20:55
chadmedhave a look at genstrap.sh #asahi-alt · 2023-09-21 20:55
chadmedit runs out of memory#asahi-alt · 2023-09-21 20:54
chadmedwhen you go to install gentoo you can reformat the asahi root partition and do whatever you want with it#asahi-alt · 2023-09-21 20:53
chadmed"but the main issue is that the devices are not yet fully supported."#asahi-alt · 2023-09-21 20:52
chadmedleio: yeah for the moment. i managed one through fedora but the gentoo livecd really doesnt like the fedora kernel