I have Digi Embedded Yocto installed on a ccardimx28 and cannot use USB Host. It acts like usbhost is not available on the board, however it’s listed in the MACHINE_FEATURES of the build scripts.
The kernel log shows many USB drivers, but not the USB host itself:
root@ccardimx28js:~# dmesg | grep -i usb
[ 0.470917] usb0_vbus: 5000 mV
[ 0.479763] usbcore: registered new interface driver usbfs
[ 0.485560] usbcore: registered new interface driver hub
[ 0.491286] usbcore: registered new device driver usb
[ 1.203458] usbcore: registered new interface driver asix
[ 1.209042] usbcore: registered new interface driver ax88179_178a
[ 1.215415] usbcore: registered new interface driver cdc_ether
[ 1.221585] usbcore: registered new interface driver smsc95xx
[ 1.227507] usbcore: registered new interface driver net1080
[ 1.233426] usbcore: registered new interface driver cdc_subset
[ 1.239510] usbcore: registered new interface driver zaurus
[ 1.245466] usbcore: registered new interface driver cdc_ncm
[ 1.251156] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 1.257992] usbcore: registered new interface driver usb-storage
[ 1.417958] usbcore: registered new interface driver usbhid
[ 1.423661] usbhid: USB HID core driver
root@ccardimx28js:~# lsusb
unable to initialize libusb: -99
How do I enable USB?
Edit: Some additional information: Looks like this is definitely a Linux issue, because U-boot has no problem enumerating USB devices on the same hardware:
CCARDIMX28 # usb reset
(Re)start USB…
USB0: USB EHCI 1.00
scanning bus 0 for devices… 2 USB Device(s) found
scanning usb for storage devices… 1 Storage Device(s) found
scanning usb for ethernet devices… 0 Ethernet Device(s) found
CCARDIMX28 # usb tree
USB device tree:
1 Hub (480 Mb/s, 0mA)
| u-boot EHCI Host Controller
|
±2 Mass Storage (480 Mb/s, 200mA)
Lexar USB Flash Drive AAAFA589T0JN1TJW