I'm trying to read from a USB Flash Drive connected to the OTG port on a custom i.MX6Dual board running Android 7.1.1 and kernel 4.1.15. When I plug in the drive I get the following:
usb 1-1: new high-speed USB device number 3 using ci_hdrc
usb 1-1: New USB device found, idVendor=abcd, idProduct=1234
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: UDisk
usb 1-1: Manufacturer: General
usb 1-1: SerialNumber: 1404031203451902335914
usb-storage 1-1:1.0: USB Mass Storage device detected
scsi host1: usb-storage 1-1:1.0
usb 1-1: reset high-speed USB device number 3 using ci_hdrc
scsi 1:0:0:0: Well-known LUN 2| K 5 T b R ; c 0 0 w PQ: 5 ANSI: 2
I was expecting an sda to show up in /dev but nothing new shows up. Looking at the fstab.freescale file it looks like the mnt_point is set to auto - where should this mount to? I tried specifying a directory instead of auto but that didn't work either.
Thanks,
John
The problem seems to be in the scsi driver, which doesn't seem to be parsing the device's information correctly during the scan:
scsi 1:0:0:0: Well-known LUN 2| K 5 T b R ; c 0 0 w PQ: 5 ANSI: 2
On my Ubuntu machine I get the following:
scsi 5:0:0:0: Direct-Access General UDisk 5.00 PQ: 0 ANSI: 2
I haven't figured out what's causing this though.
Hi John
one can check voltage VDDUSB_CAP and USB_ID on connector (should be low)
and test if usb board is working, using simple linux usb unit test
(folder /mxc_usb_test)
imx-test
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor,
The hardware seems to be working - I'm able to connect a usb mouse and keyboard, as well as connect as a peripheral through adb. It's just in the case of the flash drive that I'm having an issue. It's recognized by the kernel it just doesn't show up in /dev.
John