#
#asahi · 2022-12-26 06:01
marcanwhich runs over USB
#asahi · 2022-12-26 06:01
marcanalso if you want to mess with SMC you might find the m1n1 tooling more useful
#asahi · 2022-12-26 06:01
marcanyeah, that would vary a lot
#asahi · 2022-12-26 06:01
hertzYeah, 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.
#asahi · 2022-12-26 06:01
marcanPMU GPIOs are pretty similar IIRC and some of the schematics have references to how other variants would be laid out
#asahi · 2022-12-26 06:00
marcanelectrically
#asahi · 2022-12-26 06:00
marcanthe actual designs do share a lot though
#asahi · 2022-12-26 06:00
hertzAnd the boards are nothing alike.
#asahi · 2022-12-26 06:00
marcanyup
#asahi · 2022-12-26 06:00
hertzYes, I've seen the m1 mbpro ones, but nothing for any M2 that I am aware of.
#asahi · 2022-12-26 06:00
bluetail8thanks :D
#asahi · 2022-12-26 06:00
marcanbluetail8: no, you're supposed to wait for sven to comment here :p
#asahi · 2022-12-26 06:00
marcanyeah, I only have the widely leaked ones (j293/j313/j314s)
#asahi · 2022-12-26 05:59
bluetail8marcan I do not understand. Am I supposed to write a email, put you on the recipients list, but set sven on carbon copy (cc) ?
#asahi · 2022-12-26 05:59
hertzI wish I could get schematics and boardview for an M2 Air, but I can't find them online.
#asahi · 2022-12-26 05:58
hertzYeah, 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.
#asahi · 2022-12-26 05:58
marcanbluetail8: it means carbon copy sven
#asahi · 2022-12-26 05:58
hertzOh, ok. gpiochip chardev is a good idea.
#asahi · 2022-12-26 05:58
marcanthough I don't recommend messing with SMC GPIOs too much since those are coming off of the PMU and you *could* break something maybe
#asahi · 2022-12-26 05:57
bluetail8marcan about the race condition you mentioned, what does cc sven mean in that topic?
#asahi · 2022-12-26 05:57
hertzYeah, that's my impression - not intended to be secret, but there's just very little information findable in good.
#asahi · 2022-12-26 05:57
marcanyes, you can use the gpiochip chardev interface or the legacy sysfs stuff
#asahi · 2022-12-26 05:57
marcannone of this is supposed to be secret, it's just woefully underdocumented
#asahi · 2022-12-26 05:57
hertzOh interesting. So I can set that gpio under /sys somewhere?
#asahi · 2022-12-26 05:57
marcanApple as a company are pretty secretive. Some Apple employees don't mind explaining already released software, that's just them being nice
#asahi · 2022-12-26 05:56
marcanyou don't need to do anything other than have the relevant drivers
#asahi · 2022-12-26 05:56
hertzThat's awesome that they helped you. They're generally pretty secretive.
#asahi · 2022-12-26 05:56
marcanthe 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
#asahi · 2022-12-26 05:56
hertzI'll say! (missing important details)
#asahi · 2022-12-26 05:55
hertzHey, 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?
#asahi · 2022-12-26 05:55
marcan(with some help from apple folks even)
#asahi · 2022-12-26 05:55
marcantook a while to make sense of it :)
#asahi · 2022-12-26 05:55
marcanyeah, apple's stuff is... kind of missing a lot of important details
#asahi · 2022-12-26 05:54
hertzCool, 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 :-)
#asahi · 2022-12-26 05:54
marcanyes, that is normal
#asahi · 2022-12-26 05:53
hertzMy 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.
#asahi · 2022-12-26 05:53
marcanI 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)
#asahi · 2022-12-26 05:53
marcanFWIW, 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
#asahi · 2022-12-26 05:52
marcanfor 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
#asahi · 2022-12-26 05:52
hertzOh, I see. That makes sense now.
#asahi · 2022-12-26 05:51
marcanthe number the installer prints comes from a plist in iSCPreboot
#asahi · 2022-12-26 05:51
marcanthat 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
#asahi · 2022-12-26 05:50
hertzOk, got it. Thank you for that!
#asahi · 2022-12-26 05:50
hertzOk, 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.
#asahi · 2022-12-26 05:50
marcanit means the entirety of firmware and recovery that is global and not per-OS
#asahi · 2022-12-26 05:50
hertzWhat does SFR mean, though? Is it the recovery partition at the beginning of the disk?
#asahi · 2022-12-26 05:50
marcanthis is also documented on the wiki (don't have the link handy but it's in the sidebar, the Open OS Ecosystem one)
#asahi · 2022-12-26 05:50
marcanyes, the mkinitcpio stuff in particular
#asahi · 2022-12-26 05:49
hertzThanks, @marcan ! I will study them. You're talking about the scripts in asahi-scripts-20221220-1-any.pkg.tar.xz, right?
#asahi · 2022-12-26 05:49
marcanSFR = System Firmware and Recovery

plus ›