#asahi-dev · 2024-02-12 02:12
nicolas17or rather, from 0x690200000; I changed devno to 1 as a test which didn't work either#asahi-dev · 2024-02-12 02:08
nicolas17it's failing to read from 0x690100000#asahi-dev · 2024-02-12 01:26
nicolas17my troubleshooting is severely limited by my lack of understanding of what I am doing#asahi-dev · 2024-02-11 23:54
nicolas17is there any m1n1 shell command to pretty-print the device tree?#asahi-dev · 2024-02-11 23:35
nicolas17maybe someone else can try it, perhaps on M1?#asahi-dev · 2024-02-11 23:12
nicolas17I haven't seen DannnyB on IRC since december ._.#asahi-dev · 2024-02-11 23:07
j`eyDannyB: have you run trace_wlan.py on m2?#asahi-dev · 2024-02-11 23:06
j`eynope sorry#asahi-dev · 2024-02-11 23:06
nicolas17j`ey: any idea on what this exception is?#asahi-dev · 2024-02-11 22:13
nicolas17no, this file was last modified on october 2023, surely it supports M2...#asahi-dev · 2024-02-11 22:11
nicolas17perhaps there's some hardcoded address for M1 and I'm on M2?#asahi-dev · 2024-02-11 22:10
nicolas17https://paste.rs/qpwBV.txt#asahi-dev · 2024-02-11 22:10
nicolas17this throws an exception#asahi-dev · 2024-02-11 22:09
nicolas17M1N1DEVICE=/dev/ttyACM0 python3 proxyclient/tools/run_guest.py -m proxyclient/hv/trace_wlan.py /tmp/kernel.macho -- "debug=0x14e serial=3 apcie=0xfffffffe -enable-kprintf-spam wdt=-1 clpc=0"#asahi-dev · 2024-02-11 21:59
nicolas17I'm curious what's up with that kernelcache thing, did Apple change the format? is the file in Preboot/.../com.apple.kernelcaches/kernelcache different from the one in the ipsw?#asahi-dev · 2024-02-11 21:59
nicolas17okay, boot was noticeably slower but it WORKS :D#asahi-dev · 2024-02-11 21:58
j`eyfb_improve_log() :D#asahi-dev · 2024-02-11 21:57
nicolas17why the heck is the boot logo rainbow, lol#asahi-dev · 2024-02-11 21:57
nicolas17it seems to be booting#asahi-dev · 2024-02-11 21:54
nicolas17looks like `img4tool -e -o kernel.macho kernelcache` works directly?#asahi-dev · 2024-02-11 21:52
nicolas17janneg: I extracted kernelcache.release.mac14g from the OTA zip, then ran 'img4tool -e -p out.im4p kernelcache', and it fails with "Not an IMG4 file"#asahi-dev · 2024-02-11 21:17
nicolas17https://social.treehouse.systems/@sam@trapped.genoq.org/111914395974293819 -> https://github.com/tihmstar/libgeneral#asahi-dev · 2024-02-11 21:07
nicolas17got it#asahi-dev · 2024-02-11 21:06
nicolas17I guess I could grab the kernelcache from the ipsw but I don't remember what build I'm running#asahi-dev · 2024-02-11 21:06
jannegnicolas17: you can extract the kernel from the ipsw#asahi-dev · 2024-02-11 21:04
nicolas17"Running the stock macOS kernel from a macOS install: step 1. boot into macOS" welp I broke that by configuring m1n1 as boot object so I guess I have to kinda start over#asahi-dev · 2024-02-11 21:04
j`eywas just an example of reading a sysreg :P#asahi-dev · 2024-02-11 21:03
j`eyyour last exception was a syscall apparently#asahi-dev · 2024-02-11 21:02
nicolas17what does that mean :D#asahi-dev · 2024-02-11 21:02
j`eynice#asahi-dev · 2024-02-11 21:02
nicolas170x56000007#asahi-dev · 2024-02-11 21:02
j`eyyea#asahi-dev · 2024-02-11 21:02
j`eymrs(ESR_EL1)#asahi-dev · 2024-02-11 21:02
nicolas17mrs?#asahi-dev · 2024-02-11 21:02
j`eyerr#asahi-dev · 2024-02-11 21:02
nicolas17TypeError: msr() missing 1 required positional argument: 'val'#asahi-dev · 2024-02-11 21:01
j`eynicolas17: msr(ESR_EL1)#asahi-dev · 2024-02-11 21:01
j`eynicolas17: wee!#asahi-dev · 2024-02-11 21:01
leio(as /dev/m1n1 and co)#asahi-dev · 2024-02-11 21:01
nicolas17I has a shell :3#asahi-dev · 2024-02-11 21:00
j`eyif you use the udev rule it works automagically#asahi-dev · 2024-02-11 20:59
j`eyyep#asahi-dev · 2024-02-11 20:59
nicolas17j`ey: and pass it via M1N1DEVICE? (found it in the source code, didn't see it mentioned in any docs)#asahi-dev · 2024-02-11 20:53
nicolas17needs to figure out where the heck his USB-C cable got tangled after unplugging it from the charger#asahi-dev · 2024-02-11 20:52
j`eyyou need to figure out what /dev/tty* is m1n1 (or look / use the udev rules in m1n1/udev/)#asahi-dev · 2024-02-11 20:51
j`eypython3.9 proxyclient/tools/shell.py#asahi-dev · 2024-02-11 20:51
nicolas17okay, I now have a non-functional macOS boot entry because it starts into m1n1 instead :) time to figure out the proxyclient#asahi-dev · 2024-02-11 20:49
nicolas17ah good#asahi-dev · 2024-02-11 20:48
jannegrestore security to reduced or full with bputil#asahi-dev · 2024-02-11 20:46
nicolas17hm wait, after I run "kmutil configure-boot -c build/m1n1.bin", how do I undo that and go back to booting the kernel directly?