#asahi-re · 2025-02-25 12:06
chadmeddo you think writing to them will change the regulator behaviour at each pstate?#asahi-re · 2025-02-25 12:05
nickchanthis supposedly holds definitions for each pstate in strides of 0x20, for state 0-15 on m1#asahi-re · 2025-02-25 12:04
nickchanchaos_princess: for voltages and frequencies, on m1 have you experimented with the registers at cluster->base (in m1n1 cpufreq.c terms) + 0x70000 ?#asahi-re · 2025-02-23 11:37
svenbut that's why I'd start with a python thing that drives it first to understand what exactly we need to do to drive it#asahi-re · 2025-02-23 11:37
sventhe only part where that may or may not work is full disk encryption since that needs a channel between our nvme driver and SEP and we might have to do that entirely inside the kernel#asahi-re · 2025-02-23 11:36
sventhen think about how to properly implement this. from what i saw a few years ago when I looked at it a bit what we probably want is a dumb kernel driver that allows to send/recv messages to those SEP endpoints and do most of the heavy lifting in a userspace rust daemon#asahi-re · 2025-02-23 11:35
svenif I were to reverse SEP I'd probably do it similarly to how lina did agx: first write a python thing that can drive it inside m1n1 to figure out how it actually works#asahi-re · 2025-02-23 09:50
svenits contiguous and doesn’t change size #asahi-re · 2025-02-23 09:49
svenyou don’t need a apfs driver for the rest. just figure out the offsets if the gigalocker file on that xart partition and do raw read/writes #asahi-re · 2025-02-23 09:41
adsss1578catch yall later#asahi-re · 2025-02-23 09:41
adsss1578I just watched 2 talks by the original maintainer and think this is one of the cooles things to wotk on tbh#asahi-re · 2025-02-23 09:40
adsss1578I'll start with those 2 links and come back later. Thanks for the headsup.#asahi-re · 2025-02-23 09:40
chaos_princessm1n1 the thing that can run macos in a very thin vm, hook hw accesses and run python scripts in response. There are a bunch of examples in that repo#asahi-re · 2025-02-23 09:39
chaos_princesshttps://asahilinux.org/docs/SW-Hypervisor/#asahi-re · 2025-02-23 09:39
chaos_princessthe approach is to run macos in a special hypervisor and trace its hardware interactions#asahi-re · 2025-02-23 09:37
chaos_princesshttps://asahilinux.org/copyright/#asahi-re · 2025-02-23 09:37
adsss1578Binja then? #asahi-re · 2025-02-23 09:37
chaos_princessstep 1 is to put away ghidra :P#asahi-re · 2025-02-23 09:36
adsss1578Is there a guide on how to start doing this? I have some experienve with aarch64 and C. Also had used Ghidra and IDA#asahi-re · 2025-02-22 23:49
nicolas17mood#asahi-re · 2025-02-22 23:49
ZavecAnyway I'm going to get some sleep, thanks both of you for all the help! And apologies in advance if this takes me a long time, still trying to find an ADHD med that actually works for me :P#asahi-re · 2025-02-22 23:47
ZavecI've never really dug into the apple ecosystem before, so there's probably lots of things like that I'll miss#asahi-re · 2025-02-22 23:46
Zavecoh yeah, hdiutil would be way easier good call#asahi-re · 2025-02-22 23:46
nicolas17so I wrote a script to erase the data volume from the disk image, going through the APFS object map to figure out what blocks belong to that volume#asahi-re · 2025-02-22 23:45
nicolas17and that's useless data since you can't decrypt it anyway#asahi-re · 2025-02-22 23:45
nicolas17but the disk image takes a lot of space because the data volume is encrypted and can't be compressed#asahi-re · 2025-02-22 23:44
nicolas17scenario: new Mac model comes out, it comes preinstalled with a special macOS build that is not available for download, researchers / data hoarders want a copy of it so they take a raw disk dump#asahi-re · 2025-02-22 23:44
chaos_princessSince you have a mac, you can also generate a bunch of apfs images yourself, just with hdiutil#asahi-re · 2025-02-22 23:43
nicolas17I wrote a hackish purpose-specific apfs parser in Python a while ago#asahi-re · 2025-02-22 23:43
Zavecprobably would be better for my back#asahi-re · 2025-02-22 23:43
Zavecthough really that's something I should do anyway#asahi-re · 2025-02-22 23:43
nicolas17lol#asahi-re · 2025-02-22 23:42
Zavecwe'll see which happens first then, between the new laptop coming (in which case I can do all this from my coffee table) or me finally cleaning off the desk where my desktop has sat unused for a year or so :P#asahi-re · 2025-02-22 23:42
chaos_princessi started re with a 2010 (iirc) intel mbp#asahi-re · 2025-02-22 23:41
chaos_princessJust needs usb#asahi-re · 2025-02-22 23:41
Zavecre. apfs images: if it's not too much trouble those would probably be helpful!#asahi-re · 2025-02-22 23:41
nicolas17the second device doesn't have to be a Mac (it might need USB-C?)#asahi-re · 2025-02-22 23:40
ZavecI'm on a M1 mbp right now, but it sounds like I need a second device for the tracing stuff with m1n1 unless I've misunderstood something#asahi-re · 2025-02-22 23:39
nicolas17let me know if you want some small apfs disk images to poke at :p#asahi-re · 2025-02-22 23:39
nicolas17do you have no Mac hardware currently?#asahi-re · 2025-02-22 23:38
ZavecWell that at least gives me something I can get started on reading (and see just what I might be getting myself into) while I wait for my new laptop to come. Won't be doing much of any tracing until that happens regardless.#asahi-re · 2025-02-22 23:34
ZavecOf course, we wouldn't want things to be too easy!#asahi-re · 2025-02-22 23:34
chaos_princessZavec: warning, that doc contains errors, and some parts of it contradict each other :P #asahi-re · 2025-02-22 23:34
nicolas17chaos_princess: we should actually write down somewhere the errata for Apple-File-System-Reference.pdf :D#asahi-re · 2025-02-22 23:33
ZavecAnd there's some stuff about xart/gigalocker in that asahi hw-sep doc too#asahi-re · 2025-02-22 23:33
ZavecOh nice, developer.apple.com has a big long doc about how APFS works#asahi-re · 2025-02-22 23:31
nicolas17I once tried to trace wifi and got quickly overwhelmed#asahi-re · 2025-02-22 23:30
nicolas17:D#asahi-re · 2025-02-22 23:29
chaos_princesssimple, dont put iomon on everything#asahi-re · 2025-02-22 23:29
nicolas17ignoring stuff made it able to keep up?