usb debugging problem in Imx6 sabre board

cancel
Showing results for 
Search instead for 
Did you mean: 

usb debugging problem in Imx6 sabre board

Jump to solution
949 Views
sameerarvikar
Contributor III

I am trying to use adb commands with the board , Its having kitkat installed on it

Now the problem is that usb debugging port (otg port ) in imx6 sabre board is also used for putting input devices (like mouse and keyboard)

So i enable usb debugging option in android using mouse

Now when i connect usb debugging using the cable with computer , the android asks for (allow device to connect on its display) , but because i have no option for input device like a mouse (as the port is busy ) so i can never allow the device to connect. and hence adb devices command output is always 

Device id  ---   unauthorised

So what is the solution or workaround of this problem ??

Labels (2)
Tags (2)
1 Solution
192 Views
houyong
Contributor III

I found the most effective way to solve the problem:

1. connect usb otg port and usb debug port to your pc

2. login through serial port

3. execute follow commands:

root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 66
root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 66

keyevent 61 means keyboard tab key

keyevent 66 means keyboard enter key

:smileymischief:

View solution in original post

5 Replies
193 Views
houyong
Contributor III

I found the most effective way to solve the problem:

1. connect usb otg port and usb debug port to your pc

2. login through serial port

3. execute follow commands:

root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 66
root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 61
root@sabresd_6dq:/ # input keyevent 66

keyevent 61 means keyboard tab key

keyevent 66 means keyboard enter key

:smileymischief:

View solution in original post

192 Views
bensonwu
Contributor III

Thank you a lot ! houyong

0 Kudos
192 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello sameerarvikar,

   On SabreSD board, Only USB OTG port can be used, the port can work with Device Mode or Host mode, if you are connencting mouse on the port, it means the USB OTG is working with Host mode, so at the time, you can't use adb to debug your application.

   you will have to make it work with device mode if want to debug your application.

Best Regards,

Weidong

0 Kudos
192 Views
sameerarvikar
Contributor III

I got your point ,but how to click on yes when pop of allow device (some RSA check also) comes as soon as i connect usb cable 

0 Kudos
192 Views
houyong
Contributor III

i got the same problem now, how about the ethernet port? we may control the device through teamviewer.

0 Kudos