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>
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>
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