Recovery script "./recovery-flash.sh /dev/ttyUSBx" fail to run to completion

Bought Hikey 970. Trying to flash recovery but can’t open tty. lsusb says :
Bus 003 Device 007: ID 04e2:1410 Exar Corp. XR21V1410 USB-UART IC
Couldn’t open device, some information will be missing

You have to be root user to open /dev/ttyXXX.

sudo "./recovery-flash.sh"

should works

It did not work. It hangs a executing hikey_idt in recovery-flash.sh. It reports connection successfully opened to UART and then hangs.

This is how fart it gets:
Config name: /home/khus/mylinux/Hikey-970-Lebuntu/hikey970-lebuntu-16.04/binaries/config
Port name: /dev/ttyUSB0
0: Image: ./sec_usb_xloader.img Downalod Address: 0x22000
1: Image: ./sec_usb_xloader2.img Downalod Address: 0x60049000
2: Image: ./l-loader.bin Downalod Address: 0x16800000
Serial port open successfully!
Start downloading ./sec_usb_xloader.img@0x22000…
file total size 122880
downlaod address 0x22000

I found this thru dmesg:
[ 2466.978432] usb 3-1: new full-speed USB device number 8 using xhci_hcd
[ 2467.118972] usb 3-1: New USB device found, idVendor=04e2, idProduct=1410
[ 2467.118975] usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2467.119438] usbserial_generic 3-1:1.0: Generic device with no bulk out, not allowed.
[ 2467.119444] usbserial_generic: probe of 3-1:1.0 failed with error -5
[ 2467.119500] usbserial_generic 3-1:1.1: The “generic” usb-serial driver is only for testing and one-off prototypes.
[ 2467.119501] usbserial_generic 3-1:1.1: Tell linux-usb@vger.kernel.org to add your device to a proper driver.
[ 2467.119502] usbserial_generic 3-1:1.1: generic converter detected
[ 2467.119588] usb 3-1: generic converter now attached to ttyUSB0

Anyone know how to fix this

Found out the reason. You need to use USB type-C terminal next to HDMI port. I was using one that was for debug. Documents need to make this clear. I wasted a week figuring this out.

Found out the reason. You need to use USB type-C terminal next to HDMI port. I was using one that was for debug. Documents need to make this clear. I wasted a week figuring this out.

Thanks for the update.

The docs can be updated by anyone with a github account (our official
pages have an “Edit on github” button at the bottom of every page to
help with this).

Either way, when I saw your update I fired off
https://github.com/96boards/documentation/issues/574 so we can keep
track of this and try to improve the docs…

@k_hus Sorry for the inconvenience. As reported by @danielt, I have submitted a PR [1] for fixing this doc issue.

Thanks,
Mani

[1] https://github.com/96boards/documentation/pull/575