Home/Support/Support Forum/Enable USB Host on ccardimx28 and DEY?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Enable USB Host on ccardimx28 and DEY?

0 votes
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
asked Jun 9, 2016 in Linux by thayward New to the Community (8 points)
edited Jun 10, 2016 by thayward

Please log in or register to answer this question.

1 Answer

0 votes
After consulting with Digi, this is resolved by the following patch. I suspect it will be included in the next release of DEY.

diff --git a/meta-digi-arm/recipes-kernel/linux/linux-dey_3.10.bb b/meta-digi-arm/recipes-kernel/linux/linux-dey_3.10.bb
index ea2b19878a83..97724edd1f99 100644
--- a/meta-digi-arm/recipes-kernel/linux/linux-dey_3.10.bb
+++ b/meta-digi-arm/recipes-kernel/linux/linux-dey_3.10.bb
@@ -54,6 +54,7 @@ do_update_dts_mxs() {
config_dts enable '_ethernet1.dtsi'
else
config_dts disable '_ethernet1.dtsi'
+ config_dts enable '_usb1.dtsi'
fi
if [ -n "${HAVE_BT}" ]; then
config_dts enable '_auart0_bluetooth.dtsi'
answered Jun 15, 2016 by thayward New to the Community (8 points)
Hi thayward, I have the opposite problem. My Linux detects the USB Host, but u-boot doesn't.
Which type of card do you use and what u-boot version?
Thanks!
My problem is the opposite
...