Hello,
I’m experiencing issues with recovering my Hikey960, from what it looks like fastboot won’t start. I’ve tried both master and 3.3.0 of https://github.com/OP-TEE/build.git with no success. Logs follow:
mpp@os-lin-mpp:~/devel/hikey_960/build$ make recovery
Enter recovery mode to flash a new bootloader
Make sure udev permissions are set appropriately:
# /etc/udev/rules.d/hikey960.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", ATTRS{idProduct}=="d00d", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666", ENV{ID_MM_DEVICE_IGNORE}="1"
Set jumpers or switches as follows:
Jumper 1-2: Closed or Switch 1: On
3-4: Closed or 2: On
5-6: Open or 3: Off
Press enter to continue
Connect HiKey960 to power up (press enter)
Connect USB OTG cable, the micro USB cable (press enter)
Check the device node (/dev/ttyUSBx) of the micro USB connection
Note the value x of the device node. Default is 1
Enter the device node. Press enter for /dev/ttyUSB1:
[sudo] password for mpp:
Config name: /home/mpp/devel/hikey_960/build/../out/config
Port name: /dev/ttyUSB1
0: Image: ./hisi-sec_usb_xloader.img Downalod Address: 0x20000
1: Image: ./hisi-sec_uce_boot.img Downalod Address: 0x6a908000
2: Image: ./recovery.bin Downalod Address: 0x1ac00000
Serial port open successfully!
Start downloading ./hisi-sec_usb_xloader.img@0x20000...
file total size 99584
downlaod address 0x20000
Finish downloading
Start downloading ./hisi-sec_uce_boot.img@0x6a908000...
file total size 23680
downlaod address 0x6a908000
Finish downloading
Start downloading ./recovery.bin@0x1ac00000...
file total size 1179648
downlaod address 0x1ac00000
Finish downloading
If you see dots starting to appear on the console,
press f ON THE CONSOLE (NOT HERE!) to run fastboot.
You have 10 seconds! Go!
If not, fastboot should load automatically.
Press enter (HERE) to continue flashing
Wait until you see the (UART) message
"Android Fastboot mode - version x.x."
Press RETURN or SPACE key to quit."
It can take a while for the fastboot device to come up,
so please wait ~10 seconds.
Then press enter to continue flashing
fastboot flash ptable /home/mpp/devel/hikey_960/build/../l-loader/prm_ptable.img
< waiting for any device >
Log from ttyUSB0:
Welcome to minicom 2.7.1
OPTIONS: I18n
Compiled on Aug 13 2017, 15:25:34.
Port /dev/ttyUSB0, 08:35:44
Press CTRL-A Z for help on special keys
hikey960 boarid:5301 xloader use UART6
scsysstat_value[0].
clear reset source
last_keypoint0,reboot_type0
secdbg not DCU.
SecDbgVer exit
xloader chipid is: 0x36600110, start at 25949ms.
Build Date: Dec 6 2017, 15:31:59
[clock_init] ++
hikey960 [hikey960_clk_init]
hi3660 [clk_setup]
[clock_init] --
storage type is UFS
ufs retry: 6 count v_tx:0 v_rx:0
ufs set v_tx:0 v_rx:0
UfsLuInit ret:0
UsbMode, nvData invalid
rtc_nve_read failed !
Hikey960[5301] no need avs_init.
ddr ft:0xf20332a3,mode:1 target:4
[USBI]driver init:0003e800 0003f840 00000000
[USBI]download start! total_frame:24
+1 0|+2 0|+3 0|+4 0|+5 0|+6 0|+7 0|+8 0|+9 0|+10 0|+11 0|+12 0|+13 0|+14 0|+15 0|+16 0|+17 0|+18 0|+19 0|+20 0|+21 0|+22 0|+23 0|+24 0|
[USBI]expected:23680, received:23680 (bytes)
[USBI]download suc
UceLdOk
ch 0 gt_errfail, STATUS:0x00000060
ch 0 gdst_errfail, STATUS:0x00000040
ch 1 gt_errfail, STATUS:0x00000060
ch 1 gdst_errfail, STATUS:0x00000040
ch 2 gt_errfail, STATUS:0x00000060
ch 2 gdst_errfail, STATUS:0x00000040
ch 3 gt_errfail, STATUS:0x00000060
ch 3 gdst_errfail, STATUS:0x00000040
timeout
timeout
timeout
timeout
density: 0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000,0x0c0c0c0c,0x00000000
ddr info 0x00000306
400M
685M
1067M
C1R,V0x0000002d e:66
C2R,V0x0000002c e:66
C3R,V0x0000002d e:66
C0R,V0x0000002d e:66
C1R,V0x0000002e e:66
C2R,V0x0000002d e:66
C3R,V0x0000002e e:66
C0R,V0x0000002e e:66
C1R,V0x0000002f e:66
C2R,V0x0000002e e:66
C3R,V0x0000002f e:66
C0R,V0x0000002f e:65
C1R,V0x00000030 e:65
C2R,V0x0000002f e:66
C3R,V0x00000030 e:65
1244M
1866M
C0R,V0x00000015 e:193
C0R,V0x00000016 e:66
C2R,V0x00000016 e:66
C0R,V0x00000017 e:66
C1R,V0x00000017 e:66
C2R,V0x00000017 e:66
C3R,V0x00000017 e:66
UsbMode, nvData invalid
UsbMode, nvData invalid
UsbMode, nvData invalid
[USBI]driver init:0003e800 0003f840 00000000
[USBI]download start! total_frame:1152
+1 0|+2 0|+3 0|+4 0|+5 0|+6 0|+7 0|+8 0|+9 0|+10 0|+11 0|+12 0|+13 0|+14 0|+15 0|+16 0|+17 0|+18 0|+19 0|+20 0|+21 0|+22 0|+23 0|+24 0|+25 0|+26 0|+27 0|+28 0||
[USBI]expected:1179648, received:1179648 (bytes)
[USBI]download suc
iomcu_subsys_init
boot_c0 PROFILE 4
slave0 irq0:0x00000014
slave1 irq0:0x00000004
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v2.0(release):v2.0-507-g34efb683
NOTICE: BL1: Built : 15:05:47, Mar 7 2019
NOTICE: BL1-FWU: *******FWU Process Started*******
And my dmsg showing USB-C recognized as ttyUSB1:
[558402.248609] usb 1-4: new full-speed USB device number 51 using xhci_hcd
[558402.400333] usb 1-4: New USB device found, idVendor=12d1, idProduct=3609
[558402.400337] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[558402.400339] usb 1-4: Product: USB SER
[558402.400341] usb 1-4: Manufacturer: HISILICON
[558402.402028] option 1-4:1.0: GSM modem (1-port) converter detected
[558402.402326] usb 1-4: GSM modem (1-port) converter now attached to ttyUSB1