#asahi · 2024-04-24 05:37
jannaubut having everything necessary built-in would be easier to start#asahi · 2024-04-24 05:36
jannausawyer: I'm using https://github.com/AsahiLinux/asahi-scripts/pull/32 which should be compatible with cross-compiling. you need to create a special initramfs on the apple silicon device and copy that to the host. after that you can inject modules from the cross-compiled build#asahi · 2024-04-24 00:16
chadmed_you will have to modify it to use it tethered#asahi · 2024-04-24 00:16
chadmed_yes this is my production kernel config#asahi · 2024-04-24 00:10
sawyerThat one from above has DRM_ASAHI=m, I take it you were using that along with an initramfs with those modules?#asahi · 2024-04-24 00:07
sawyeroh....right...🤦️ yep, that would work too lol#asahi · 2024-04-24 00:06
chadmed_if the kernel has the filesystem driver for your rootfs you can just set the root kernel command line parameter and it will find /sbin/init on that partition#asahi · 2024-04-24 00:04
sawyerI thought it also held systemd and such in there#asahi · 2024-04-24 00:04
sawyerthis is probably dumb--do I actually need an initramfs for anything more than those kernel modules#asahi · 2024-04-24 00:04
sawyerhm, I can try building everything in again#asahi · 2024-04-24 00:04
sawyerif the answer is just "ebay has m1 mac minis for $350" then that's that, I was just hoping for a way to use my 7950x to speed things up a bit and not have to do everything through ssh again#asahi · 2024-04-24 00:03
chadmed_tethered boot is fine but if youre cross compiling you simply need to either build every module in and not use an initramfs at all or build the kernel and initramfs on the mac and copy it over to the tethered host system for booting #asahi · 2024-04-24 00:02
sawyerI did that for a little while but it was always annoying to have to close my entire dev env just to test a change#asahi · 2024-04-24 00:01
sawyerchadmed_: I was hoping to use the tethered boot for shorter test cycles, but I only have one m1 machine ("don't $*** where you sleep" feels apt too)#asahi · 2024-04-23 23:45
chadmed_takes ~2 min to build on an m2 pro mac mini #asahi · 2024-04-23 23:45
chadmed_https://chadmed.au/res/config68 is my barebones gentoo config for the latest kernel tags if youre interested#asahi · 2024-04-23 23:44
chadmed_if you already have asahi installed why are you cross compiling? seems like youre just asking for trouble there with no particularly good reason #asahi · 2024-04-23 23:34
sawyerFor a little bit I've just been marking all of the asahi-specific configs I could find and making those `=y`, and throwing the initramfs that came from the repos at the end of my tethered boot command but that seems subtly broken (speakersafetyd can't lock the right woofer so ends in a fail loop, graphics is broken but I haven't picked that apart yet)#asahi · 2024-04-23 23:30
sawyerbasically s/=m/=y/g#asahi · 2024-04-23 23:29
sawyerThis is all relatively new to me so sorry for the confusion--do I need to fully bootstrap this? I have asahi already installed on the machine. I tried doing an "allyesconfig"-type-deal and that fell over horribly#asahi · 2024-04-23 23:27
chadmed_and then use that for building "real" kernels#asahi · 2024-04-23 23:27
chadmed_if youre going tethered you should just disable module loading and run everything built in until youve bootstrapped a rootfs #asahi · 2024-04-23 23:27
chadmed_it will pull in your host arch binaries#asahi · 2024-04-23 23:27
chadmed_probably not#asahi · 2024-04-23 23:24
sawyerchadmed_: oh, neat! And that'll work fine for cross-compile?#asahi · 2024-04-23 23:14
chadmed_sawyer: in the AsahiLinux/asahi-scripts repo there are a few dracut config files you will need to copy to your host system or mimic with dracut command line switches for the initramfs to work properly#asahi · 2024-04-23 23:00
sawyerIf this is an asahi-dev question instead sorry about that, I figured here was the less spammy option#asahi · 2024-04-23 22:59
sawyerWorking on cross-compiling the kernel, kernel itself I'm all set on but the initramfs is tripping me up. Should I be trying to get dracut to do it or should I be cannibalizing the existing asahi provided initramfs and repacking into a new one? I'm working on setting up the tethered boot but a bunch of modules seem broken even after flipping them all to =y#asahi · 2024-04-23 17:43
fooxiThat's better.#asahi · 2024-04-23 17:07
fooxiDont even think the displays allow it.#asahi · 2024-04-23 17:06
fooxijannau: I had some issues with variable refresh rate on my x86 rig causing similar issues. When I locked it to 144 it was fine. Not sure if you do some variable stuff in asahi but just figured I'd tell you in case it's relevant.#asahi · 2024-04-23 17:05
fooxibrb. #asahi · 2024-04-23 17:05
fooxiI will downgrade to F39 (fresh reinstall). It's a new system anyway so not a big hassle really.#asahi · 2024-04-23 17:05
fooxijannau: Thanks for the information! Appreciated.#asahi · 2024-04-23 17:02
jannauit's upstream changes in kwin but it's unclear why that results in the poor behavior on asahi systems. The changes caused issues on other systems as well but I believe those are resolved#asahi · 2024-04-23 16:59
fooxiOr is it specific to asahi?#asahi · 2024-04-23 16:59
fooxiI assume the choppiness is upstream in kwin and is just more noticeable on a laptop screen with 60Hz?#asahi · 2024-04-23 16:58
jannauit's not released but will be in the coming days, it will probably not contain a fix for the choppiness though#asahi · 2024-04-23 16:54
fooxiJust wondering if I should just install fedora 39 instead, since the choppiness was not fixed by updating today.#asahi · 2024-04-23 16:50
fooxiOr is it released automatically when regular fedora 40 is released (ie, was released today) ?#asahi · 2024-04-23 16:50
fooxiDo we have a release date for asahi fedora remix 40?#asahi · 2024-04-23 15:30
iyesthanks!#asahi · 2024-04-23 15:28
leiohttps://github.com/AsahiLinux/m1n1/pull/381#asahi · 2024-04-23 15:28
leiohttps://github.com/AsahiLinux/linux/pull/151#asahi · 2024-04-23 15:26
iyes i am guessing on the linux side this needs a kernel driver, so i should go study the existing alsa drivers for reference.#asahi · 2024-04-23 15:25
iyesi need a few pointers before i can jump in. i have never done any macos/asahi RE before. if someone can at least give me a few keywords about what tools/frameworks can be used for this, i could then go and see if i can figure it out.#asahi · 2024-04-23 15:23
j`eyon github#asahi · 2024-04-23 15:23
j`eyeiln#asahi · 2024-04-23 15:21
opticronI could swear someone was poking at it and had at least some basic docs on the interface#asahi · 2024-04-23 15:16
opticronhttps://github.com/AsahiLinux/docs/wiki/Yaks-in-need-of-shaving