#
✕ nick:chadmed
#asahi-alt · 2022-10-30 03:58
chadmedtheres still some ugliness to smooth out since we yeeted update-vendor-firmware, see logs for talk on a dracut hook to automate that even further
#asahi-alt · 2022-10-30 02:52
chadmedi went through all this pain and bs so that you wouldnt have to
#asahi-alt · 2022-10-30 02:52
chadmedonce again i implore you to use it
#asahi-alt · 2022-10-30 02:52
chadmedmillenialhacker: theres a patch in the overlay to get the dtbs from /usr/src/linux
#asahi-alt · 2022-10-29 14:34
chadmedso much stuff is changing quickly plus no genpatches
#asahi-alt · 2022-10-29 14:33
chadmedwe can have a go at upstreaming the 5.19 ebuild, does it make sense to do the newer ones based on RCs though?
#asahi-alt · 2022-10-29 00:06
chadmedi think the overlay also has m1n1 1.1.7
#asahi-alt · 2022-10-29 00:06
chadmedsys-apps/asahi-scripts has update-m1n1 in it, patched for where kernel_r2 installs kernel sources, so you should use that in the future
#asahi-alt · 2022-10-29 00:02
chadmedoh nvm you fixed m1n1 very good :)
#asahi-alt · 2022-10-29 00:01
chadmedhonestly you should just nuke this install and start again using genstrap.sh and install.sh
#asahi-alt · 2022-10-29 00:01
chadmedwhich doesnt know about the dcp carveouts etc
#asahi-alt · 2022-10-29 00:01
chadmedwhat youve caused to happen now is stage1 m1n1 to chainload an old stage2 payload, probably also with bad DT
#asahi-alt · 2022-10-29 00:00
chadmedmillenialhacker: thats not how you upgrade m1n1...
#asahi-alt · 2022-10-28 07:05
chadmedthen you can dig around the ESP
#asahi-alt · 2022-10-28 07:05
chadmedmkdir /Volumes/EFI && mount -t msdos /dev/disk0s4 /Volumes/EFI
#asahi-alt · 2022-10-28 07:05
chadmedjust do it from 1TR
#asahi-alt · 2022-10-28 07:05
chadmedget the proxy going and see whats happening with the serial console
#asahi-alt · 2022-10-28 07:04
chadmedyeah
#asahi-alt · 2022-10-28 07:02
chadmedthe kmod thing was it last time, couldnt load modules and would panic looking for the specified root device
#asahi-alt · 2022-10-28 07:01
chadmedi think the only way to get to the bottom of why this is happening is to boot under the m1n1 hv and use the serial console
#asahi-alt · 2022-10-28 06:59
chadmedyeah thats good
#asahi-alt · 2022-10-28 06:59
chadmedso the problem is after we unload all that and jump to the kernel
#asahi-alt · 2022-10-28 06:59
chadmedgrub being able to see it is kinda irrelevant since it uses u-boot's drivers
#asahi-alt · 2022-10-28 06:57
chadmedhm
#asahi-alt · 2022-10-28 06:57
chadmedeasiest fix unless you want to nuke the rootfs and try again with asahi-gentoosupport is just build a minimal kernel with all the apple stuff built in, boot it manually from grub, rebuild kmod with zstd, rebuilt your initramfs then try again
#asahi-alt · 2022-10-28 06:56
chadmedoh well youve probably rebuilt kmod without USE="zstd"
#asahi-alt · 2022-10-28 06:55
chadmedand which config did you use for 5.19? the default asahi one?
#asahi-alt · 2022-10-28 06:53
chadmedwhat kernel config did you use
#asahi-alt · 2022-10-28 06:52
chadmedok so that rules out what i _thought_ caused this problem
#asahi-alt · 2022-10-28 06:52
chadmeddid you use gcc or clang to rebuild @installed?
#asahi-alt · 2022-10-28 06:50
chadmedi experienced the same thing a few times when sorting out install.sh, i cant remember how exactly i stopped it happening but install.sh gives you a rootfs that is guaranteed to work
#asahi-alt · 2022-10-27 04:44
chadmedyep dcp is life saving, im working untethered today and the battery life is quite good
#asahi-alt · 2022-10-26 11:28
chadmeddone
#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
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: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: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
chadmeddracut module works
#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: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
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: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 07:22
chadmedupstream master branch tracks pretty closely since alyssa submits stuff to the CI bot and it gets merged, not sure what the go is with dot number releases though
#asahi-alt · 2022-10-26 07:15
chadmedsomeone will need to provide a mesa debian package with the asahi driver compiled. they might just already build all possible drivers for a platform upstream so best to check there

plus ›