#
✕ nick:sven
#asahi-re · 2026-11-01 21:18
sventhis is mostly just if someone is bored and wants to reverse engineering something for fun :D
#asahi-re · 2026-11-01 21:18
sventhat exclavecorebundle is also wrapped in another layer in the ipsw, maybe staring at that one is also enough
#asahi-re · 2026-11-01 21:17
svenand in the end this is just a curiosity, the loader I have now works but I just think it's wrong (https://github.com/AsahiLinux/m1n1/commit/70af9ef007b9ca714f1af43ac7ecb3ab744d4b3b)
#asahi-re · 2026-11-01 21:14
sventhat, then there's ~no strings, i think it actually uses EL0/2 now which makes the code harder to follow, and it does weird stuff in function prologs/epilogues which confused ghidra's decompiler immensely last time I checked
#asahi-re · 2026-11-01 21:11
svenoh, mboot is so much fucking worse than that
#asahi-re · 2026-11-01 15:38
svenI suspect that I merge the rx/ro and rw/le regions into one
#asahi-re · 2026-11-01 15:25
sventhis all works but it would be nice to know what's actually supposed to happen, especially because SPTM passes addresses to all four regions to CL4 afaict
#asahi-re · 2026-11-01 15:25
sven*iboot
#asahi-re · 2026-11-01 15:25
sventhere's some additional info in the file that contains the actual exclavecorebundle but I dunno how that works but I think that's what boot uses
#asahi-re · 2026-11-01 15:24
svenwhich seems weird, because I end up with two empty regions
#asahi-re · 2026-11-01 15:24
svenif anyone wants some "fun" reverse engineering task: figure out how mboot/iboot actually splits the "exclavecorebundle" into CL4-rx/ro/rw/le sections. I'm pretty sure what I'm doing is wrong: I looked into the CL4 header and but everything that's marked as executable into -rx and the rest into -rw.
#asahi-re · 2026-10-26 17:11
sven#asahi-offtopic please
#asahi-re · 2026-08-25 18:27
svenPACIBSP was a good hint ;)
#asahi-re · 2026-08-25 18:21
svenPACIBSPPC
#asahi-re · 2026-08-25 18:21
svenhttps://support.arm.com/documentation/ddi0602/2025-03/Base-Instructions/PACIBSPPC--Pointer-Authentication-Code-for-return-address--using-key-B-?lang=en that one i think
#asahi-re · 2026-08-25 18:21
sven'0xdac1a7fe'
#asahi-re · 2026-08-25 18:21
sven1 1 11 1 1 0".replace(" ",""), 2))
#asahi-re · 2026-08-25 18:21
sven 0 00 1 1 0 1 0 0 1 1 1 1 \
#asahi-re · 2026-08-25 18:21
sven>>> hex(int("1 1 0 1 1 0 1 0 1 1 0 0\
#asahi-re · 2026-08-25 18:12
svenamarioguy: doesn't look like any apple-specific insns at least. where'd you find that?
#asahi-re · 2026-08-25 07:55
sven:(
#asahi-re · 2026-08-24 09:48
svenfor DART i think
#asahi-re · 2026-08-24 09:48
svenjannau: there is some avoid-tlbi-in-map property in the latest 27 beta in sptm now
#asahi-re · 2026-08-23 18:03
svenhm, so maybe they moved more of the init into macOS and that’s why the t6040 also has less tunables
#asahi-re · 2026-08-23 17:58
sveni think my plan is getting a m4 pro, get the hv working and then spend some quality time with that new atcphy
#asahi-re · 2026-08-23 17:57
svendon’t see why they change it otherwise
#asahi-re · 2026-08-23 17:57
svendoes it do a new DP version?
#asahi-re · 2026-08-23 17:57
svenodd
#asahi-re · 2026-08-23 17:55
svenhah, yeah
#asahi-re · 2026-08-23 17:53
sventhis all looks rather different
#asahi-re · 2026-08-23 17:53
svenI guess we’ll need atc_t6040.c then
#asahi-re · 2026-08-23 17:52
svennope, I just can’t write tunable correctly
#asahi-re · 2026-08-23 17:44
svenI think the tunables are gone though, don’t see any strings related to them at least
#asahi-re · 2026-08-23 17:17
svenbut there are way to many register names in the strings dump for that already :(
#asahi-re · 2026-08-23 17:17
sveni was kinda hoping that we could just send "usb3/dp mode please" to some rtkit abomination
#asahi-re · 2026-08-23 17:14
svenyeah, same hope here and same conclusion :(
#asahi-re · 2026-08-23 17:09
svenyeah. and just from strings this looks very different
#asahi-re · 2026-08-23 17:07
svenfun
#asahi-re · 2026-08-23 17:01
sventhe t6040 kext from the 27 beta i think
#asahi-re · 2026-08-23 17:00
sveni only knew about the one inside acio
#asahi-re · 2026-08-23 17:00
svenhuh, never noticed that
#asahi-re · 2026-08-23 16:59
sven%s@%s: %s::%s: couldn't set up embedded CPU
#asahi-re · 2026-08-23 16:57
svenlolwhat, does atcphy on m4 pro now have a cpu in there?!
#asahi-re · 2026-08-22 21:14
svenso maybe really just one SID for each rx/tx ring then
#asahi-re · 2026-08-22 21:12
svenand we've seen weird bypass SIDs since t8103 and don't set them up on linux anyway
#asahi-re · 2026-08-22 21:03
svenweird, i'm not aware of anything in the NHI that does DMA outside the rx/tx rings. and rtkit on t8103/t6000 uses sram mapped to the SoC bus
#asahi-re · 2026-08-22 21:01
svenwonder what 12 and 13 are then
#asahi-re · 2026-08-22 20:27
svenno dt changes required
#asahi-re · 2026-08-22 20:26
svenright now it does a foreach_set_bit over the sidmask, but i bet we could make that use remap instead and just program a single sid
#asahi-re · 2026-08-22 20:25
svenhttps://github.com/AsahiLinux/linux/blob/e2e1930a9595bffafad92cec2b5504525efb9cd4/drivers/iommu/apple-dart.c#L257 <-- that thing here

plus ›