06-27-2019, 06:18 AM
Hi,
Has anybody successfully got the RockPro64 work as USB device towards the host PC? We've followed couple of instructions how to enable USB ECM gadget but so far no luck, device is not recognized by the PC.
The dts is changed to force the usb0 as peripheral
Gadget device is correctly configured
But still no luck.
dmesg shows this so at least something is working:
Any suggestions what might be wrong?
Thanks!
Has anybody successfully got the RockPro64 work as USB device towards the host PC? We've followed couple of instructions how to enable USB ECM gadget but so far no luck, device is not recognized by the PC.
The dts is changed to force the usb0 as peripheral
Code:
usb0 {
status = "okay";
...
dwc3@fe800000 {
....
dr_mode = "peripheral";
Gadget device is correctly configured
Code:
root@rockpro64:/sys/kernel/config/usb_gadget/g1# find .
.
./os_desc
./os_desc/qw_sign
./os_desc/b_vendor_code
./os_desc/use
./strings
./strings/0x409
./strings/0x409/serialnumber
./strings/0x409/product
./strings/0x409/manufacturer
./configs
./configs/c.1
./configs/c.1/ecm.0
./configs/c.1/strings
./configs/c.1/bmAttributes
./configs/c.1/MaxPower
./functions
./functions/ecm.0
./functions/ecm.0/ifname
./functions/ecm.0/qmult
./functions/ecm.0/host_addr
./functions/ecm.0/dev_addr
./UDC
./bcdUSB
./bcdDevice
./idProduct
./idVendor
./bMaxPacketSize0
./bDeviceProtocol
./bDeviceSubClass
./bDeviceClass
root@rockpro64:/sys/kernel/config/usb_gadget/g1# cat UDC
fe800000.dwc3
But still no luck.
dmesg shows this so at least something is working:
Code:
[ 3691.636525] using random self ethernet address
[ 3691.636544] using random host ethernet address
[ 3691.651025] usb0: HOST MAC b6:35:e2:c4:92:c2
[ 3691.651096] usb0: MAC 8a:57:3c:87:d7:dd
Any suggestions what might be wrong?
Thanks!