#
#asahi-re · 2022-06-18 18:24
sventhat still seems to be common broadcom stuff, there are some vague references to this in the wlan driver as well
#asahi-re · 2022-06-18 18:24
svenalright, so these myster config space writes (https://github.com/rqou/m1-bluetooth-prototype/blob/f2873340b28fed052550ca51554e85af5cd24b0e/test.py#L184) actually just configure the memory/MMIO/whatever windows that can be accessed in the BAR
#asahi-re · 2022-06-18 18:16
roxfan2thx
#asahi-re · 2022-06-18 18:16
jannauanswering your question which chip is 80186
#asahi-re · 2022-06-18 18:15
roxfan2huh
#asahi-re · 2022-06-18 18:14
jannauroxfan2: the dp to hdmi converter used for the hdmi ports
#asahi-re · 2022-06-18 18:14
jannauah, then adding it conditionally where needed is the right thing to do
#asahi-re · 2022-06-18 18:13
sveniirc SEP and the thunderbolt ones don’t
#asahi-re · 2022-06-18 18:13
sventhat was on purpose because not all mailboxes have that reg
#asahi-re · 2022-06-18 18:12
jannaurequires unfortunately another reg since we have offsetted the regs by 0x4000
#asahi-re · 2022-06-18 18:12
marcanjannau: ah, thanks!
#asahi-re · 2022-06-18 18:12
roxfan2*is
#asahi-re · 2022-06-18 18:12
roxfan2which fw ois 80186? o.o
#asahi-re · 2022-06-18 18:11
jannaumarcan: I did that already for dcp: https://gist.github.com/jannau/4bd9caf176d0fd40ce842c8a456a1583
#asahi-re · 2022-06-18 17:10
marcan(I wish Apple just stopped encrypting this stuff)
#asahi-re · 2022-06-18 17:10
marcanUltimately those keys being public help a lot of causes, including verifiability of the boot chain.
#asahi-re · 2022-06-18 17:09
marcanRight. I don't endorse all that "fell of a truck" stuff, but if the end result is data that is in everyone's M1 anyway being published, I'm not going to say no to using it.
#asahi-re · 2022-06-18 17:05
nicolas17(I know marcan knows this, just stating it for everyone reading :p)
#asahi-re · 2022-06-18 17:05
nicolas17these keys were probably extracted via JTAG on a CPFM00 (prototype) M1 chip that "fell off a truck", but if you hypothetically exploited a bootrom bug or something on a production M1, you could get the same keys
#asahi-re · 2022-06-18 17:03
marcanthen it doesn't have to care
#asahi-re · 2022-06-18 17:03
marcanneed to fix up Linux RTKit so it uses an always-safe sequence to bring up RTKit that works regardless of what shutdown mode a copro is in
#asahi-re · 2022-06-18 17:02
marcanI think I'm going to stick with that for now
#asahi-re · 2022-06-18 17:02
marcantbh though, the current "shut down DCP" solution is quite pretty, and better than prodding magic registers and having to have linux prod them back
#asahi-re · 2022-06-18 17:01
nicolas17as if knowing there's an x86 iPhone baseband wasn't cursed enough already
#asahi-re · 2022-06-18 17:01
marcanso yeah, nice rabbit hole for someone to go down if they're bored
#asahi-re · 2022-06-18 17:01
marcan... it's x86. 80186.
#asahi-re · 2022-06-18 17:01
marcanwe do have firmare for that one
#asahi-re · 2022-06-18 17:01
marcan(since the HPD pin goes through it)
#asahi-re · 2022-06-18 17:00
marcanthough I bet it could be done with i2c shenanigans poking the dp2hdmi chip, but that's *another* layer of blind undocumented registers
#asahi-re · 2022-06-18 17:00
marcanbut I didn't find anything useful to solve the hotplug problem
#asahi-re · 2022-06-18 17:00
marcanI already reversed some of it, it's in proxyclient stuff
#asahi-re · 2022-06-18 17:00
marcanand I'd love to know what it does with those
#asahi-re · 2022-06-18 16:59
marcanalso, IIRC iBoot talks to some EPIC endpoints besides the iBoot/disp0 one
#asahi-re · 2022-06-18 16:59
sventrue
#asahi-re · 2022-06-18 16:59
marcanand also exactly what algorithm apple used to use for mode selection before they nixed it
#asahi-re · 2022-06-18 16:58
marcanthe DCP client side would be nice to find too
#asahi-re · 2022-06-18 16:58
svenand I missed the PMGR reset anyway
#asahi-re · 2022-06-18 16:58
svenand even finding that was annoying
#asahi-re · 2022-06-18 16:58
svenyeah, i looked for the ANS shutdown sequence I think
#asahi-re · 2022-06-18 16:57
marcanalso since SMC is always on, this is good for proving absence of backdoors and such
#asahi-re · 2022-06-18 16:57
marcanI'm more interested in things like like SMC, I looked at an iPhone one and that helped answer some questions but there was enough that was different to leave plenty of mysteries
#asahi-re · 2022-06-18 16:57
sventhe one iboot i briefly looked at contained almost no strings and wasn't much fun to reverse engineer fwiw
#asahi-re · 2022-06-18 16:56
svenhuh, cute
#asahi-re · 2022-06-18 16:55
marcanso I guess we can finally decrypt iBoot/SMC and answer some mysteries that way (RE policy still applies as usual, don't do that if you're writing drivers and I don't know you know what you're doing)
#asahi-re · 2022-06-18 16:55
nicolas17oh so he just tweeted them out lol
#asahi-re · 2022-06-18 16:55
marcan(no idea where those came from, but public decryption keys for public firmware blobs are fair game FWIW)
#asahi-re · 2022-06-18 16:54
marcanhttps://twitter.com/nyan_satan/status/1538200104573755398 cute
#asahi-re · 2022-06-18 14:26
sveni've started to look into bluetooth with R's notes a bit. looks like apple calls the transport used for communication with the actual chip "apple converged IPC" and maybe also "apple converged PCI"
#asahi-re · 2022-06-17 10:31
sventhanks, let me take a look if i can convince that thing to just resolve some .kext vtables for me
#asahi-re · 2022-06-17 10:12
millenialhackers/is/its/g

plus ›