#
#asahi-dev · 2023-05-01 10:58
chadmedim going to update the wiki, it still says no raw bins :/
#asahi-dev · 2023-05-01 10:56
chadmedyeah i didnt realise we had raw binary support until ~5 minutes ago
#asahi-dev · 2023-05-01 10:56
chadmedoh yup yup that'd do it
#asahi-dev · 2023-05-01 10:56
marcan(please don't use mach-o any more)
#asahi-dev · 2023-05-01 10:56
marcankernel's probably missing the last few megabytes or something
#asahi-dev · 2023-05-01 10:56
marcana 68MB mach-o when the max mach-o payload size is 64MB in the linker script
#asahi-dev · 2023-05-01 10:55
marcanwell there's your problem
#asahi-dev · 2023-05-01 10:54
chadmedhttps://chadmed.au/sadpayload.macho
#asahi-dev · 2023-05-01 10:52
marcanokay but I need the binary if I'm going to try to disassemble it to figure out what it's doing :p
#asahi-dev · 2023-05-01 10:51
chadmedtheres nothing special about it, just m1n1 at HEAD, earlycon and debug in chosen.bootargs, the j474s dtb from asahi-wip, the debian netinstaller, then Image from asahi-wip with everything built in
#asahi-dev · 2023-05-01 10:49
marcan(the payload binary)
#asahi-dev · 2023-05-01 10:49
marcanif you send it to me I can try to make sense of it
#asahi-dev · 2023-05-01 10:49
marcanoh, like you made the payload yourself?
#asahi-dev · 2023-05-01 10:48
chadmedit works with run_guest_kernel.sh though so probably something up with the payload
#asahi-dev · 2023-05-01 10:47
chadmedyeah its in chosen.bootargs for that payload
#asahi-dev · 2023-05-01 10:46
marcanare you using earlycon?
#asahi-dev · 2023-05-01 10:46
chadmedoh right, interesting
#asahi-dev · 2023-05-01 10:45
marcanbut probably in the kernel before it installs its own exception handlers, so it goes back to m1n1
#asahi-dev · 2023-05-01 10:45
marcanand not in m1n1
#asahi-dev · 2023-05-01 10:45
marcanthat's a NULL deref
#asahi-dev · 2023-05-01 10:45
chadmedfrom the guest console: https://tpaste.us/z5ga
#asahi-dev · 2023-05-01 10:44
marcanthere are very few commits to the good commit so it should be very obvious what is wrong from the guest exception
#asahi-dev · 2023-05-01 10:38
marcanthe guest exception would cause a panic which then triggers the hvc
#asahi-dev · 2023-05-01 10:37
marcancan you paste the guest exception?
#asahi-dev · 2023-05-01 10:37
marcanonly the HV would catch that
#asahi-dev · 2023-05-01 10:37
marcanyeah but it can't be that same exception because it's an hvc
#asahi-dev · 2023-05-01 10:37
chadmedit's the m1n1 at the front of the guest payload throwing it before the kernel starts printing at all
#asahi-dev · 2023-05-01 10:36
marcanchadmed: same exception from the guest in the vUART?
#asahi-dev · 2023-05-01 10:36
marcanremember we don't guarantee ABI compat for the uart protocol, I only actively try to keep chainload.py working
#asahi-dev · 2023-05-01 10:36
chadmedodd, nothing in the console except that same exception after trying to jump to the kernel
#asahi-dev · 2023-05-01 10:35
marcanyeah, it would :p
#asahi-dev · 2023-05-01 10:35
mazmarcan: my scripts are based on a m1n1 version that is about 2 year old... that might explain why.
#asahi-dev · 2023-05-01 10:35
marcanprobably means m1n1 is panicking which means you should be getting a message over the vUART
#asahi-dev · 2023-05-01 10:35
marcanchadmed: um, that hvc is a reboot() call
#asahi-dev · 2023-05-01 10:33
marcanI haven't had to manually invoke that reset script in a looooong time :)
#asahi-dev · 2023-05-01 10:32
marcanmaz: m1n1.setup already does the PMU counter reset, so almost all m1n1 scripts automatically do it, including chainload.py
#asahi-dev · 2023-05-01 10:01
maz+1.
#asahi-dev · 2023-05-01 10:01
kettenisyeah, that'd make sense
#asahi-dev · 2023-05-01 10:00
jannauone could argue that chainload.py should reset the counter. when chainload runs the system obviously booted successfully to m1n1's proxymode
#asahi-dev · 2023-05-01 09:54
mazagreed. this is more specific to my own use case where I'm not quite in a position to boot the OS yet, and having to fish for keyboard/mouse every 20 minutes is driving me potty.
#asahi-dev · 2023-05-01 09:50
ketteniswe probably wouldn't want u-boot to do this by default anyway
#asahi-dev · 2023-05-01 09:50
mazlife*
#asahi-dev · 2023-05-01 09:50
mazthis machine is likely to be tethered for the rest of its like anyway.
#asahi-dev · 2023-05-01 09:49
mazyeah, figured out that it is way easier to add this to my chainload script and forget about it.
#asahi-dev · 2023-05-01 09:48
kettenisdoing this in u-boot would involve writing an spmi driver
#asahi-dev · 2023-05-01 09:46
jannaumaz: proxyclient/tools/reset_panic_counter.py shoould be executable from proxyclient
#asahi-dev · 2023-05-01 09:05
mazawesome, thanks!
#asahi-dev · 2023-05-01 09:02
j`eyreset_panic_counter(self):
#asahi-dev · 2023-05-01 09:01
j`eyproxyclient/m1n1/hw/pmu.py in m1n1
#asahi-dev · 2023-05-01 09:01
j`eypmu

plus ›