I’m trying to enable a USB connection between PC and iMX8MP plus Mallow carrier, that will let me either access a serial port for a terminal session, or achieve a network connection for SSH.
I’ve tried following the instructions in this article: USB Device Mode (Linux) | Toradex Developer Center but when I get to step 10, “# ls /sys/class/udc/”, there’s nothing in /sys/class/udc.
I notice when booting that there’s a message that says “dwc3 38100000.usb: Configuration mismatch. dr_mode forced to host“ (so presumably /sys/class/udc should contain controller 38100000.usb…?) but host mode doesn’t seem to be working either (I inserted a USB-C flash drive and it doesn’t appear to be seen, no kernel messages like there are when I insert a USB-A drive).
The image I’m building is Yocto-based, not Torizon, from the Scarthgap branch, using Toradex BSP layers. The device tree fdtfile variable in U-Boot is set to imx8mp-verdin-wifi-mallow.dtb, but I don’t know whether that should enable the USB-C, or whether I need an overlay.
I’m a relative newcomer to Yocto (or any form of embedded OS), and having spent hours trying to understand how to make the USB-C port work (and even consulting ChatGPT in desperation), I’m not getting anywhere, so I’m hoping that someone more knowledgeable than I am (which is likely everyone here) can point me in the right direction.
Thanks, Peter.