HiKey 960 Fastboot Mode


#1

Hello I am having an issue with Fastboot Mode on Hikey 960.

When setting the switches to ON / OFF / ON the USB-C vanishes form dev/ttyUSBx.

When i am in Normal Mode all USBs show up alright.

Could this be a problem with the USB cable I am using? Shouldn’t it either show up fine or not at all? Is this a known problem?

I can’t proceed flashing the OS since make flash leads to < waiting for device > and stays there forever.

Please advise.

Thank you.


#2

A tty is exposed only when you are in recovery mode only.
In this mode you should see in dmesg something like this when powering the board:
new high-speed USB device number 18 using xhci_hcd
usb 1-1: New USB device found, idVendor=18d1, idProduct=d00d
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 1-1: Product: HI3650
usb 1-1: Manufacturer: Fastboot2.0

If you see the above usb messages but your fastboot hangs, this can be due to a udev issue.
You can try fastboot in root/sudo mode.
$ sudo fastboot...
Or update your udev rules and add the following line in /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="d00d", MODE="0666"


#3

Thanks Loic … after a couple of reboots this miraceoulousely worked and I have got a running OP-Tee on Hikey 960.

I still don’t understand what was wrong, but for now I can work with this.


#4

Hello,
I’, facing the same issue. Could you briefly give the steps to resolve it.
Thanks,


#5

Hello,
When i do a dmesg with pin 1 on, pin 2,3 off I get the following result


3740.415826] usb 1-1: device descriptor read/64, error -71
[23740.855881] usb 1-1: new high-speed USB device number 37 using xhci_hcd
[23740.873306] usb 1-1: New USB device found, idVendor=18d1, idProduct=4ee7
[23740.873318] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[23740.873326] usb 1-1: Product: ADB Gadget
[23740.873332] usb 1-1: Manufacturer: HISILICON
[23740.873338] usb 1-1: SerialNumber: 0123456789ABCDEF
[23827.805166] usb 1-1: USB disconnect, device number 37
[23845.075045] usb 1-1: new full-speed USB device number 38 using xhci_hcd
[23845.243090] usb 1-1: device descriptor read/64, error -71
[23845.515025] usb 1-1: device descriptor read/64, error -71
[23845.787002] usb 1-1: new full-speed USB device number 39 using xhci_hcd
[23845.955067] usb 1-1: device descriptor read/64, error -71
[23846.227059] usb 1-1: device descriptor read/64, error -71
[23846.499041] usb 1-1: new full-speed USB device number 40 using xhci_hcd
[23846.499255] usb 1-1: Device not responding to setup address.
[23846.703260] usb 1-1: Device not responding to setup address.
[23846.907049] usb 1-1: device not accepting address 40, error -71
[23847.075045] usb 1-1: new high-speed USB device number 41 using xhci_hcd
[23847.104189] usb 1-1: New USB device found, idVendor=18d1, idProduct=4ee7
[23847.104200] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[23847.104208] usb 1-1: Product: ADB Gadget
[23847.104215] usb 1-1: Manufacturer: HISILICON
[23847.104220] usb 1-1: SerialNumber: 0123456789ABCDEF
root@susmitha:/dev#
I do not understand the error -71. Kindly please advise.
Regards,
Susmitha


#6

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/asm-generic/errno.h?h=v4.16#n54

“Protocol Error”