#asahi-alt · 2022-10-26 11:09
chadmedi built the driver with a 1.64 toolchain and there were no complaints, cant test at runtime though since i only have a t6001#asahi-alt · 2022-10-26 11:08
_jannau_asahi uses the packaged rustc/bindgen#asahi-alt · 2022-10-26 11:08
chadmedyeah that sounds like a good idea#asahi-alt · 2022-10-26 11:08
chadmedhappy to share with fedora of course, if there are any issues with it though please let me know#asahi-alt · 2022-10-26 11:08
sam_so this might be good motivation for that#asahi-alt · 2022-10-26 11:08
sam_chadmed: ultimately we want to do a RUST_MAX_SLOT like LLVM#asahi-alt · 2022-10-26 11:07
chadmedive just pushed a dracut module to https://github.com/chadmed/asahi-gentoosupport under the branch dracut-module for handling firmware in the initramfs#asahi-alt · 2022-10-26 11:07
chadmedserendipitous timing :P #asahi-alt · 2022-10-26 11:06
leifs/like/like to see/#asahi-alt · 2022-10-26 11:05
leifInteresting, I'd like how you approach that. I'll take a stab at this weekend. #asahi-alt · 2022-10-26 11:05
_jannau_it complains but builds fine, I'd restrict the version only if there are problems#asahi-alt · 2022-10-26 11:02
chadmedunderstandable, ill keep thinking. i think the most annoying thing is going to be having to pull in a specific version since rust_is_available complains if your rustc/bindgen is too new #asahi-alt · 2022-10-26 11:00
sam_but no, no discussion yet#asahi-alt · 2022-10-26 11:00
chadmeddracut module works #asahi-alt · 2022-10-26 11:00
sam_chadmed: gentoo-kernel it'd be BDEPEND, for gentoo-sources it's more complicated but it's still pretty much a BDEPEND because nobody installs a binpkg of *gentoo-sources* #asahi-alt · 2022-10-26 10:58
leifchadmed I started including the firmware in my image with a similar method. IIRC I though you said dracut wasn't working for you. #asahi-alt · 2022-10-26 09:42
marvehi#asahi-alt · 2022-10-26 09:19
mpsGlanzmann: thanks for info#asahi-alt · 2022-10-26 09:18
chadmedoh wow yeah ok this will be quite easy with a dracut module #asahi-alt · 2022-10-26 08:59
chadmedyeah, the idea appeals to me#asahi-alt · 2022-10-26 08:58
_jannau_firmware handling in the initramfs instead of copying allows us to distribute installer images#asahi-alt · 2022-10-26 08:56
chadmedthe main thing is that the firmware gets loaded on first boot, which already isnt a problem for us because the gentoo install script i wrote runs update-vendor-firmware inside the chroot so that all the firmware is where the kernel modules expect it to be when you reboot into the rootfs#asahi-alt · 2022-10-26 08:53
chadmedat the same time if we have a dracut module (akin to mkinitcpio hooks) we can just copy the firmware into the initramfs proper and disregard bespoke bootloader configs#asahi-alt · 2022-10-26 08:52
chadmedyeah thats the one#asahi-alt · 2022-10-26 08:52
j`eymarkan mentioned GRUB_EARLY_INITRD_LINUX_STOCK#asahi-alt · 2022-10-26 08:52
chadmedwe can just add to /etc/default/grub for the bootloader, or whatever sd-boot does (been meaning to look into that)#asahi-alt · 2022-10-26 08:51
_jannau_also see if bootloader options to add the cpio are feasible#asahi-alt · 2022-10-26 08:50
_jannau_I'd just make a dracut module for it, can probably shared with fedora. anyone using something else has to deal#asahi-alt · 2022-10-26 08:49
chadmedbut getting the firmware into the initramfs in a way that is consistent with asahi by default is good, users who gun for nonstandard setups are on their own though#asahi-alt · 2022-10-26 08:48
chadmedi need to have a think about how to bring the new fw handling across to gentoo. i like to think we have some latitude in terms of outright guarantees that stuff works with no intervention since... well, its gentoo #asahi-alt · 2022-10-26 08:40
ashi_jannau_: no I prefer "last brightness from macos" behaviour #asahi-alt · 2022-10-26 08:38
_jannau_unless by brighttness support you mean switching to minimal brightness after suspend#asahi-alt · 2022-10-26 08:38
Glanzmannashi: Because dcp was only very recenlty merged.#asahi-alt · 2022-10-26 08:38
_jannau_no#asahi-alt · 2022-10-26 08:38
ashidumb question, does having dcp support now means brighness support on a laptop screen?#asahi-alt · 2022-10-26 08:35
ashiNow it is probably not perfect but at least not obviously ;)#asahi-alt · 2022-10-26 08:35
j`eybefore the fixes it was *obviously* broken ;)#asahi-alt · 2022-10-26 08:35
ashiI did not stay suspended last time I tried, but this time it seems to stay somehow suspended, there are some errors in dmesg that something could not reach a power saving state but I do not know the impact#asahi-alt · 2022-10-26 08:33
j`eythats good#asahi-alt · 2022-10-26 08:32
ashij`ey: okay, I enabled PM_SUSPEND to try it out :P - *seems* to work at least somehow#asahi-alt · 2022-10-26 08:31
j`eyashi: to try it out!#asahi-alt · 2022-10-26 08:30
ashioffical=asahilinux arch#asahi-alt · 2022-10-26 08:29
ashiGlanzmann: another thing... is there a reason you went for CONFIG_DRM_APPLE which is disabled in the official config?#asahi-alt · 2022-10-26 08:27
ashiGlanzmann: I also do cross-compilation but on a fanless x86-86 which is slower than the m2 macbook air, but I do not want to let this run hot so long.#asahi-alt · 2022-10-26 08:26
Glanzmannashi: I have very fast build machines and ccache. So for me it is fast. But I'm crosscompiling. But If I had to build my kernels on a m1, I would also be to impatient.#asahi-alt · 2022-10-26 08:26
Glanzmannmps: But probably rmk (Russel King) did because he needs it.#asahi-alt · 2022-10-26 08:25
ashiGlanzmann: Yes, that makes sense somehow, but also assumes that the kernel should work everywhere. At least my local config is now without a lot of stuff because I lack patience ;)#asahi-alt · 2022-10-26 08:25
Glanzmannmps: I did not try 4k for a while.#asahi-alt · 2022-10-26 08:25
Glanzmanncy8aer: I had the same question, that you asked, and now it is a little bit clearer.#asahi-alt · 2022-10-26 08:24
Glanzmannashi: I aggree. But I tried to stay as close to the debian config as I could. THat is the reason why the Debian config is so bloated.