Greetings,
Do you have any information on the support status for USB-OTG on USB3_0 in u-boot on the iMX8MP?
After some investigation, it looks like when dr_mode is specified as “otg” in the u-boot devicetree, the default behaviour is device mode (e.g. ums mmc 2 works as expected and mounts the SoM eMMC over USB). However, attempting to connect a flash drive to the USB port and running usb start, the port is never scanned (only USB3_1 is scanned), and thus no devices are found. The only way I can get it to work is by forcing dr_mode=“host”, which (as expected) breaks the ums ability.
The port is fully functional as a DRP when Linux has booted, so the ID pins and related bits are all correct.
for context, I am attempting to understand whether the bootcmd_usb0 functionality can be restored on the 8MP; previously on an iMX6 based device we were leveraging this as an “emergency-unbrick” procedure that doesn’t rely on the complexity of walking someone through USB tethering and SDP to load TEZI and then flash an image to the device; instead we could supply an all-in-one USB drive package from which the device could boot TEZI and also find the image to reflash.
Certainly we could force USB3_0 into host-only mode in u-boot to support this, but it’s unclear to me whether that’s wise without first understanding why the 8MP default is “peripheral” mode. Is that purely to support ums for convenience, or is there additional functionality here I’m not aware of?
Thanks in advance for any information you can provide!
~BW908