#
✕ nick:marcan
#asahi · 2022-12-26 06:02
marcantools/smccli.py and such
#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
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
marcanyup
#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:58
marcanbluetail8: it means carbon copy sven
#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
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
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
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: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
marcanyes, that is normal
#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: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
marcanit means the entirety of firmware and recovery that is global and not per-OS
#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
marcanSFR = System Firmware and Recovery
#asahi · 2022-12-26 05:47
marcanyou should familiarize yourself with those scripts if you are rolling your own install
#asahi · 2022-12-26 05:47
marcanhertz: 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)
#asahi · 2022-12-26 05:45
marcanI think that is a known race (cc sven)
#asahi · 2022-12-24 11:55
marcanoh if you're already booted into the real system just run update-grub
#asahi · 2022-12-24 11:54
marcanif you can chroot into your system you can just run update-grub
#asahi · 2022-12-24 11:54
marcan(except for RAM sizes)
#asahi · 2022-12-24 11:53
marcan(I will forever die on the hill that using binary powers of two for UI by default is dumb and pointless, doubly so if you don't actually use the right IEC suffixes that indicate so)
#asahi · 2022-12-24 11:52
marcanit's not 233 GB, it's 233 GiB
#asahi · 2022-12-24 11:52
marcanas for the HDD size, because U-Boot is silly and lies to you
#asahi · 2022-12-24 11:49
marcantrying too hard :p
#asahi · 2022-12-24 11:49
marcanlol
#asahi · 2022-12-24 11:49
marcanit's supposed to be that
#asahi · 2022-12-24 11:49
marcanROOT_UUID=725346d2-f127-47bc-b464-9dd46155e8d6
#asahi · 2022-12-24 11:49
marcanwait not 725a...
#asahi · 2022-12-24 11:49
marcan7253... is the default UUID so yeah
#asahi · 2022-12-24 11:48
marcanso yes, if you restored it to its state prior to the first boot, you'd break boot
#asahi · 2022-12-24 11:48
marcanhertz: BOOTAARCH.EFI is supposed to be replaced on first boot, as your UUID gets randomized
#asahi · 2022-12-17 13:38
marcanyeah, makes sense. I think there's some caching with the cursor that makes it weird until you log out/in again
#asahi · 2022-12-17 13:35
marcanI'm not so sure about the cursor though, there was some weirdness there. playing with the cursor size settings and logging out and in again might help.
#asahi · 2022-12-17 13:34
marcanI believe the coordinate system is different between X and Wayland and that's why switching between them ends up with things being the wrong size

plus ›