12-29-2021, 05:46 PM
(12-29-2021, 04:47 PM)djonathan Wrote: @scanboy , were you able to get the device to enumerate?
I am running a Debian 5.15 kernel that does not have USB_OTG or device-tree OVERLAY enabled. The original device-tree has dr_mode="host", so:
- on the running system I edited and replaced the dtb so that dr_mode="peripheral"
- I can set up the configfs /sys/kernel/config/usb_gadget/g1/ with files according to recipes for enabling RNDIS
- /sys/class/udc has content, so I no longer get the "could not find an available udc" complaint
- modprobe what look like the right drivers, and I see the kernel message g_ether gadget: g_ether ready
- ip address shows usb0
I am trying to connect to a Windows 10 PC, and I get USB device not recognized when I plug in the cable, and running usbview.exe I see the real problem is FailedEnumeration.
So I think we are at the same point: the rockpro64 gadget is not responding to enumeration requests.
I was pretty much stuck at the same point you are, no matter what I changed in configfs, it didn't seemed to matter which made me think that dt overlay is necessary. I haven't had much time to mess with this lately, the last thing I did was trying to recompile the kernel to include dt overlay, but failed, haven't had time to look into it.