How to enable both USB OTG and USB HOST on Hikey960


#1

Hi,

Currently either usb otg or usb host port works, both will not work together.
Is there any kernel config needs to be enabled for both to work?
Please suggest.

Thanks


ADB connection : not recognizing other usb devices
#2

There is only one USB controller (root-hub) on the HiKey960.
The controller supports only one role at a time (host or device).
So you will not be able to support both functions in parallel on this hub.


#3

Okay got it. Thanks.


#4

I want to connect a USB/HDMI-TouchMonitor AND work with adb.
I have read and understood that there is only 1 USB controller on the HiKey960.
How can I achieve using USB-touch + adb if I cannot use adb via USB?


#5

@FilterPunk

you can use ADB over tcp/ip.

  1. Change ADB mode to tcp/ip
    $ adb tcpip 5555
  2. Connect to your device ADB instance (replace with your ip)
    $ adb connect 192.168.1.16
  3. Open a shell
    $ adb shell

Adb connection over WiFi on HiKey 970?
Hikey 960 4G dongle support
How to enable ssh in Hikey960?
#6

@Loic Thanks for feedback. This does in fact work.
We have now the problem that we need to set tcp as default.

setprop service.adb.tcp.port 5555
stop adbd
start adbd

When using setprop we get: failed to set property ‘persist.adb.tcp.port’ to '5555’
Do we need su for this?
And if so, how can we get root rights?


#7

You can try $ adb root from the host (your pc)
Or simply $ su from the target (adb shell/serial).

Are you running a userdebug image ?