yay, progress. (by other people in the mainline community, I’m just enabling sections in devicetree files and building and testing.)
So, if you’ve built a kernel, and you think it should work, but you’re getting errors in syslog that look like this…
Jan 1 00:00:28 linaro-developer kernel: usb 2-1: new full-speed USB device number 3 using dwc2 usb 2-1: device v1a86 p7523 is not supported usb usb2-port1: unable to enumerate USB device Jan 1 00:00:29 linaro-developer kernel: usb 2-1: device v1a86 p7523 is not supported Jan 1 00:00:29 linaro-developer kernel: usb usb2-port1: unable to enumerate USB device Jan 1 00:00:59 linaro-developer kernel: usb 2-1: new high-speed USB device number 4 using dwc2 usb 2-1: device v0fce p5171 is not supported usb usb2-port1: unable to enumerate USB device Jan 1 00:01:52 linaro-developer kernel: usb 2-1: Dual-Role OTG device on HNP port Jan 1 00:01:52 linaro-developer kernel: usb 2-1: device v0fce p5171 is not supported Jan 1 00:01:52 linaro-developer kernel: usb usb2-port1: unable to enumerate USB device
This is actually a problem with your USB OTG config. Make sure that both CONFIG_USB_OTG_WHITELIST
and CONFIG_USB_OTG_FSM
are not set
A quick rebuild and reflash and presto…
Jan 1 00:00:32 linaro-developer kernel: usb 2-1: new full-speed USB device number 2 using dwc2 usb 2-1: device v1a86 p7523 is not supported Jan 1 00:00:32 linaro-developer kernel: usb 2-1: device v1a86 p7523 is not supported Jan 1 00:00:32 linaro-developer kernel: ch341 2-1:1.0: ch341-uart converter detected Jan 1 00:00:32 linaro-developer kernel: usb 2-1: ch341-uart converter now attached to ttyUSB0
It’s still “not supported”, but I’m led to believe that means it’s not supported as a gadget in some manner.
The only additions to the device tree for the minix board were…
&usb_host { status = "okay"; }; &usb_otg { status = "okay"; };
Unfortunately, “only” these additions means there’s no power control for vbus. So the usb devices only work on the second port, if you have the funky A-A recovery cable plugged into the dual mode OTG/Host port used for recovery. Working out more pins is an ongoing project.
Thanks as always to the kindly people of #linux-rockchip
Leave a Comment