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
Tramtris1 has joined #asahi-alt
Tramtrist has quit [Read error: Connection reset by peer]
kraem has joined #asahi-alt
kraem has quit [Ping timeout: 480 seconds]
Tramtrist has joined #asahi-alt
Tramtris1 has quit [Read error: Connection reset by peer]
Tramtrist has quit [Read error: Connection reset by peer]
<chadmed>
only thing im not sure about is the splitting of the LLVM deps. should i ask in #gentoo-desktop?
kraem has joined #asahi-alt
JayBeeFOSS has quit [Remote host closed the connection]
JayBeeFOSS has joined #asahi-alt
mattia013_ has joined #asahi-alt
kraem has quit [Ping timeout: 480 seconds]
zerdox has joined #asahi-alt
mattia013_ has quit [Ping timeout: 480 seconds]
chadmed has quit [Ping timeout: 480 seconds]
chadmed has joined #asahi-alt
chadmed_ has joined #asahi-alt
chadmed has quit [Ping timeout: 480 seconds]
chadmed_ is now known as chadmed
n3ph has joined #asahi-alt
n3ph has quit [Ping timeout: 480 seconds]
n3ph has joined #asahi-alt
n3ph has quit [Ping timeout: 480 seconds]
JayBeeFOSS has quit [Remote host closed the connection]
JayBeeFOSS has joined #asahi-alt
<leio>
chadmed: the REQUIRED_USE of vulkan looks wrong to me; does it fail to build something else when vulkan is disabled, like I assume is the case without opencl?
maverick46 has joined #asahi-alt
<maverick46>
Is anyone online?
maverick46 has quit [Remote host closed the connection]
<jannau>
vulkan is not required. neither is opencl but the driver needs the opencl dependencies as build deps
<chadmed>
so REQUIRED_USE asahi? ( llvm ) and then replicate the opencl deps in the llvm_gen_dep thing like we do currently in the overlay
<mps>
latest mesa-asahi still fails to build on my alpine system
Zeroine has joined #asahi-alt
<jannau>
how is it handled for intel? does it simply dependen on externall build intel-clc for the build?
<jannau>
mps: specifically the asahi driver? what is latest mesa asahi-20250221?
<chadmed>
jannau: intel just pulls in libclc, but i thought we needed opencl at runtime too
<mps>
jannau: yes, mesa asahi-20250221
<mps>
error is
<mps>
ninja: job terminated due to signal 5: /work/aports/testing/mesa-asahi/src/mesa-asahi-20250221/output/src/compiler/spirv/vtn_bindgen2 src/asahi/libagx/libagx.spv src/asahi/libagx/libagx.cpp src/asahi/libagx/libagx.h
<jannau>
chadmed: I suspect we can add support to mesa_clc to build asahi_clc, not sure if it's worth adding asahi_clc as indepedent package
<chadmed>
i dont think a separate package makes much sense. id rather not contribute to the fragmented state of opencl-related tooling
<chadmed>
in the meantime ill just copy what we do in the overlay with the replicated llvm required use
<jannau>
that's why I want to add it to mesa_clc
<chadmed>
that requires changes to mesa upstream, yes?
<chadmed>
i fully agree with you btw, i just mean we do the overlay thing until mesa_clc has what we need
<jannau>
yes but minor ones
<jannau>
I want to get this into mesa 25.1-rc1
<jannau>
it might not need changes
<chadmed>
did alyssa already do this with 3b1166da?
<jannau>
that's not all. we still need asahi_clc
<chadmed>
so what do we need to do to integrate it with mesa_clc? it seems quite bespoke
<flokli>
chaos_princess: I added a few pr_info! statements, it fails at the `data.patch_bootargs` call
<chaos_princess>
how old is your install
<flokli>
chaos_princess: old, I recall having to manually do something to get webcam to work
<flokli>
or you mean which version of MacOS is installed?
<chaos_princess>
what firmware version is your install using
<flokli>
is that printed somewhere?
<chaos_princess>
it is somewhere in the device tree, probably under chosen
<flokli>
asahi,system-fw-version ?
<chaos_princess>
shuould be
<flokli>
"unknown"
<chaos_princess>
what other version-like things are there
<chaos_princess>
asahi,os-fw-version 12.4 - the culprit
<chaos_princess>
BOOTARGS_OFFSET and BOOTARGS_SIZE are different on 12.4
<chaos_princess>
so, either update to 13.5 or patches welcome
<flokli>
I'd prefer updating I think :-D
<flokli>
so is this updating macos, or running asahi-fwextract?
<chaos_princess>
this is re-installing the apfs stub
<Zeroine>
Hi
<chadmed>
Zeroine: folks typically dont respond to "hi" or "anyone there" on irc
<Zeroine>
Eh, depends on who you're talking to.
<Zeroine>
I wasn't born with IRC but I've been hanging out here for a few years now.
n3ph has joined #asahi-alt
<flokli>
chaos_princess: sorry for my stupidity, but I don't know how to do this, and looking around in the docs didn't help much. I ran the asahi-installer, and that upgraded m1n1 stage1 from 1.2.9 to 1.4.14, but didn't change asahi,os-fw-version
<jannau>
chadmed: you're right, we need clc/llvm at runtime. sorry
<chaos_princess>
you have to completely remove the apfs and efi paritions, do a completely new uefi-only install, and then re-create whatever bootloader files are needed on new esp
martinr has joined #asahi-alt
<jannau>
copy the m1n1 and EFI folders from the old ESP
<jannau>
and everything else which is not firmware
<jannau>
the installation log from the initial install m,ight be interesting as well but is essentially useless now
<flokli>
so backup contents from current apfs somewhere, use diskutil to delete that partition, run asahi linux installer, copy things back to new apfs partition
<jannau>
chadmed: I noticed only after I had everything in place
<chaos_princess>
from esp, apfs shouldn't contain anything of vault
<jannau>
I don't think we keep anything interesting on the apfs, just the ESP
<flokli>
ok, but I delete both ESP and NixOS APFS, gotcha
<jannau>
if the nixos apfs has an customized volume icon that's could be saved. .Volume*.icns or so
<jannau>
please do backups first, if you have enough space in the macos apfs partition you could resize that by 3GB and do a separate uefi-only install first
<chadmed>
jannau: no stress at all. ill sort out the MR tomorrow to just do what we do in the overlay for now
<flokli>
chaos_princess: hello from asahi,os-fw-version 13.5
<chadmed>
flokli: mics should work now :)
<flokli>
i still need to do the firmware dance, but working on it :-)
<flokli>
yes, with the new firmware aop probes properly, and I now see a microphone. I'll test if it actually records proper sound later. Thanks :-)
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi-alt
<noisycoil[mds]>
chadmed: Probably documenting the firmware requirements for mics is a good idea. Fedora was never affected, but the fw thing keeps happening to most who installed alt distros earlier than that
<noisycoil[mds]>
We had 3 just in Debian
n3ph_ has joined #asahi-alt
n3ph has quit [Ping timeout: 480 seconds]
<Zeroine>
Thanks for any answers in advance =)
<Zeroine>
I've got several questions about OpenBSD on the M1 Air so I made a paste https://bpa.st/FJVQ
<flokli>
Is there any hard-coding of esp partition uuids in the apfs stub?
<chaos_princess>
yes, the installed m1n1 stage 1 has a reference to the esp
<jannau>
not in the apfs stub but in the installed 1st stage m1n1
<flokli>
I successfully deleted the old apfs container and esp, and now wanted to grow the "new" esp past the space freed by the old ones. But it seems fatresize crashes on Asahi (page size assumptions maybe?) and MacOS cannot grow vfat
<flokli>
At least not the graphical disk utility app
<chaos_princess>
try gparted
<flokli>
It ranted about something and told me I can still try if I'm desperate
<flokli>
I'm wasn't sure I wanted to be that desperate:-D
<jannau>
do you have use for larger esp?
<flokli>
Yes, NixOS stores different generations of initrd and kernels
<flokli>
And it runs out of space very quickly
<jannau>
ah, fedora uses a separate /boot partition
<flokli>
"The information sector has the wrong signature (0). Select cancel for now, and send in a bug report. If you're desperate, it's probably safe to ignore"
<flokli>
/nix/store/zysnblhy9yakqj6v3n85f9pg47pn8x2d-gparted-1.7.0/bin/.gparted-wrapped: line 231: 6478 Segmentation fault (core dumped) $BASE_CMD
<flokli>
ah well
<tpw_rules>
flokli: (been very busy with work sorry about the maintenance) you can set UUIDs with gdisk
<tpw_rules>
m1n1 looks for the GPT one, not the FAT one
<flokli>
tpw_rules: Ok, so I'll just copy things to a new vfat sized properly, and force the partuuid to the old one. Thanks.
<flokli>
And no worries, we all have IRL stuff :-)
<tpw_rules>
flokli: bingo. you can also regenerate the necessary-for-boot parts of the ESP completely with nixos-install and a flash drive, but of course the asahi installer writes logs and firmware it would be annoying to lose
<tpw_rules>
also also you can limit the number of generations in your config and lessen the chance of filling it up
<flokli>
True, though I cannot really reclaim the space properly for MacOS either. So might as well use it for ESP ;-)
<flokli>
tpw_rules: now I have you here, I'm wondering if we can make the UX a bit nicer and get NixOS to "discover" the firmware without looping it into evaluation
<flokli>
There's a cpio archive, sd-boot can probably concatenate it to the initrd and we pass it on from there, rather than being forced to set hardware.firmware to it
<flokli>
I'll probably toy around with this a bit in the next few days. In addition to bumping some more PRs.
Guest13178 has quit [Quit: Bridge terminating on SIGTERM]
rhysmdnz has quit [Quit: Bridge terminating on SIGTERM]
Jamie has joined #asahi-alt
Jamie is now known as Guest13544
rhysmdnz has joined #asahi-alt
ahepp has joined #asahi-alt
<flokli>
Partition GUID surgery was successful, btw :-)
<chadmed>
still have to figure out this dist-kernel mess too
<chadmed>
im kind of out of ideas apart from asahi profiles at this point but i really dont think thats a can of worms we want to open
n3ph has quit [Ping timeout: 480 seconds]
<jannau>
I should update that. I don't think the lower minimum in the overlay actually works. I certainly don't test anything but Fedora's stable rust (possible trailing by a few days)
<tpw_rules>
flokli: it's been posited, but i never liked it cause you have to have python in the initrd to extract it
<tpw_rules>
or figure out how to detect that the python version changed and re-execute the extractor
Zeroine has joined #asahi-alt
n3ph has joined #asahi-alt
<Zeroine>
Anybody know how to get the bwfm interface working in OpenBSD? OpenBSD's install script should take care of this but apparently it's broken so I think I'd have to get it from firmware.tar on the EFI partition. On the OpenBSD mailing list there's complaints of bwfm not working and not appearing in dmesg since around the 14.5 MacOS version update. I don't see anything in dmesg either but I thought this was because I don't have the
<Zeroine>
firmware installed.
<Zeroine>
I can give more details and links, just didn't wanna make the question too long.
<chadmed>
you should have asahi-fwupdate or some analogue that installs the apple-specific firmware to wherever openbsd needs it to be
<chadmed>
the firmware for the wifi/bt card comes from the system and is not redistributed in linux-firmware or anything like that
<Zeroine>
chadmed: yeah, that'd be fw_update but it doesn't seem to install it, I tried installing with ethernet connected as well but it only got the apple-boot-firmware
<chadmed>
not sure why kettenis isnt in #asahi-alt but he maintains the openbsd stuff afaik
<Zeroine>
yea, I've seen him chat about OpenBSD a lot while looking through IRC logs
<tobhe_>
something changed in the firmware, broke aplsmc and that broke the check in the installer to activate the asahi firmware extraction special sauce