HIkey 960 recovery

Hi,

I was facing some issues in Hikey960 target firmware, so i recovered the Hikey960 target as per the steps mentioned in Board Recovery for HiKey960 - 96Boards and flashed the kernel image and rootfs as in Linux Host Installation for HiKey960 - 96Boards

Following both the links to flash firmawre, bootloader and image, I did not see any error while flashing.

But I am not able to see any print on console. (both while flashing and after flashing the images)

I rebooted the target with autoboot mode(i.e. Switch 1 on, Switch 2 and 3 off) again but still no print on console.

Can anyone mention about any steps I missed or any other Link I should follow to recover the hikey960 target.

Thanks & Regards,
Akshay

Seems strange. Are you using 96Boards UART Serial Mezzanine to get the console? Also it is good to share flashing logs.

Hi Sumit,

Yes i m using the 96Boards UART Serial Mezzanine, I also tried to check the console on HDMI Monitor, But nothing on it also.

Flashing logs:

$:~/Downloads/hikey-960-recovery$ sudo fastboot devices
2B579******* fastboot
$:~/Downloads/hikey-960-recovery$ ls
bl1.bin hikey_idt l-loader.bin
boot-linaro-stretch-developer-hikey-20180828-19.img hisi-sec_uce_boot.img prm_ptable.img
config hisi-sec_usb_xloader.img recovery.bin
fip.bin hisi-sec_xloader.img rootfs-linaro-stretch-developer-hikey-20180828-19.img
$:~/Downloads/hikey-960-recovery$ sudo fastboot flash ptable prm_ptable.img
target reported max download size of 134217728 bytes
sending ‘ptable’ (24 KB)…
OKAY [ 0.008s]
writing ‘ptable’…
OKAY [ 0.003s]
finished. total time: 0.011s
$:~/Downloads/hikey-960-recovery$ sudo fastboot flash xloader sec_xloader.img
error: cannot load ‘sec_xloader.img’
$:~/Downloads/hikey-960-recovery$ sudo fastboot flash xloader hisec_xloader.img
hikey_idt hisi-sec_uce_boot.img hisi-sec_usb_xloader.img hisi-sec_xloader.img
$:~/Downloads/hikey-960-recovery$ sudo fastboot flash xloader hisi-sec_
hisi-sec_uce_boot.img hisi-sec_usb_xloader.img hisi-sec_xloader.img
$:~/Downloads/hikey-960-recovery$ sudo fastboot flash xloader hisi-sec_xloader.img
target reported max download size of 134217728 bytes
sending ‘xloader’ (151 KB)…
OKAY [ 0.009s]
writing ‘xloader’…
OKAY [ 0.009s]
finished. total time: 0.018s
$:~/Downloads/hikey-960-recovery$ sudo fastboot flash fastboot l-loader.bin
target reported max download size of 134217728 bytes
sending ‘fastboot’ (25 KB)…
OKAY [ 0.008s]
writing ‘fastboot’…
OKAY [ 0.053s]
finished. total time: 0.061s
$:~/Downloads/hikey-960-recovery$ sudo fastboot flash fip fip.bin
target reported max download size of 134217728 bytes
sending ‘fip’ (1478 KB)…
OKAY [ 0.061s]
writing ‘fip’…
OKAY [ 0.064s]
finished. total time: 0.126s
$:~/Downloads/hikey-960-recovery$ sudo fastboot reboot-bootloader
rebooting into bootloader…
OKAY [ 0.000s]
finished. total time: 2.008s
$:~/Downloads/hikey-960-recovery$ sudo fastboot flash boot boot-linaro-stretch-developer-hikey-20180828-19.img
target reported max download size of 134217728 bytes
sending ‘boot’ (65536 KB)…
OKAY [ 1.880s]
writing ‘boot’…
OKAY [ 0.543s]
finished. total time: 2.423s
$:~/Downloads/hikey-960-recovery$
$:~/Downloads/hikey-960-recovery$
$:~/Downloads/hikey-960-recovery$ sudo fastboot flash system rootfs-linaro-stretch-developer-hikey-20180828-19.img
target reported max download size of 134217728 bytes
erasing ‘system’…
OKAY [ 0.585s]
sending sparse ‘system’ (131068 KB)…
OKAY [ 3.750s]
writing ‘system’…
OKAY [ 1.858s]
sending sparse ‘system’ (128470 KB)…
OKAY [ 3.646s]
writing ‘system’…
OKAY [ 1.143s]
sending sparse ‘system’ (127702 KB)…
OKAY [ 3.613s]
writing ‘system’…
OKAY [ 0.992s]
sending sparse ‘system’ (130809 KB)…
OKAY [ 3.742s]
writing ‘system’…
OKAY [ 1.000s]
sending sparse ‘system’ (130068 KB)…
OKAY [ 3.758s]
writing ‘system’…
OKAY [ 0.987s]
sending sparse ‘system’ (119610 KB)…
OKAY [ 3.515s]
writing ‘system’…
OKAY [ 0.947s]
sending sparse ‘system’ (130884 KB)…
OKAY [ 3.716s]
writing ‘system’…
OKAY [ 0.980s]
sending sparse ‘system’ (131070 KB)…
OKAY [ 3.709s]
writing ‘system’…
OKAY [ 0.887s]
sending sparse ‘system’ (130580 KB)…
OKAY [ 3.594s]
writing ‘system’…
OKAY [ 0.983s]
sending sparse ‘system’ (123971 KB)…
OKAY [ 3.649s]
writing ‘system’…
OKAY [ 1.020s]
sending sparse ‘system’ (123562 KB)…
OKAY [ 3.341s]
writing ‘system’…
OKAY [ 0.973s]
sending sparse ‘system’ (37992 KB)…
OKAY [ 1.087s]
writing ‘system’…
OKAY [ 0.970s]
finished. total time: 54.445s
$:~/Downloads/hikey-960-recovery$

I do not see any error in the flashing of images.

Thanks you for your help

Regards,
Akshay

You won’t see console on HDMI as current Debian kernel doesn’t have corresponding driver support.

Most probably it seems to be an issue with your UART Mezzanine. Can you try to test it with any other working board?

Hi guys,

Just remind, due to Hikey620 latest snapshot booting binaries are broken now, so I am concern if Hikey960 has the same issue. I remembered the older one building binary should be safe: http://snapshots.linaro.org/96boards/reference-platform/components/uefi-staging/76/hikey960/release/ .

Hi leo,

Thanks for the reply.

I doubt because i am able to recover other hikey-960 targets with these images.

I am facing issue in one particular target.

Also, I am able to see the led blink on keyboard press(input), but nothing is coming on console.

I need to confirm if its an hardware issue and will I be able to fix it.

Thank you for your reply i will check with the older the images from the link you mentioned.

Regard,
Akshay