The adb command cannot detect USB3 device in the i.MX8 MEK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The adb command cannot detect USB3 device in the i.MX8 MEK

2,532 Views
kevinpwchen
Contributor II

Hi Sir,

I got a problem in using adb command to detect device. I am confused and hope someone can help. Thank you!

CPU: i.MX8qxp

Yocto: v4.14.98_v2.3.0

Problem:

I try to use adb command to detect the adb device for one module that supports USB2/USB3. And these is a usb3 hub between i.MX8 and module. However, the adb command cannot detect the ADB device over USB3 mode. If I convert the USB3 mode to USB2 by HW rework, the adb command can detect the ADB device. Below is my testing message, FYR! Thank you!

============USB3.0 ============
root@imx8qxpc0mek:~# lsusb
Bus 001 Device 004: ID 0424:2740 Standard Microsystems Corp.
Bus 001 Device 002: ID 0424:2734 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 05c6:901f Qualcomm, Inc.    <-- The module
Bus 002 Device 002: ID 0424:5734 Standard Microsystems Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

root@imx8qxpc0mek:~# lsusb -t
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 5000M
|__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=diag_bridge, 5000M
|__ Port 2: Dev 3, If 1, Class=Vendor Specific Class, Driver=, 5000M
|__ Port 2: Dev 3, If 2, Class=Vendor Specific Class, Driver=, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
|__ Port 5: Dev 4, If 0, Class=Vendor Specific Class, Driver=, 480M

root@imx8qxpc0mek:~# adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached

============ USB2.0 ============
root@imx8qxpc0mek:~# lsusb
Bus 001 Device 003: ID 05c6:901f Qualcomm, Inc.<-- The module
Bus 002 Device 002: ID 0424:5734 Standard Microsystems Corp.
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0424:2740 Standard Microsystems Corp.
Bus 001 Device 002: ID 0424:2734 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

root@imx8qxpc0mek:~# lsusb -t
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/5p, 480M
|__ Port 2: Dev 3, If 1, Class=Vendor Specific Class, Driver=, 480M
|__ Port 2: Dev 3, If 2, Class=Vendor Specific Class, Driver=, 480M
|__ Port 2: Dev 3, If 0, Class=Vendor Specific Class, Driver=diag_bridge, 480M
|__ Port 5: Dev 4, If 0, Class=Vendor Specific Class, Driver=, 480M

root@imx8qxpc0mek:~# adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
6205578c device
 

BR

Kevin

5 Replies

2,467 Views
Kyle_Fox
NXP Employee
NXP Employee

well folks, user error.  i had a bad USB3 cable after all.  now everything works.   

sorry for any time waste:)

0 Kudos

2,467 Views
Kyle_Fox
NXP Employee
NXP Employee

i'm having this exact same problem with an i.MX 8QuadMax MEK.  Attempting to run Android Auto 10.

Android is running fine... i've turned on debug mode, etc.  But adb simply does not see this board.

I'm using the latest command line tools from the android sdk.  adb runs fine but doesn't see anything.

i've used this on previous Android releases on this MEK without a problem.

FYI i'm using Ubuntu 19 on my desktop.

2,467 Views
kevinpwchen
Contributor II

Hi Kyle,

Thanks for your help. Although I have fixed the issue but I like to see your comment. :smileyhappy:

BR

Kevin

0 Kudos

2,467 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kevin

one can try fix suggested on

12.04 - Unable to detect an adb device on USB3.0 - Ask Ubuntu 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

2,467 Views
kevinpwchen
Contributor II

Hi igor,

I have fixed this issue based on your comment. Thank you!

Best regards

Kevin

0 Kudos