#asahi · 2021-07-04 01:06
kfischermarcan: Alright, I’ve made some progress here. With the dart/dev branch and a dumb USB-C -> USB-A dongle, USB host works fine. Then with a slight modification to the device tree, I can also enable usb device mode and load the ethernet gadget in such a way that it shows up on the host as a USB device. No luck convincing macOS to actually load an ethernet driver for it though#asahi · 2021-07-03 02:59
kfischerAlright, may pick one of those up tomorrow - will let you know how it goes#asahi · 2021-07-03 02:53
kfischeryeah#asahi · 2021-07-03 02:52
kfischerbut I can probably find one#asahi · 2021-07-03 02:52
kfischerI don’t think I have an appropriate cable that goes that way around#asahi · 2021-07-03 02:51
kfischermight require thunderbolt#asahi · 2021-07-03 02:51
kfischerCaldigit dock#asahi · 2021-07-03 02:51
kfischerI don’t have a USB-C keyboard#asahi · 2021-07-03 02:50
kfischerwell, type C to dock to USB keyboard#asahi · 2021-07-03 02:50
kfischeryes, tried that#asahi · 2021-07-03 02:49
kfischerOn sven’s branch I managed to get it to recognize the USB controller, but no luck on getting any input or enabling the USB g_serial gadget#asahi · 2021-07-03 02:47
kfischerfair enough. I was hoping to run some fairly standalone userspace code to see if some oddities I’m seeing are a chip artifact or an os artifact :)#asahi · 2021-07-03 02:47
kfischerah#asahi · 2021-07-03 02:46
kfischermarcan: yeah, I reached that conclusion. Do you have a recommended config for getting a working linux shell while using the usb gadget serial?#asahi · 2021-07-03 02:44
kfischerAlright, I might try that at some point#asahi · 2021-07-03 02:36
kfischerOk, that’s doing something. How do I pass boot cmdline to the kernel?#asahi · 2021-07-03 02:29
kfischerthanks for your help#asahi · 2021-07-03 02:28
kfischeralright, let’s call that the last experiment of the night :)#asahi · 2021-07-03 02:28
kfischernot sure if I ever tried that configuration#asahi · 2021-07-03 02:28
kfischerperhaps it’s tearing that down when the kernel starts up#asahi · 2021-07-03 02:27
kfischermaybe I should go back to the kernel without dwc3 driver#asahi · 2021-07-03 02:27
kfischeramw: Anyway, for me that doesn’t happen, it just dies#asahi · 2021-07-03 02:26
kfischeramw: Oh, I see. I was expecting linux console syslog spew :)#asahi · 2021-07-03 02:19
kfischerAnyway, I think I’m done for the day#asahi · 2021-07-03 02:17
kfischeramw: I get the same output on the other serial, but that’s all m1n1, not Linux, as soon as Linux actually boots, both serials die (as in your output)#asahi · 2021-07-03 02:10
kfischerAlright, that’s the rev I’m using (no chainload, that’s the booting one), so something is off :/#asahi · 2021-07-03 01:58
kfischeramw: Hmm, ok, which version of m1n1 are you using? #asahi · 2021-07-03 01:53
kfischerHmm, managed to get the g_serial driver to load by forcing the dwc3 into gadget mode, but it doesn’t actually show up on the host#asahi · 2021-07-03 01:48
kfischerTo close the loop on the Linux gadget, it complains “couldn't find an available UDC”, no idea what that is, but it didn’t work#asahi · 2021-07-03 01:47
kfischer:shrug: that’s that I expected, but they’re definitely gone#asahi · 2021-07-03 01:45
kfischerYeah, they’re both gone, even with run_guest.py#asahi · 2021-07-03 01:44
kfischerlet me try again and make sure#asahi · 2021-07-03 01:43
kfischerno, both serials disappear as soon as Linux takes over#asahi · 2021-07-03 01:37
kfischercurrently trying to see if the gadget console will work#asahi · 2021-07-03 01:37
kfischerYeah, I built that and enabled dwc3 support in the .config, which enumerates the USB controller, but doesn’t detect a USB HID keyboard yet#asahi · 2021-07-03 01:28
kfischeramw: I tried both#asahi · 2021-07-02 23:54
kfischerHi all, I’ve got m1n1 running and a kernel booting to prompt. I was using the USB gadget serial for talking to m1n1, but of course that goes away when Linux boots. The boot kernel doesn’t seem to support the USB HID that’s connected, so I have no I/O. What’s the recommended way to get a serial in this setup?