Part Number: SK-AM62
Hi,
I'm struggling to get U-Boot ums command to work.
Setup:
- Board: SK-AM62 EVM E2
- Boot setup: boot from microSD
- microSD image: tisdk-default-image-am62xx-evm.wic.xz (08.06.00.42) with boot partition modified to allow GP boot
- Host OS: Ubuntu 20.04.5 LTS, kernel: 5.14.0-1057-oem
To get an understanding of how to use ums command, I'm simply trying to expose the on-board eMMC, so all the ums invocations below refer to the internal eMMC.
Example scenario:
- Starting state: J15 connected to host (/dev/ttyUSB0 available), microSD with default image in microSD slot
- Plug in power adapter to J11 to power up the board
- Interrupt the U-Boot automatic boot
- Run ums 0 mmc 0 on the target, results in following output on the target:
UMS: LUN 0, dev 0, hwpart 0, sector 0x0, count 0x1da4000 dwc3-generic-peripheral usb@31000000: failed to enable ep0out failed to start <NULL>: -110 g_dnl_register: failed!, error: -110 g_dnl_register failed
- Plug in USB-C <-> USB-A cable to J13 on the board and USB-A socket on the host
- Host kernel immediately starts printing:
[966457.403977] usb 3-1: new high-speed USB device number 125 using xhci_hcd [966462.724022] usb 3-1: device descriptor read/64, error -110 [966473.224084] usb 3-1: device descriptor read/64, error -71 [966473.464022] usb 3-1: new high-speed USB device number 126 using xhci_hcd [966473.595986] usb 3-1: device descriptor read/64, error -71 [966473.832079] usb 3-1: device descriptor read/64, error -71 [966473.940266] usb usb3-port1: attempt power cycle [966474.595964] usb 3-1: new high-speed USB device number 127 using xhci_hcd [966474.596149] usb 3-1: Device not responding to setup address. [966474.804129] usb 3-1: Device not responding to setup address. [966475.012076] usb 3-1: device not accepting address 127, error -71 [966475.139941] usb 3-1: new high-speed USB device number 6 using xhci_hcd [966475.140051] usb 3-1: Device not responding to setup address. [966475.352053] usb 3-1: Device not responding to setup address. [966475.559961] usb 3-1: device not accepting address 6, error -71 [966475.560089] usb usb3-port1: unable to enumerate USB device
- Run ums 0 mmc 0 on the target, results in ums command running (spinning bar output), and following on the host:
[966572.115677] usb 3-1: new high-speed USB device number 10 using xhci_hcd [966572.268706] usb 3-1: New USB device found, idVendor=0451, idProduct=6165, bcdDevice= 2.23 [966572.268716] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [966572.268719] usb 3-1: Product: USB download gadget [966572.268721] usb 3-1: Manufacturer: Texas Instruments [966572.268723] usb 3-1: SerialNumber: 0000000000000109 [966572.271027] usb-storage 3-1:1.0: USB Mass Storage device detected [966572.271343] scsi host0: usb-storage 3-1:1.0 [966594.064070] usb 3-1: reset high-speed USB device number 10 using xhci_hcd [966599.427728] usb 3-1: device descriptor read/64, error -110 [966615.043739] usb 3-1: device descriptor read/64, error -110 [966615.279629] usb 3-1: reset high-speed USB device number 10 using xhci_hcd [966615.411697] usb 3-1: device descriptor read/64, error -71 [966615.655630] usb 3-1: device descriptor read/64, error -71 [966615.895792] usb 3-1: reset high-speed USB device number 10 using xhci_hcd [966615.895988] usb 3-1: Device not responding to setup address. [966616.107727] usb 3-1: Device not responding to setup address. [966616.315580] usb 3-1: device not accepting address 10, error -71 [966616.443578] usb 3-1: reset high-speed USB device number 10 using xhci_hcd [966616.443798] usb 3-1: Device not responding to setup address. [966616.651825] usb 3-1: Device not responding to setup address. [966616.859555] usb 3-1: device not accepting address 10, error -71 [966616.859669] usb 3-1: USB disconnect, device number 10 [966617.019584] usb 3-1: new high-speed USB device number 11 using xhci_hcd [966617.151676] usb 3-1: device descriptor read/64, error -71 [966617.391658] usb 3-1: device descriptor read/64, error -71 [966617.627644] usb 3-1: new high-speed USB device number 12 using xhci_hcd [966617.755697] usb 3-1: device descriptor read/64, error -71 [966617.991726] usb 3-1: device descriptor read/64, error -71 [966618.103773] usb usb3-port1: attempt power cycle [966618.763568] usb 3-1: new high-speed USB device number 13 using xhci_hcd [966618.763726] usb 3-1: Device not responding to setup address. [966618.971739] usb 3-1: Device not responding to setup address. [966619.179652] usb 3-1: device not accepting address 13, error -71 [966619.307590] usb 3-1: new high-speed USB device number 14 using xhci_hcd [966619.307752] usb 3-1: Device not responding to setup address. [966619.515917] usb 3-1: Device not responding to setup address. [966619.723668] usb 3-1: device not accepting address 14, error -71 [966619.723876] usb usb3-port1: unable to enumerate USB device
note: After 'reset high-speed USB device number 10 using xhci_hcd' (line 9 in the log) the target console changes - spinning bar stops, so ums command terminates.
At no point in the above scenario does a block device appear on the host. During step 7 above, before the reset, the device does get enumerated:
$ lsusb <...> Bus 003 Device 010: ID 0451:6165 Texas Instruments, Inc. USB download gadget <...>
What am I doing wrong? Is it a host problem? Or are there additional steps to be done in U-Boot before using ums?
Regards,
Karolis