usb debugging problem in Imx6 sabre board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

usb debugging problem in Imx6 sabre board

ソリューションへジャンプ
3,319件の閲覧回数
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 ??

ラベル(2)
タグ(2)
1 解決策
2,562件の閲覧回数
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:

元の投稿で解決策を見る

5 返答(返信)
2,563件の閲覧回数
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:

2,562件の閲覧回数
bensonwu
Contributor III

Thank you a lot ! houyong

0 件の賞賛
返信
2,562件の閲覧回数
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 件の賞賛
返信
2,562件の閲覧回数
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 件の賞賛
返信
2,562件の閲覧回数
houyong
Contributor III

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

0 件の賞賛
返信