#
✕ nick:svenpeter[m]
#asahi · 2026-01-12 15:10
svenpeter[m]where often here means “whenever printf debugging doesn’t cut it anymore and I remember that real debuggers exist” ;)
#asahi · 2026-01-12 15:10
svenpeter[m]what I often do is hvc or breakpoint at a known good location and then single step and see what’s going on
#asahi · 2026-01-12 13:53
svenpeter[m]the hv should also support single stepping and breakpoints
#asahi · 2026-01-11 21:19
svenpeter[m]then enabling serial and all pmgr debug flags might be a good start to understand how pmgr works on m4+
#asahi · 2026-01-11 21:18
svenpeter[m]good to know!
#asahi · 2026-01-11 21:09
svenpeter[m]with mac or tuxvdmtool or a central scrutinizer
#asahi · 2026-01-11 21:08
svenpeter[m]i'm not talking about serial via usb, i'm talking about hardware UART
#asahi · 2026-01-11 21:08
svenpeter[m]so looks like you can set arbitrary boot args but getting serial output is a bit more annoying now
#asahi · 2026-01-11 21:08
svenpeter[m]huh, https://gist.github.com/dhinakg/3fcd9ad43c82c96964b4f64eb05e6a5e
#asahi · 2026-01-11 21:06
svenpeter[m]i assume you have hardware serial
#asahi · 2026-01-11 21:05
svenpeter[m]can we actually set arbitrary boot flags with reduced security from 1tr? i've never tried and only used the hv so far
#asahi · 2026-01-11 21:05
svenpeter[m]oh, true, totally forgot about that one 😄
#asahi · 2026-01-11 21:03
svenpeter[m]might even be one of those rare situation where someone needs to disassemble xnu (or pmgr.kext) and see what it does differently on m4
#asahi · 2026-01-11 21:03
svenpeter[m]i don't think anyone knows
#asahi · 2026-01-11 20:56
svenpeter[m]possibly, all we know is that the ADT no longer has the references to the old PMGR power domains
#asahi · 2026-01-11 20:00
svenpeter[m]it works but can’t do much
#asahi · 2021-09-23 11:44
svenpeter[m]Never worked more than once for me
#asahi · 2021-09-23 11:44
svenpeter[m]Lol
#asahi · 2021-09-23 11:39
svenpeter[m]:D
#asahi · 2021-09-23 11:38
svenpeter[m]Because at least in m1n1 hot plugging works exactly once
#asahi · 2021-09-23 11:38
svenpeter[m]Did it work again afterwards?
#asahi · 2021-09-23 11:38
svenpeter[m]I disabled the interrupts for the smc and it still didn’t work fwiw
#asahi · 2021-08-12 17:32
svenpeter[m]j_ey: BIT(1) | BIT(3) maybe?
#asahi · 2021-08-07 16:15
svenpeter[m]It didn’t emulate interrupts last time I checked
#asahi · 2021-08-07 16:14
svenpeter[m]But I still think that the uart emulated in the HV is not enough for Linux
#asahi · 2021-08-07 16:14
svenpeter[m]Yes
#asahi · 2021-08-07 16:13
svenpeter[m]Ah, I’ve never done that. No idea what’s wrong then
#asahi · 2021-08-07 16:11
svenpeter[m]I don’t think the hv emulates the uart interface enough for Linux to use it fwiw
#asahi · 2021-08-07 16:10
svenpeter[m]Do you have a hardware uart?
#asahi · 2021-08-07 16:10
svenpeter[m]Not at home right now
#asahi · 2021-08-07 16:09
svenpeter[m]It’ll switch to uart after sending the boot request over usb then
#asahi · 2021-08-07 16:09
svenpeter[m]*.py
#asahi · 2021-08-07 16:09
svenpeter[m]Linux.oh
#asahi · 2021-08-07 16:08
svenpeter[m]But I run uart and usb over a single cable. I believe you have to pass the uart node with -t
#asahi · 2021-08-07 16:07
svenpeter[m]I’m just guessing here fwiw :)
#asahi · 2021-08-07 15:53
svenpeter[m]It shouldn’t fail with an exception but if your OS does something weird that might happen
#asahi · 2021-08-07 15:46
svenpeter[m]Did you boot over usb? Because that USB port will disappear
#asahi · 2021-08-03 06:03
svenpeter[m]Try that pmgr adt enable calls with /arm-io/ans or so
#asahi · 2021-08-03 06:03
svenpeter[m]Yes it is
#asahi · 2021-08-03 05:59
svenpeter[m]Do you the nvme branch? You’ll have to manually enable the clocks for the ANS node then before booting
#asahi · 2021-08-03 05:58
svenpeter[m]That serror is because a clock is not enabled
#asahi · 2021-08-01 12:09
svenpeter[m]I don’t shut it down cleanly yet either fwiw
#asahi · 2021-08-01 10:57
svenpeter[m]Happy to get your opinion what should be a mailbox, what should be a remoteproc and what should be something entirely else
#asahi · 2021-08-01 10:30
svenpeter[m]But the stuff we discussed above kinda applies to everything that runs RTKit
#asahi · 2021-08-01 10:29
svenpeter[m]I’m not gonna touch DCP
#asahi · 2021-08-01 09:48
svenpeter[m]Because we need to do something similar to „boot“ (the whole syslog,… stuff)
#asahi · 2021-08-01 09:47
svenpeter[m]But yeah, something I need to discuss with people who actually know these subsystems :)
#asahi · 2021-08-01 09:47
svenpeter[m]We could just initialize the state to _DETACHED and then it won’t try to boot the thing
#asahi · 2021-07-30 18:41
svenpeter[m]Was that on a MacBook or a Mac mini or both btw?
#asahi · 2021-07-22 18:02
svenpeter[m]It also needs two more blobs that are essentially hashes of iBoot,etc. which are definitely paired to the machine

plus ›