USB device mode
#1
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


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!


Messages In This Thread
USB device mode - by tikonen - 06-27-2019, 06:18 AM
RE: USB device mode - by tikonen - 07-02-2019, 05:49 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  USB3 xhci-hcd in SuperSpeed mode swan 0 505 05-11-2023, 05:35 AM
Last Post: swan
  RockPro64 linux console video mode callegar 0 877 09-06-2022, 02:32 PM
Last Post: callegar
  Need help! Can't get device mode to work. scanboy 6 4,195 12-29-2021, 08:35 PM
Last Post: djonathan
  Using the PCIe slot of ROCKPro64 as EndPoint mode nonoriri 1 1,820 11-20-2021, 10:53 AM
Last Post: fire219
  slave mode on Rockpro64 Radhika.gabani 1 2,341 09-22-2021, 05:35 AM
Last Post: mahtew

Forum Jump:


Users browsing this thread: 1 Guest(s)