#
#asahi-dev · 2025-03-30 17:51
mischa85i even disabled fb and display
#asahi-dev · 2025-03-30 17:51
mischa85i'll try baking a new one from the git. it's such a minimal setup right now anyway
#asahi-dev · 2025-03-30 17:49
mischa85hmmm. not at hand but i have one i can borrow for that
#asahi-dev · 2025-03-30 17:48
svendo you have access to a m1/m2 and can run your hacked m1n1 there and see what happens?
#asahi-dev · 2025-03-30 17:40
alyssaprobably does
#asahi-dev · 2025-03-30 17:36
mischa85regs[4] contain the address being jumped to everytime. it almost seems like it fails at the very first instruction
#asahi-dev · 2025-03-30 17:33
svendo you know if you can even execute a single instruction while running the hv successfully?
#asahi-dev · 2025-03-30 17:29
mischa85also: PMU(u).reset_panic_counter() doesn't work: https://gist.github.com/mischa85/9ea6d1a3354508b875e6a272cbe04b11
#asahi-dev · 2025-03-30 16:45
mischa85i feel so close to booting but i feel stuck
#asahi-dev · 2025-03-30 16:45
mischa85anybody has any clue what direction i should be looking? sprr/gxf? pmgr? vmkeylo/hi?
#asahi-dev · 2025-03-30 11:49
mischa85almost right after hv_start it throws Exception: FIQ
#asahi-dev · 2025-03-30 11:47
mischa85https://gist.github.com/mischa85/bbb642c040602eca9db43637e5eb599f
#asahi-dev · 2025-03-30 11:46
mischa85trying to run m1n1.macho as guest crashes in the same way
#asahi-dev · 2025-03-30 10:34
mischa85not yet, i'll try
#asahi-dev · 2025-03-30 10:32
svenhave you already tried a simpler payload as a guest, e.g. just m1n1 again?
#asahi-dev · 2025-03-30 10:30
mischa85i'll just try to the 110mbyte development kernel. 115200 ouch
#asahi-dev · 2025-03-30 09:37
mischa85chaoss_princess mentioned amx probably not being part of m4 anymore due to sme, so that's one reg accounted for
#asahi-dev · 2025-03-30 09:26
svenyeah, they'd still need to support modified xnu kernels for people writing kexts, etc.
#asahi-dev · 2025-03-30 09:25
jannauI wonder how apple would do that. I would assume the features/regs are not be disabled for custom darwin kernels with permissive security
#asahi-dev · 2025-03-30 09:23
jannauprobably defaults / everything disabled
#asahi-dev · 2025-03-30 09:22
mischa85sven: they all return 0x0 tho
#asahi-dev · 2025-03-30 09:18
svenugh, that sounds like apple locked those down inside iboot already
#asahi-dev · 2025-03-30 09:18
mischa85to be totally clear, they are okay to read, but writing fails
#asahi-dev · 2025-03-30 09:17
mischa85jannau: yes, it seems like they are
#asahi-dev · 2025-03-30 09:11
jannauare those inaccessible system regs all apple architecture extensions?
#asahi-dev · 2025-03-30 08:41
mischa85trying to see if i can make sense of why some register writes don't work and if it gives any clues why the hv fails. this happens on msr(VMKEYLO_EL2, 0x4E7672476F6E6147): https://gist.github.com/mischa85/21ba3a4cba6cb1fd4c3de44ea4e0dd55
#asahi-dev · 2025-03-29 22:21
mischa85is any of the msr() calls i took out absolutely vital? they all crash tho
#asahi-dev · 2025-03-29 21:58
mischa85but that function is extremely verbose anyway? not much printf to add there...
#asahi-dev · 2025-03-29 21:53
chaos_princesstry this one? https://github.com/AsahiLinux/m1n1/blob/5291d5c1ccee788086972dbad21ba9202be30b8d/src/exception.c#L375
#asahi-dev · 2025-03-29 21:52
mischa85it doesn't log anything from either
#asahi-dev · 2025-03-29 21:26
mischa85doesn't hurt to do both i guess
#asahi-dev · 2025-03-29 21:26
mischa85proooobably hv_exc_fiq()
#asahi-dev · 2025-03-29 21:15
mischa85hv_update_fiq() that is?
#asahi-dev · 2025-03-29 21:14
chaos_princesstime to spam printfs into the fiq handler :P
#asahi-dev · 2025-03-29 21:09
mischa85xnu
#asahi-dev · 2025-03-29 21:08
j`eyare you running xnu or linux btw?
#asahi-dev · 2025-03-29 21:06
mischa85ok i took out SYS_IMP_APL_AMX_CTL_EL2, SYS_IMP_APL_APVMKEYLO_EL2, SYS_IMP_APL_APVMKEYHI_EL2, SYS_IMP_APL_APSTS_EL12, SYS_IMP_APL_SPRR_CONFIG_EL1 and SYS_IMP_APL_GXF_CONFIG_EL1 from hv_start(). execution reaches hv_enter_guest but crashes like this: https://gist.github.com/mischa85/864fe86f35034a6bb7f1fe64965cbc62
#asahi-dev · 2025-03-29 21:01
chaos_princessi guess we will find out once the printf results return :P
#asahi-dev · 2025-03-29 21:00
j`eyso xnu started, but then somethign went wrong in the hv
#asahi-dev · 2025-03-29 21:00
j`eyit could be a exception from the hv
#asahi-dev · 2025-03-29 20:57
chaos_princess"Exception taken from EL2h" - i dont think so?
#asahi-dev · 2025-03-29 20:47
svenuh, isn’t it already somewhere inside xnu?
#asahi-dev · 2025-03-29 20:28
mischa85on it
#asahi-dev · 2025-03-29 20:26
chaos_princesstime to spam printfs after every line here? https://github.com/AsahiLinux/m1n1/blob/main/src/hv.c#L112
#asahi-dev · 2025-03-29 20:22
mischa85still sync error: https://gist.github.com/mischa85/ad2fc8d180fab0cd1244ea24b6083d13
#asahi-dev · 2025-03-29 20:22
mischa85alright a lot of the msr() calls now work, obviously. the only things commented out now are AMX_CONFIG_EL1, VMKEYLO_EL2, VMKEYHI_EL2, APSTS_EL12, SPRR_CONFIG_EL1 and GXF_CONFIG_EL1
#asahi-dev · 2025-03-29 19:22
j`eynice
#asahi-dev · 2025-03-29 19:21
mischa85which means i can now succesfully read the HCR_EL2 register
#asahi-dev · 2025-03-29 19:21
mischa85which means this did not get set: region = 0
#asahi-dev · 2025-03-29 19:20
mischa85guess what i had set: self.mmu_off = False

plus ›