#
…

2023-09-22

00:12zerdox has joined #asahi-alt
00:20zerdox has quit [Ping timeout: 480 seconds]
00:38zerdox has joined #asahi-alt
00:47zerdox has quit [Ping timeout: 480 seconds]
02:40zerdox has joined #asahi-alt
02:48zerdox has quit [Ping timeout: 480 seconds]
03:02jeisom has quit [Ping timeout: 480 seconds]
03:51zerdox has joined #asahi-alt
03:59zerdox has quit [Ping timeout: 480 seconds]
05:26zerdox has joined #asahi-alt
07:33cylm has quit [Ping timeout: 480 seconds]
07:45zerdox has quit [Ping timeout: 480 seconds]
07:49zerdox has joined #asahi-alt
08:34kujeger has quit [Remote host closed the connection]
08:35kujeger has joined #asahi-alt
09:07jeisom has joined #asahi-alt
09:16chadmedleio: i did eventually manage to bootstrap an install off fedora
09:16chadmedbut it wasnt fun
09:16chadmedi am swamped with other stuff but will eventually push fixes for asahi-gentoosupport
09:17chadmedthe one thing i could never get to work properly was vfat modprobing automatically
09:17chadmedthe kernel message buffer is full of stupid errors too but they dont actually break anything
09:20leiowould replacing the fedora kernel in the fedora install with a asahi-sources gentoo kernel early be a good option too?
09:21leioand let me know how I can help, need some handholding due to missing a lot of context and knowledge, but maybe I can help with things like stage3 images or whatnot
09:21chadmedwell 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
09:21chadmedwaste of time
09:21leiomake my old gentoo arm64 project membership count for something instead of hanging on there still after a 2-3 year old arm64 handling spree :)
09:22chadmedwhat i would like eventually is just a minimal livecd with the gentoo kernel and modules swapped out for asahi kernel and modules
09:22leiothat sounds quite feasible and not too hard work in coordination with gentoo releng
09:22chadmedbecause 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
09:23chadmedsam_: might have some ideas
09:23chadmedi tried to do it myself but it never worked so i landed on this solution as a stop-gap
09:23chadmedalso means we dont have to modify the actual asahi installer
09:23leiomaybe I should wait for my install to get that going quickly - I don't see myself reinstalling things to test the result
09:23chadmedbut eventually users being able to select the "uefi only" option in the installer and put a usb stick in would be sick
09:24chadmedall the usb boot stuff works, its just getting a known-good kernel into the livecd image and making it boot that stumped me
09:25leioso then we could try out any livecd/liveusb distro from usb stick?
09:26leio(provided they have suitable kernel)
09:26leioI guess for a system install, there's still the APFS resizing and such that the asahi-installer cares for
09:27leioand m1n1/u-boot
09:27chadmedtheres an option in the asahi-installer to just install the m1n1/u-boot
09:27chadmedwhich is exactly what we want
09:28chadmedthe 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
09:29chadmedwith that last step being interrupted by our little install helper that takes care of setting up the overlay and pulling in asahi-meta
09:29leiowhich eventually could be in ::gentoo to some extent
09:29chadmedyeah id like to upstream some stuff eventually
09:30chadmedwent on a big QA spree a while ago getting the packages up to scratch with proper metadata and stuff
09:30leioI guess the main one that's a bit tough would be mesa, until it isn't sufficiently upstream mesa
09:31leiook, so what should I do now to actually install it via the ideal method
09:31leioget a livecd with asahi-sources?
09:31chadmed has quit [Remote host closed the connection]
09:32leiohow will it boot over usb
09:32leiomy understanding was that apple silicon doesn't do that - the UEFI thing installs something that can do it?
09:32chadmed has joined #asahi-alt
09:33chadmedleio: no what you need to do right now to get it installed is hack on genstrap.sh to make it work with fedora
09:33mpsleio: I have no idea how gentoo could be installed but maybe this could help to give you idea
09:33leioI'm not in a hurry to get it going in itself - if I can come up with a better install method via livecd, I'd rather dogfood that for the install
09:33chadmedi 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...
09:34leiostill got my zen2 here and short-term work work is on mac for ios
09:35chadmedmps: those scripts look very familiar :P
09:35mpschadmed: ?
09:35mpsfamiliar to what
09:35chadmedi do something very similar to turn the gentoo livecd into an asahi-friendly initramfs
09:36chadmedthen add a grub entry and boot to it
09:36mpsah, would be nice if can look at this to steel some good things
09:36mpssteal*
09:37chadmedthe 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
09:37chadmedits very odd
09:38chadmedlike 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
09:38chadmedi 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
09:38mpsalpine standard isos use also squashfs
09:40mpsbut I still didn't decide to make iso, simpler is usb image
09:40chadmedyeah i see what youre doing now, that makes a lot more sense
09:40leiomaybe we can just make a stage4 and dump that on usb?
09:41chadmedi was thinking reuse the existing infrastructure we have to pull out and manipulate the squashfs, but extract it to a bootable usb
09:42mpsif it is possible to install gentoo on target with some scripting then simple usb image (even alpine) could be used, I guess
09:43chadmedmy 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
09:43leioso what you're saying is that I could just take your alpine usb boot image and do the normal gentoo chroot install from there
09:43mpsfor now I have no idea only how to extract asmedia firmware to put it in initramfs
09:43leiowe should aim to just get liveusb or whatever images built as part of the normal stage3/livecd builds in releng
09:44chadmedyeah that would be ideal
09:44leioso tell me what I need to do to achieve that
09:44leioin terms of what and how in the image
09:45chadmedliterally 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
09:45chadmedi dont change anything else about the root extracted from the image
09:45leiono problem with that inbetween stubbing or whatnot?
09:45leiook, then where do I find the kernel config to use? :)
09:46leiowith your overlay asahi-sources
09:46chadmedi can chuck mine in a gist, should be enough to work across all currently supported devices
09:46chadmedactually let me get a gist together that summarises what we need and where
09:46leionote that mine is a currently unsupported device :)
09:47chadmedthe config shouldnt change for t602x
09:47leioyeah, I might need to somehow hack it to pass some kernel options to keep the display on after m1n1 and later early patches for gpu support or smth
09:48leiothe pd_ignore_unused option or what not (https://github.com/AsahiLinux/m1n1/pull/329)
09:49leioI'll go see about getting a patched m1n1 going while you gist :)
10:08zerdox has quit [Ping timeout: 480 seconds]
10:08zerdox has joined #asahi-alt
10:36chadmedjust joined the gentoo channels on libera too if we want to discuss with others there, just ping me
10:44leiochadmed: think you might want #gentoo-releng
10:45chadmedack, joined
10:47cylm has joined #asahi-alt
10:58cylm_ has joined #asahi-alt
11:00cylm has quit [Ping timeout: 480 seconds]
11:12leiocan you expand on the -march=native bit (which imo is really -mcpu=native on arm)
11:12leiowhat isn't detected right
11:14leiowouldn't some sort of a stage4 be something we could maybe just provide as an option to asahi-installer then instead?
11:15leiochadmed: as in, why's liveusb better than bootstrapping a full system right from the asahi-installer (via e.g. curl https://asahi.gentoo.org |sh or something too)?
11:15leiowhere full I mean same kind of scope as is in the livecd, you get to a console with wifi stack available
11:22compassion1785 has quit [Read error: Connection reset by peer]
11:24compassion1785 has joined #asahi-alt
11:53zerdox has quit [Ping timeout: 480 seconds]
11:54zerdox has joined #asahi-alt
12:04skippypaws has quit [Quit: Connection closed for inactivity]
12:10zerdox has quit [Ping timeout: 480 seconds]
12:32chadmedleio: i dont think its really in the spirit of gentoo for starters
12:32chadmedand even more politically i think it gives these machines too much of an "embedded" image
12:32chadmedthey should not behave like an rpi4 because theyre like 999 grillion times more useable and powerful
12:33chadmedi dont want the install procedure to look anything like it does on a shitty little SBC
12:33chadmedi want it to look like it does on a workstation, because thats what these machines are
13:09leioto me it's about the choice - choice to not have to care about this stuff, just choose it in an installer I already have to use anyways, and then just pick my profiles and run emerge -e if I want to recompile it all
13:12chadmedi think thats perfectly valid, and id be happy to host the image and installer if you end up throwing it together
13:13leioI mean at an official capacity under gentoo.org too, I guess
13:13chadmeddo such images exist for any other platform? i thought all those SBC images were community maintained
13:13leiobut short-term, it might be a quicker way to get things going for me too? This is presuming I can just run through the process again for testing things later with a secondary gentoo install too in my plenty of available space?
13:13chadmedthe rpi4 one certainly was
14:31sam_I want us to get to a point where we have proper flashable images for SBCs but I agree that's not super helpful for this
14:31sam_I'll read the rest of the backlog now
14:32sam_but my gut would be "figure out how to just do installcds w/ custom kernel for arm64, build that on our infra"
14:32sam_that should be easy (TM)
14:34possiblemeatball has joined #asahi-alt
15:04jeisom has quit [Ping timeout: 480 seconds]
15:05cylm_ has quit [Ping timeout: 480 seconds]
15:12possiblemeatball has quit [Quit: Quit]
15:21possiblemeatball has joined #asahi-alt
15:23zerdox has joined #asahi-alt
15:35jacksonchen666 has joined #asahi-alt
15:48zerdox has quit [Ping timeout: 480 seconds]
15:48zerdox has joined #asahi-alt
15:56jacksonchen666 has quit [Ping timeout: 480 seconds]
16:24jacksonchen666 has joined #asahi-alt
16:33zerdox has quit [Ping timeout: 480 seconds]
16:34zerdox has joined #asahi-alt
16:43jeisom has joined #asahi-alt
16:52flatz has joined #asahi-alt
16:56flatz has quit []
18:05jacksonchen666 has quit [Ping timeout: 480 seconds]
18:14Cyrinux9474 has quit []
18:14Cyrinux9474 has joined #asahi-alt
18:22possiblemeatball has quit [Quit: Quit]
18:29possiblemeatball has joined #asahi-alt
18:39possiblemeatball1 has joined #asahi-alt
18:40possiblemeatball has quit [Ping timeout: 480 seconds]
19:03Cyrinux9474 has quit []
19:03Cyrinux9474 has joined #asahi-alt
20:23SalimTer- has joined #asahi-alt
20:26SalimTerryLi has quit [Ping timeout: 480 seconds]
20:29jacksonchen666 has joined #asahi-alt
20:39leiochadmed: can you share that kernel config please?
20:40nela has quit [Quit: bye!]
20:41nela has joined #asahi-alt
20:47jacksonchen666 has quit [Quit: WeeChat 4.0.4]
22:00possiblemeatball1 has quit [Quit: Quit]
22:18cylm has joined #asahi-alt
22:54chadmedadded to the top of the gist
…