#asahi-dev · 2026-01-25 12:05
pitustsven: to check how long the queue is#asahi-dev · 2026-01-25 12:05
svenmaz: there is afaict, there are also status register for how much space is left i bet#asahi-dev · 2026-01-25 12:04
svenpitust: why would you do that?#asahi-dev · 2026-01-25 12:04
mazI hope there's an interrupt associated with the RX side.#asahi-dev · 2026-01-25 12:04
pituste.g. what happens if you write 128k into dockchannel (from C and not python)#asahi-dev · 2026-01-25 12:04
svenpitust: no idea#asahi-dev · 2026-01-25 12:04
svenand then implement a small tool that just uses libusb to access that serial#asahi-dev · 2026-01-25 12:03
svenjust need to figure out an easy way to sniff usb traffic now because i can't find my usb2 sniffer anymore#asahi-dev · 2026-01-25 12:03
pitusthow long is the queue?#asahi-dev · 2026-01-25 12:03
sveni tested this on my m1#asahi-dev · 2026-01-25 12:03
svenyes!#asahi-dev · 2026-01-25 12:03
mazis this supported all the way to M1?#asahi-dev · 2026-01-25 12:02
mazit'd be awesome to be able to remove the need for extra HW (other mac or CS) for people to do early bringup, or even normal serial console.#asahi-dev · 2026-01-25 12:00
svenno idea what they are, also don't really care tbh#asahi-dev · 2026-01-25 11:59
nickchanhow about the other channels#asahi-dev · 2026-01-25 11:48
svendata is read from offset 0x401c which returns 0x0000aabb where aa is the next byte and bb the number of bytes left in the fifo#asahi-dev · 2026-01-25 11:35
svenfor c in "Hello, World!\n": write32(0x23d128000 + 0x4004, ord(c))#asahi-dev · 2026-01-25 11:35
svenso that was easy#asahi-dev · 2026-01-25 11:35
sven;-)#asahi-dev · 2026-01-25 11:35
svenHello, World!#asahi-dev · 2026-01-25 11:35
svencat /dev/cu.kis-100000-ch-0#asahi-dev · 2026-01-25 11:30
sventhere's no need for serial for that to work#asahi-dev · 2026-01-25 11:30
svenno, it doesn't#asahi-dev · 2026-01-25 11:30
nickchanat least from apple's perspective#asahi-dev · 2026-01-25 11:30
nickchanit kind of has to so iphones can restore#asahi-dev · 2026-01-25 11:30
svenso this just works with macos 26 apparently #asahi-dev · 2026-01-25 11:30
sventhere#asahi-dev · 2026-01-25 11:30
sven"/dev/cu.kis-100000-ch-0 /dev/cu.kis-100000-ch-1 /dev/cu.kis-100000-ch-2 /dev/cu.kis-100000-ch-3"#asahi-dev · 2026-01-25 11:29
svenbah#asahi-dev · 2026-01-25 11:29
sven ls /dev/cu.kis-100000-ch-*#asahi-dev · 2026-01-25 11:29
svenls /dev/cu.kis-100000-ch-*#asahi-dev · 2026-01-25 11:29
nickchanit's also possible to DFU from m1n1 running on the device since A10#asahi-dev · 2026-01-25 11:20
jannauintegralpilot: I'm still puzzled why you need `nonposted-mmio;`#asahi-dev · 2026-01-25 11:14
sventhe fun part is that you can also do this from m1n1 for the device itself, so we could just do that and get something like uart without extra hardware even for early bringup#asahi-dev · 2026-01-25 11:13
svenhttps://github.com/AsahiLinux/tuxvdmtool/commit/44682921ace2790f543554818b00e19ee87694ba ;)#asahi-dev · 2026-01-25 11:12
nickchansending {0x5ac8012, 0x824606} in macvdmtool puts machine into debug usb mode#asahi-dev · 2026-01-25 11:11
sventhere's debugusb code in libirecovery (though not serial) and there's a applekis.kext in 12.3 and 12.3.1 kernelcaches that should have support for serial #asahi-dev · 2026-01-25 11:08
nickchanshould be possible though with polling functions#asahi-dev · 2026-01-25 11:07
nickchandockchannel uart would also need to work in earlycon #asahi-dev · 2026-01-25 11:06
integralpilotno rush with this at all though, whenever works is fine. i might try my hand at some debugusb stuff too but summer holidays are ending soon so might not have as much time#asahi-dev · 2026-01-25 11:02
integralpilotsounds good, thank you for helping with this!#asahi-dev · 2026-01-25 11:02
sven*be at#asahi-dev · 2026-01-25 11:01
sveni'll bet at fosdem next weekend, so earliest probably the weekend after that#asahi-dev · 2026-01-25 11:01
svenwill have to find a keyboard and mouse to get it back to m1n1#asahi-dev · 2026-01-25 11:01
svennot sure, when i tried to speak to debugusb yesterday i somehow got my mac mini into recovery mode :D#asahi-dev · 2026-01-25 11:00
integralpilotdo you think in the short term you might get that working? then i'll focus more on generic dockchannel stuff and (if it's okay) include the much-simpler-than-HID serial stuff in the patchset as From: you because it will get dockchannel core approved much quicker that way. otherwise i'll focus on HID as well and send it in a patchset with dockchannel core#asahi-dev · 2026-01-25 10:58
sveni'll see if i can figure out how to talk to debugusb so that we see the other side of that serial#asahi-dev · 2026-01-25 10:58
svenif we're using different callbacks apple,dockchannel = ... might be better#asahi-dev · 2026-01-25 10:58
integralpilotif we're doing serial as well, it also might be easier to first upstream dockchannel & serial (which is simple), THEN upstream HID