#asahi-re · 2022-10-06 09:40
Jamie[m]that does not convey the evilness of my :3#asahi-re · 2022-10-06 09:40
Jamie[m]hey matrix turned my > : 3 into a :3#asahi-re · 2022-10-06 09:40
rqou_with a hack-tastic fake NVIC#asahi-re · 2022-10-06 09:40
Jamie[m]>:3#asahi-re · 2022-10-06 09:40
rqou_well, i've just hooked up the firmware in unicorn engine and i can successfully send the start session command and get its reply#asahi-re · 2022-10-06 09:35
Jamie[m]but wasn't sure what to use for actually running the code, unicorn is probably what i would have begrudgingly settled on#asahi-re · 2022-10-06 09:34
Jamie[m])#asahi-re · 2022-10-06 09:34
Jamie[m](basically just the nvic i think?#asahi-re · 2022-10-06 09:34
Jamie[m]m3 is tiny enough that I was thinking of emulating the periphals used (basically nothing) myself #asahi-re · 2022-10-06 09:33
Jamie[m]rqou_: awesome haha#asahi-re · 2022-10-06 09:07
chadmed[m]there is no disappointment quite like "oh, it just doesnt work on my machine... ok then" except maybe being served a cold pizza#asahi-re · 2022-10-06 09:05
rqou_epic fail time#asahi-re · 2022-10-06 09:05
rqou_so something is just broken in Unicorn on some combination of macOS/aarch64/m1#asahi-re · 2022-10-06 09:05
rqou_Unicorn Engine is working fine on my x86_64 laptop#asahi-re · 2022-10-06 09:05
rqou_wtf, of course#asahi-re · 2022-10-06 09:00
rqou_a different address range works correctly#asahi-re · 2022-10-06 09:00
rqou_my hook for emulating MMIO triggers only once, but only for one of the address ranges#asahi-re · 2022-10-06 08:57
rqou_but it's flaking out in a way that doesn't make sense#asahi-re · 2022-10-06 08:57
rqou_well, Unicorn Engine wraps qemu#asahi-re · 2022-10-06 08:56
chadmed[m]doesnt qemu? #asahi-re · 2022-10-06 08:54
rqou_Jamie[m]: got any good cortex-m3 emulators?#asahi-re · 2022-10-06 08:53
rqou_except Unicorn Engine is behaving like the flaky pile of hacks it is#asahi-re · 2022-10-06 08:53
rqou_Jamie[m]: i'm literally trying that right this moment#asahi-re · 2022-10-06 07:18
Jamie[m]i think the awful/amazing verdict will probably be decided by whether i do this in c in m1n1 or as a proxyclient script#asahi-re · 2022-10-06 07:12
sveni think you mean s/aweful/amazing/#asahi-re · 2022-10-06 07:08
Jamie[m]and feed video in -> watch register accesses come out#asahi-re · 2022-10-06 07:08
Jamie[m]so we can treat all of macos PLUS the firmware as a single black box#asahi-re · 2022-10-06 07:07
Jamie[m]and interrupts from the hardware#asahi-re · 2022-10-06 07:07
Jamie[m]on the assumption that it's sane to try doing AVD just with direct register poking and maybe a little custom firmware, I'm gonna see if I can get the firmware running in an emulated cortex-m3, proxying peripheral read/writes back to the hardware#asahi-re · 2022-10-06 07:05
Jamie[m]alright, i'm going to do something awful#asahi-re · 2022-10-06 02:52
Jamie[m]oh yeah i see#asahi-re · 2022-10-06 02:43
Jamie[m]by firmware properties you mean the things set with command 6?#asahi-re · 2022-10-05 09:21
rqou_not clear what that is or how it works yet#asahi-re · 2022-10-05 09:20
rqou_unrelated to all of that, the kext seems to allocate an "InsnFifo" that the firmware then manages#asahi-re · 2022-10-05 09:20
rqou_firmware properties 2, 3, and 4 might also all relate to encrypting things#asahi-re · 2022-10-05 09:19
rqou_(there's getFPADSCryptInfo and getKDADSCryptInfo functions, for one, as well as a dedicated "adsbuf" DART stream and a bunch of "ads" related debug messages in the firmware)#asahi-re · 2022-10-05 09:18
rqou_a not-insignificant amount of AVD logic seems to be related to handling "ADS" which (for complicated-to-describe-to-others blatant guessing reasons) i believe is related to FairPlay#asahi-re · 2022-10-05 09:06
Jamie[m]pretty sure i was definitely reing appleavd.kext straight out of /system/library/extensions though#asahi-re · 2022-10-05 09:05
Jamie[m]hm perhaps i had that before and forgot about it#asahi-re · 2022-10-05 09:05
marcanJamie[m]: probably available in the KDK?#asahi-re · 2022-10-05 08:56
hmon[m]perf counters ^ #asahi-re · 2022-10-05 08:56
hmon[m]https://github.com/hmonn/ane/blob/main/perf.c #asahi-re · 2022-10-05 08:25
hmon[m]related? but i cant find some binaries that used to be in private_framework #asahi-re · 2022-10-05 01:08
Jamie[m]are they only stored in the kernelcache now?#asahi-re · 2022-10-05 01:08
Jamie[m]mine all just have signatures and plists, no binary#asahi-re · 2022-10-05 01:08
Jamie[m]uh, what happened to kexts on ventura#asahi-re · 2022-10-05 01:06
Jamie[m]lmao#asahi-re · 2022-10-05 00:15
rqou_it's not just DCP lol#asahi-re · 2022-10-05 00:14
rqou_look in the constructor for CAvePipeMcpu#asahi-re · 2022-10-05 00:14
rqou_that all do... something