ChanServ changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
hightower3 has joined #asahi-alt
jeisom has quit [Ping timeout: 480 seconds]
hightower2 has quit [Ping timeout: 480 seconds]
hex-spell has quit [Ping timeout: 480 seconds]
hex-spell has joined #asahi-alt
cylm has quit [Ping timeout: 480 seconds]
hex-spell has quit [Ping timeout: 480 seconds]
dylanchapell has quit [Read error: Connection reset by peer]
dylanchapell has joined #asahi-alt
balrog has quit [Ping timeout: 480 seconds]
balrog has joined #asahi-alt
compassion17850 has joined #asahi-alt
r0ni has quit [Ping timeout: 480 seconds]
compassion1785 has quit [Ping timeout: 480 seconds]
compassion17850 is now known as compassion1785
ydalton has joined #asahi-alt
<chadmed> ydalton: pretty much just differences in the kernel
<chadmed> mostly the firmware loading
<ydalton> hm
<chadmed> i had to change how i was copying the firmware from the ESP into the squashfs of the initrd since the dracut hooks couldnt do it anymore
<ydalton> are we using dracut for fedora?
<chadmed> it all works properly once gentoo is actually installed on the machine with its own kernel, and going forward the plan is to offer both an asahi kernel equipped livecd for usb booting and a gentoo fork of the asahi installer
<j`ey> ydalton: yes fedora uses dracut
<chadmed> yeah dracut everywhere
<ydalton> i've been spoiled by mkinitcpio lol
<chadmed> gentoo releng folks are even looking to transition to it away from genkernel
<chadmed> dracut shits all over mkinitcpio :P
<chadmed> no stupid custom syntax i just write a shell script and i have exactly what i want in the ESP
<chadmed> initramfs*
<ydalton> true
<ydalton> maybe i should look into it
<leio> for an installer that would work for anyone, we need to get suitable kernel and modules and initramfs going, m1n1 stage2 build with u-boot included too of course, and add a bunch of packages in a stage4 catalyst build
<leio> I just did a stage3 moved into filesystem image, with a hand-made m1n1/boot.bin with kernel embedded added to it to get my device going
<ydalton> boot.bin you just concatenate m1n1 stage 2 + dtb + uboot right?
<leio> meant a lot of follow-up fixing for the missing bits over m1n1 proxy, and all non-distributable as I needed to embed the firmware in kernel to get anywhere
<leio> yes, I think so, for a generic thing
<leio> for my device uboot just crashes on start, so I had to do m1n1+dtb+kernel
<leio> which is why I can't take this further myself well
<ydalton> j`ey: u-boot is gzipped then right?
<leio> yes, so m1n1 can detect the end
<j`ey> ydalton: yup, see ntex line
<j`ey> *next
<ydalton> yeah i see
<j`ey> m1n1 needs to know the size of the payloads to be able to iterate over them, I think it works unzipped if you dont need anything else after it
<leio> I have a list of stuff that needs work on Gentoo with clang and thinlto optimized flags, bti-enabled compiler flags and such too, if anyone would like to help ;) and some more generic arm64 stuff
ydalton has quit [Remote host closed the connection]
ydalton has joined #asahi-alt
hightower3 has quit [Ping timeout: 480 seconds]
chadmed has quit [Remote host closed the connection]
jeisom has joined #asahi-alt
ydalton has quit [Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.0.92)]
chadmed has joined #asahi-alt
cyrinux has quit []
cyrinux has joined #asahi-alt
cyrinux has quit []
cyrinux has joined #asahi-alt
cyrinux has quit []
cyrinux has joined #asahi-alt
espo has quit [Quit: WeeChat 4.0.5]
espo has joined #asahi-alt
hex-spell has joined #asahi-alt
cy8aer has quit [Remote host closed the connection]
cy8aer has joined #asahi-alt
jeisom has quit [Ping timeout: 480 seconds]
<stintel> just upgraded m1n1 to v1.4.2 and u-boot to git HEAD on asahi branch on my 15" air and keyboard/touchpad are no longer working. any suggestions what to look at?
<j`ey> dmesg!
<stintel> keyboard doesn't work in u-boot, grub and linux
<j`ey> wait, you upgraded u-boot too?
<stintel> yes
<stintel> I was still on whatever I cross-compiled when I installed gentoo on this device 2 months ago or so
<stintel> I kept a backup of boot.bin so I can easily revert - booting the "bad" version again now to check dmesg
<j`ey> which u-boot version did you use then?
<janneg> stintel: upgraded u-boot to what?
<stintel> git HEAD on asahi branch
<janneg> use asahi-releng
<stintel> does that support 15" air?
<janneg> nothing to support specifically for the 15-inch air
<stintel> yes
<stintel> using the live ebuilds for u-boot and m1n1
<chadmed> if you use live ebuilds you get to pick up the broken pieces :)
<j`ey> live == 9999?
<chadmed> yeah
<stintel> yes
<chadmed> keywords exist for a reason
<janneg> yes, the live ebuild is broken though
<chadmed> ive got like 100 billion commits queued for the overlay
<stintel> :P
<chadmed> last week was rough on academic and employment fronts
<janneg> stintel: use u-boot-2023.07.02_p2.ebuild there is afaik nothing in the repos which would warrant an update
<stintel> janneg: I've just switched to that, rebooting
<stintel> ok that works, that was easy
<janneg> u-boot doesn't have to be updated for new devices. dtb is enough as long it's not a new SoC
<stintel> I used 9999 because I saw 3d4ff95b8591 ("arm: dts: apple: Add Apple M2 device trees") in there
<stintel> gotcha
* stintel should probably redo his install with LUKS before traveling
<chadmed> stintel: the dts come from the kernel tree
<stintel> chadmed: yeah, I've been reading update-m1n1 and running it with sh -x
<stintel> also set DTBS="/usr/src/linux/arch/arm64/boot/dts/apple/t8112-j415.dtb" in /etc/default/update-m1n1 to not append dtbs I don't need
* stintel reboots in macOS to get the camera calibration file
<leio> I think the dts in the u-boot tree are used for BSD or something?
<stintel> so now I've upgraded macOS to 14.0 ... the gentoo startup disk still shows 13.5. can I update that to 14.0 somehow? and do I need to extract new firmwares that come with the macOS upgrade?
<chadmed> no you do not update the stub
<chadmed> it is totally independent of your macos install
<chadmed> apart from systemwide firmware
jeisom has joined #asahi-alt
dcow has joined #asahi-alt
ChaosPrincess has quit [Quit: ChaosPrincess]
ChaosPrincess has joined #asahi-alt
r0ni has joined #asahi-alt
<mps> is firmare needed for camera, looks like it works fine without it
<mps> aha, thanks for link
<stintel> yw
<mps> hmm, didn't helped, looks like my asahi-fwupdate doesn't work
<mps> or, where it put resulting firmware on linux FS
<j`ey> did you also update asahi-fwupdate?
<j`ey> seems not
<mps> j`ey: yes. 0.6.8 version
<j`ey> oh ok, just not pushed
<mps> `tar tvf /boot/efi/asahi/all_firmware.tar.gz | grep appleh13c` shows '-rw-r--r-- mps/mps 2599792 2023-10-08 14:59 ./appleh13camerad'
<j`ey> check the firmware.{cpio,tar*}
<mps> j`ey: checked tar, only brcm dir, apple/dfrmtfw-j293.bin and asmedia/asm2214a-apple.bin
<mps> cpio show same
<j`ey> and the script definitely ran/
<mps> yes, `asahi-fwextract /boot/efi/asahi/ x` where 'x' is local dir
<mps> and in it are cpio and tar files
espo has quit [Quit: WeeChat 4.0.5]
<j`ey> I guess you'll have to do some debugging to see if you can see whats going on
<j`ey> it seems to produces logs, but im not sure how to turn them on
<mps> I have no idea how to debug python scripts
<j`ey> isp.py is installed right?
<mps> I guess, else asahi-fwextract will fail
<j`ey> does it print? after looking into the logging stuff, it seems it should print by default
<mps> no, it quietly create firmware.{cpio,tar}, manifest.txt and u-boot/asmedia/asm2214a-apple.bin
<j`ey> you can modify update.py to change logging.basicConfig() to logging.basicConfig(level='DEBUG')
<mps> j`ey: rebuilt asahi-fwextract, clean everything from previous and install new, rerun and got error msg https://tpaste.us/PEvJ
<j`ey> progress
<janneg> similar enough to report it in https://github.com/AsahiLinux/linux/issues/207
<janneg> from which macos version is your appleh13camerad?
espo has joined #asahi-alt
<mps> forgot exact version but iirc it is about year old, recovery partition from which I copied it
<mps> maybe should copy from macos which I upgraded about 2-3 weeks ago
<mps> is it also in /usr/sbin on macos
<janneg> yes
<mps> thanks, will try again later at evening/night. now I expect guests to come
hightower2 has joined #asahi-alt
hightower2 has quit [Read error: Connection reset by peer]
dcow has quit [Remote host closed the connection]
dcow has joined #asahi-alt
hightower2 has joined #asahi-alt
dcow has quit [Ping timeout: 480 seconds]
hightower3 has joined #asahi-alt
hightower2 has quit [Read error: Connection reset by peer]
hightower4 has joined #asahi-alt
hightower4 has quit [Read error: Connection reset by peer]
hightower3 has quit [Ping timeout: 480 seconds]
jeisom has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-alt
<j`ey> mps: markan should have fixed it now
<mps> j`ey: thanks. I see on #asahi-dev
dcow has quit [Ping timeout: 480 seconds]
hightower2 has joined #asahi-alt
dcow has joined #asahi-alt
dcow has quit [Remote host closed the connection]
dcow has joined #asahi-alt
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-alt
<ah-> and pretty nicely contained with the microvm that has fex and the rootfs etc. all ready to go
cyrinux has quit []
dcow has quit [Remote host closed the connection]
cyrinux has joined #asahi-alt
dcow has joined #asahi-alt
dcow has quit [Remote host closed the connection]
dcow has joined #asahi-alt
dcow has quit [Remote host closed the connection]
dcow has joined #asahi-alt
dcow has quit [Remote host closed the connection]
jacksonchen666 has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-alt
<j`ey> looks like there's no default config for gentoo?
<j`ey> I mean, kernel .config
zzywysm has joined #asahi-alt
jeisom has joined #asahi-alt
dcow has quit [Remote host closed the connection]
dcow has joined #asahi-alt
psykose has quit [Remote host closed the connection]
psykose has joined #asahi-alt
dcow has quit [Ping timeout: 480 seconds]
dcow has joined #asahi-alt
dcow has quit [Remote host closed the connection]
dcow has joined #asahi-alt
dcow has quit [Remote host closed the connection]
<mps> j`ey: janneg: now asahi-fwextract works, thank you
<mps> and thank you marcan for fast fix
hex-spell has quit [Quit: WeeChat 4.0.5]
lynndotpy has quit [Quit: bye bye]
lynndotpy has joined #asahi-alt
SalimTer- has joined #asahi-alt
SalimTerryLi has quit [Ping timeout: 480 seconds]
hex-spell has joined #asahi-alt
cylm has joined #asahi-alt
jeisom has quit [Remote host closed the connection]
jeisom has joined #asahi-alt
dcow has joined #asahi-alt