#asahi-dev · 2026-07-18 22:29
enverbalalicthis dies before ever printing to the framebuffer#asahi-dev · 2026-07-18 22:29
enverbalalichmmm#asahi-dev · 2026-07-18 21:50
enverbalalicyou want the m1n1 dump adt for 6041 or no ?#asahi-dev · 2026-07-18 21:48
enverbalalicwell, i lurk here daily and kb is the only hope to getting dc here, so whatever you need, tag me#asahi-dev · 2026-07-18 21:28
enverbalalicyeah, when i tried shoehorning earlycon into it i realized that...#asahi-dev · 2026-07-18 21:27
enverbalalicdriver didn't even have earlycon IIRC#asahi-dev · 2026-07-18 21:27
enverbalalicFYI#asahi-dev · 2026-07-18 21:27
enverbalalicintegralpilot earlycon didnt work either, just ttyDC and a straight echo to it#asahi-dev · 2026-07-18 21:26
enverbalalicdata config irq vs irq config data#asahi-dev · 2026-07-18 21:26
enverbalalicit is the same, you just have reg-names in different order#asahi-dev · 2026-07-18 21:25
enverbalalic0x5 0x0880c000 did#asahi-dev · 2026-07-18 21:25
enverbalalicthat didn't, that was me experimenting#asahi-dev · 2026-07-18 21:22
enverbalalicmtp-hid is 99.9% wrong, i have no idea where those coproc reg addresses come from#asahi-dev · 2026-07-18 21:22
enverbalalichttps://pastebin.com/4ye3tsfH#asahi-dev · 2026-07-18 21:17
enverbalalicbut that one also had mailboxes and stuff in the dtb#asahi-dev · 2026-07-18 21:17
enverbalalicthinking about it, when i tried integralchaos' dockchannel driver, that one did create ttyDC, and could output to my other device, but had the FIFO issue where just one message went through#asahi-dev · 2026-07-18 21:16
enverbalalicyeah node name does nothing#asahi-dev · 2026-07-18 21:14
enverbalalici can send you the ADT for it if you need it#asahi-dev · 2026-07-18 21:13
enverbalalicchanges the serial1: dockchannel-uart address ?#asahi-dev · 2026-07-18 21:10
enverbalalicbased off your existing work for dchid on one of your branches#asahi-dev · 2026-07-18 21:10
enverbalalicsee, i had the same thought about keyboard a week ago, got nowhere with that either#asahi-dev · 2026-07-18 21:10
enverbalalici have initrd to be able to do dmesg on init to dump the initial stuff#asahi-dev · 2026-07-18 21:09
enverbalalicyeah but without initrd the first output on framebuffer is very late in boot, i don't see any early stuff#asahi-dev · 2026-07-18 21:08
enverbalalici have a working framebuffer and i point an iphone camera in slow-mo mode at the screen when it boots to read dmesg #asahi-dev · 2026-07-18 21:08
enverbalalicno, that's why i'm stuck in this hell in the first place#asahi-dev · 2026-07-18 21:07
enverbalalicconfig is always [0] and irq is always [1] ?#asahi-dev · 2026-07-18 21:06
enverbalalichow are these regs figured out exactly ? looking at the ADT, 0x508828000 (config in dts) maps to dockchannel-uart[0], 0x50880c000 (irq in dts) maps to dockchannel-uart[1] and this 0x50882c000 (data)\ doesn't map to anything in the ADT#asahi-dev · 2026-07-18 21:04
enverbalalici tried all the regs already :(#asahi-dev · 2026-07-18 21:03
enverbalalic`console=tty0 loglevel=8 nokaslr idle=nop maxcpus=1 debug init=/init`, tried with `earlycon=dockchannel,mmio32,0x508828000 as well`#asahi-dev · 2026-07-18 21:03
enverbalalicwell i'm not sure what could even be breaking it at this point, regs in t6040.dtsi match what i'm seeing in the ADT, AIC matches what i'm seeing in the ADT, linux boots to shell, doesn't freeze#asahi-dev · 2026-07-18 21:00
enverbalalict6040 dtsi from your dcuart-t8142 branch#asahi-dev · 2026-07-18 21:00
enverbalalichttps://pastebin.com/dSQW2n8e#asahi-dev · 2026-07-18 21:00
enverbalalickernel config has CONFIG_SERIAL_APPLE_DOCKCHANNEL and CONFIG_SERIAL_APPLE_DOCKCHANNEL_EARLYCON, direct includes, not modules#asahi-dev · 2026-07-18 20:59
enverbalalicmy own device tree, based off an existing one for m4 mini basically just changing the model, chassis-type, etc, including t6040.dtsi (with changed IRQ num) and enabling serial1#asahi-dev · 2026-07-18 20:57
enverbalalici did disable pcie and dapf init in m1n1 (didn't figure it out for t6041), could that be breaking it ?#asahi-dev · 2026-07-18 20:57
enverbalalic #asahi-dev · 2026-07-18 20:57
enverbalalici'm starting to thing that i'm cursed... tried yuka's dockchannel_irq experiment, interrupt really is different then ADT on t6041 (360 vs 816), but linux doesn't wanna use it, doesn't even create the ttyDC device, no earlycon. is there any m1n1 support needed for it if i do macvdmtool reboot debugusb - i can see m1n1's debugusb output, iBoot's output#asahi-dev · 2026-07-06 21:43
enverbalalicok same as i found, dtsi says second reg-names is coproc-sram, but how that address is figured out i have no idea#asahi-dev · 2026-07-06 21:38
enverbalalicwhat does 0x2fa400000 and 0x2fac00000 map to#asahi-dev · 2026-07-06 21:37
enverbalaliclive please#asahi-dev · 2026-07-06 21:36
enverbalaliccan someone sahre a m1n1 dtb dump from a m3 please#asahi-dev · 2026-07-06 00:23
enverbalalici just do img4tool to get the bin, and then run m1n1.adt on them#asahi-dev · 2026-07-06 00:18
enverbalalicyeah it's gonna miss the stuff iboot prefills, but hopefully what i'm doing doesn't need that#asahi-dev · 2026-07-06 00:17
enverbalalicoh...my...god, i completely forgot bin adts are in the macos installation package...#asahi-dev · 2026-07-05 23:38
enverbalalicthere's probably a licensing thing about distributing adts i guess#asahi-dev · 2026-07-05 23:37
enverbalalicor if the linux dts just decided that sorting them by order is prettier and just write the driver to expect them that way#asahi-dev · 2026-07-05 23:37
enverbalalicthe linux dts has only 1 reg, it would be nice to be able to open the t8122 adt, look for which reg number that maps on the adt, and then map the same reg num on t6040 adt. also same thing with interrupts, mtp interrupt ordering is different between dts and adt, dts is ascending order, adt is mixed. idk if the adt on t8122 also has them in the same order as linux#asahi-dev · 2026-07-05 23:36
enverbalaliccould we have a git repo with raw dumps of adt's from all the various chips ? what's currently being a pain for me is figuring out which regs on the dts for a certain chip correspond to regs on the adt side. for example i'm looking at the t8122 dts from integralpilot and trying to use the same dc-hid stuff for t6040. looking at dart-mtp on the adt has 3 regs#asahi-dev · 2026-07-04 22:45
enverbalalicyuka: which issue of uart does writel fix ? if it's the hanging after 1 message part, that's still present on 6041#asahi-dev · 2026-07-03 22:33
enverbalalicwait if i'm understanding this correctly - with what jannau did for m1n1 to self-enter debugusb and a linux driver to dump earlycon to it, i can get debugusb output on a normal PC ? is there any existing docs for that ? no tuxvdmtool