#asahi · 2021-10-15 16:03
marcankov: so if you want to update the m1n1 submodule in your installer and rebuild that (you can just copy it over and kmutil it, see what step2.sh does; no need to rerun the whole installer), that might fix the gzip decompression thing without breaking anything else#asahi · 2021-10-15 16:02
marcanand it's just leftover#asahi · 2021-10-15 16:02
marcanbut not here#asahi · 2021-10-15 16:02
marcansven: I bet it's locked because on some *other* platform, iPhone or whatever, this matters and the DCP firmware is locked#asahi · 2021-10-15 16:01
marcannow dcp.py works again#asahi · 2021-10-15 16:01
marcansven: pushed a thing to unmap only the TZ regions#asahi · 2021-10-15 15:45
marcanI guess this is arm-io/mcc.reg[1]#asahi · 2021-10-15 15:43
marcantz3 I guess?#asahi · 2021-10-15 15:43
marcanso that's ANS#asahi · 2021-10-15 15:43
marcanhmm#asahi · 2021-10-15 15:43
marcan0x1e6e64000#asahi · 2021-10-15 15:43
marcan>>> read32(0x2000006d0) << 12#asahi · 2021-10-15 15:42
marcando you see ANS around that reg range?#asahi · 2021-10-15 15:37
marcanso far the best idea I have is "region-id-2, region-id-4, region-id-5" in the carveout map (that's ANS and the two SEP ones)... but I'm not sure if that's stable...#asahi · 2021-10-15 15:34
marcanbasically I'm trying to figure out what ranges SError, and avoid mapping *just* those#asahi · 2021-10-15 15:34
marcanyeah#asahi · 2021-10-15 15:34
marcanthat's SEP#asahi · 2021-10-15 15:32
marcanyeah, that's it#asahi · 2021-10-15 15:32
marcanI bet that's it?#asahi · 2021-10-15 15:32
marcan region-id-4 = [0x00000009DAA38000, 0x0000000001D20000]#asahi · 2021-10-15 15:32
marcanah wait#asahi · 2021-10-15 15:29
marcanunless this changed in some update or something#asahi · 2021-10-15 15:27
marcansince that sure as heck should error out#asahi · 2021-10-15 15:27
marcannow the thing I'm left wondering is where the heck the SEP is#asahi · 2021-10-15 15:26
marcanlol#asahi · 2021-10-15 15:26
marcanwhich matches region-base, region-size in iop-ans-nub#asahi · 2021-10-15 15:26
marcanthat's the range that SErrors#asahi · 2021-10-15 15:26
marcan region-id-2 = [0x00000009E6E64000, 0x0000000019000000]#asahi · 2021-10-15 15:26
marcanANS2 is the one that has a big region in highmem#asahi · 2021-10-15 15:25
marcanthere, I just wiped the entire firmware#asahi · 2021-10-15 15:25
marcan>>> #asahi · 2021-10-15 15:25
marcan>>> memset32(0x08001e4000, 0, 0x55ca0e)#asahi · 2021-10-15 15:24
marcanpretty sure I can write to code too#asahi · 2021-10-15 15:24
marcangood question, lol#asahi · 2021-10-15 15:23
marcanso I guess we can fix DCP bugs after all :D#asahi · 2021-10-15 15:23
marcanhttps://mrcn.st/p/MJVyya0W#asahi · 2021-10-15 15:23
marcan(that one SErrors)#asahi · 2021-10-15 15:23
marcanthe only ASC range that is protected, that I can find, is the ANS2 thing in highmem#asahi · 2021-10-15 15:23
marcanand it works.#asahi · 2021-10-15 15:23
marcansven: umm... I can not only *read* the DCP firmware, I can *write* it too#asahi · 2021-10-15 14:56
marcanavoids having to manually map everything up there from now on#asahi · 2021-10-15 14:56
marcanI wonder if I can somehow figure out the proper top of mem boundary where things are unmapped, not just what the boot args says is the top of normal RAM...#asahi · 2021-10-15 14:55
marcan(that won't change regardless)#asahi · 2021-10-15 14:55
marcanyou could chainload it without the tinf stuff, but you still need to figure out the compiler issue there#asahi · 2021-10-15 14:54
marcanthough I probably just broke dcp.py and other things :-)#asahi · 2021-10-15 14:53
marcanit could be CPU speculation causing this#asahi · 2021-10-15 14:53
marcanactually, you know what... this might actually be fixed by the same m1n1 change that I just pushed?#asahi · 2021-10-15 14:52
marcanI wonder if this is some kind of relocation issue#asahi · 2021-10-15 14:50
marcan(with elf and object files)#asahi · 2021-10-15 14:50
marcanif you can just package up the entire m1n1 directory from that, that would be useful