hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cylm has joined #asahi
cylm_ has quit [Ping timeout: 480 seconds]
Soni has joined #asahi
hertz has joined #asahi
hertz has quit []
hertz has joined #asahi
hertz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
possiblemeatball has quit [Remote host closed the connection]
hertz has joined #asahi
possiblemeatball has joined #asahi
yamii has quit [Ping timeout: 480 seconds]
Brainium has quit [Ping timeout: 480 seconds]
hendry has quit [Ping timeout: 480 seconds]
greguu has quit [Ping timeout: 480 seconds]
jluthra has quit [Remote host closed the connection]
jluthra has joined #asahi
yamii has joined #asahi
rayanamukami3 has quit [Remote host closed the connection]
rayanamukami3 has joined #asahi
kettenis has quit [Remote host closed the connection]
kettenis has joined #asahi
SSJ_GZ has joined #asahi
<marcan>
I think that is a known race (cc sven)
<marcan>
hertz: the firmware loading process changed and now relies on initramfs mounting a tmpfs on /lib/firmware/vendor and putting the firmware there. this goes for both wifi and trackpad (which also needs firmware)
<marcan>
you should familiarize yourself with those scripts if you are rolling your own install
<marcan>
SFR = System Firmware and Recovery
<hertz>
Thanks, @marcan ! I will study them. You're talking about the scripts in asahi-scripts-20221220-1-any.pkg.tar.xz, right?
<marcan>
yes, the mkinitcpio stuff in particular
<marcan>
this is also documented on the wiki (don't have the link handy but it's in the sidebar, the Open OS Ecosystem one)
<hertz>
What does SFR mean, though? Is it the recovery partition at the beginning of the disk?
<marcan>
it means the entirety of firmware and recovery that is global and not per-OS
<hertz>
Ok, cool. Yeah, I've read the open OS ecosystem doc and made notes on it. Just haven't looked at those scripts in a while.
<hertz>
Ok, got it. Thank you for that!
<marcan>
that includes the stuff in NOR Flash, the stuff in iSCPreboot, the System Recovery partition, and also things like random auxiliary firmwares on external devices with flash
<marcan>
the number the installer prints comes from a plist in iSCPreboot
<hertz>
Oh, I see. That makes sense now.
<marcan>
for m1n1/linux we guess an equivalent macOS version from the iBoot1 version (which isn't always unique but it covers what we care about) since that's all we get
<marcan>
FWIW, the trackpad behavior is that the device will show up with no firmware, but will fail if you try to open it and firmware is not available
<marcan>
I did it that way so you don't end up stuck on late firmware loads (unlike wifi, which just goes dead and worse, the module can't handle rebinds properly right now, it breaks when you try to use it later)
<hertz>
My SFR version is 22.something and my OS version (xnu kernel version) is 21.something. Is that normal? I have 13.1 installed on the recovery partition but run 12.6.2 as my macos.
<marcan>
yes, that is normal
<hertz>
Cool, thanks. It's a complicated boot process, but I've read though all the stuff on the wiki. Honestly, I understand Asahi's explanation better than the one in Apple Platform Security Guide :-)
<marcan>
yeah, apple's stuff is... kind of missing a lot of important details
<marcan>
took a while to make sense of it :)
<marcan>
(with some help from apple folks even)
<hertz>
Hey, one other question. In the wiki it talks about setting one of the SMC keys (gioX where X is some char I forget) to turn on/off the wifi. How are you setting those keys? Just using the AppleSMC.kext in macos, or is there a linux way?
<hertz>
I'll say! (missing important details)
<marcan>
the SMC GPIO is exposed as a standard GPIO controller in Linux and that GPIO is configured in the device tree as a power GPIO for PCIe
<hertz>
That's awesome that they helped you. They're generally pretty secretive.
<marcan>
you don't need to do anything other than have the relevant drivers
<marcan>
Apple as a company are pretty secretive. Some Apple employees don't mind explaining already released software, that's just them being nice
<hertz>
Oh interesting. So I can set that gpio under /sys somewhere?
<marcan>
none of this is supposed to be secret, it's just woefully underdocumented
<marcan>
yes, you can use the gpiochip chardev interface or the legacy sysfs stuff
<hertz>
Yeah, that's my impression - not intended to be secret, but there's just very little information findable in good.
<bluetail8>
marcan about the race condition you mentioned, what does cc sven mean in that topic?
<marcan>
though I don't recommend messing with SMC GPIOs too much since those are coming off of the PMU and you *could* break something maybe
<hertz>
Oh, ok. gpiochip chardev is a good idea.
<marcan>
bluetail8: it means carbon copy sven
<hertz>
Yeah, I understand the risks. I've already disassembled the machine and probed its test points and whatnot. If it dies, it dies... life will go on.
<hertz>
I wish I could get schematics and boardview for an M2 Air, but I can't find them online.
<bluetail8>
marcan I do not understand. Am I supposed to write a email, put you on the recipients list, but set sven on carbon copy (cc) ?
<marcan>
yeah, I only have the widely leaked ones (j293/j313/j314s)
<marcan>
bluetail8: no, you're supposed to wait for sven to comment here :p
<bluetail8>
thanks :D
<hertz>
Yes, I've seen the m1 mbpro ones, but nothing for any M2 that I am aware of.
<marcan>
yup
<hertz>
And the boards are nothing alike.
<marcan>
the actual designs do share a lot though
<marcan>
electrically
<marcan>
PMU GPIOs are pretty similar IIRC and some of the schematics have references to how other variants would be laid out
<hertz>
Yeah, but the placement of test points and stuff like that -- that's really what I'm interested in. And that does seem to vary from what I can tell.
<marcan>
yeah, that would vary a lot
<marcan>
also if you want to mess with SMC you might find the m1n1 tooling more useful
<marcan>
which runs over USB
<hertz>
I hope I can contribute to the project. Right now I am still getting my feet wet.
<marcan>
tools/smccli.py and such
<marcan>
it can poll SMC keys so you can watch things like voltages/currents in real-ish time
<hertz>
Oh ok, I'll take a look.
<hertz>
Nice!
<hertz>
That would be great.
<hertz>
Is the SMC integrated into the PMU chip on these A/S machines?
<marcan>
you'll have to either install the m1n1 stub only (in expert mode) or do the m1n1 proxy backdoor dance on an asahi install (pretty sure that's on the wiki somewhere too, tl;dr csrutil disable for the asahi install then nvram boot-args-v
<marcan>
it's part of the SoC
<marcan>
the PMU talks to it over SPMI
<marcan>
SMC just proxies that
<marcan>
you can also talk to the PMU directly through another SPMI instance but I don't know what the commands for GPIOs are at that layer
<hertz>
See I wish I could find the probe points for interfaces like that SPMI but without schematics and boardview I'm blind. Maybe I'll invest in an M1 just so I have a machine that matches the schematics I have.
<hertz>
Well, I'll start with the m1n1 stuff. Had not seen tools/smccli.py but it sounds like what I'm interested in.
<tpw_rules>
more specifically it says that rtkit failed to wake up that coprocessor
<tpw_rules>
(or i guess that linux failed to wake up rtkit in that coprocessor)
cylm has joined #asahi
caef^ has quit [Remote host closed the connection]
<corion>
marcan: are the funding goal percentages at pateron.com/marcan up to date? 20% seems a bit low, since it says "4k/month" is the initial goal. With 983 patreons, even if people only gave the smallest tier, you should be fairly close to 4k/month, or what am I missing? :)
<corion>
patreon.com*
<j`ey>
corion: says 51% for me
<corion>
Oh? I see 20% on the first goal, and 4% on the second.
<tpw_rules>
it says 42% for me
<corion>
That's weird.
<corion>
Or maybe I'm missing something.
<tpw_rules>
i am not clued into the patreon habit but afaik there is nothing preventing a large fraction of patreons manually selecting down to $1/mo. there is nothing mandating the minimum tier
<tpw_rules>
especially since nothing offers any reward
bluetail8 has joined #asahi
<corion>
That makes sense, but surely the numbers should be the same for all of us, visiting the same url?
<tpw_rules>
that part i cannot explain
<sven>
iirc there was some bug with the currencies
<sven>
if you select eu vs usd the percentage changed
<corion>
ahh
<corion>
In that case, I hope 51% is the right number.
yumasi has quit [Remote host closed the connection]
<tpw_rules>
it says 100% on the first goal to me
<corion>
Oh? So you have 42% on the second goal?
<tpw_rules>
yes
<corion>
That's a lot better than 4%.
<corion>
Good!
Brainium has joined #asahi
wCPO624365 has quit [Remote host closed the connection]
wCPO624365 has joined #asahi
rvalue- has joined #asahi
rvalue has quit [Ping timeout: 480 seconds]
psykose_ has quit [Remote host closed the connection]
psykose has joined #asahi
nicolas17 has joined #asahi
___nick___ has quit [Ping timeout: 480 seconds]
Treibholz has quit [Quit: WeeChat 3.7.1]
unicordion has joined #asahi
possiblemeatball has quit [Quit: Leaving]
yumasi has joined #asahi
yumasi has quit [Ping timeout: 480 seconds]
Brainium_ has joined #asahi
Nnubes256 has quit [Quit: WeeChat 3.7.1]
Brainium_ has quit []
Brainium has quit [Ping timeout: 480 seconds]
Zopolis4 has joined #asahi
SSJ_GZ has quit [Ping timeout: 480 seconds]
rayanamukami31 has joined #asahi
rayanamukami3 has quit [Read error: Connection reset by peer]