HiKey 960 cannot boot up after flashing image


#1

HI,
I recently bought hikey960 but booting error occured , log is below , please help , many thanks

    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 374ms.
    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
    Hikey960[5301] no need avs_init.
    ddr ft:0xf20332a3,mode:1 target:4
    UceLdOk
    density: 0x08080808,0x08080808,0x08080808,0x08080808,0x08080808,0x08080808,0x08080808,0x08080808 
    ddr info 0x000004ff 
    400M
    685M
    1067M
    C1R,V0x0000002f e:113
    C0R,V0x00000030 e:113
    C1R,V0x00000030 e:66
    C0R,V0x00000031 e:66
    C1R,V0x00000031 e:66
    C2R,V0x00000032 e:66
    C0R,V0x00000032 e:66
    C1R,V0x00000032 e:66
    C2R,V0x00000033 e:66
    C3R,V0x00000033 e:66
    C0R,V0x00000033 e:66
    C1R,V0x00000033 e:65
    C2R,V0x00000034 e:65
    C3R,V0x00000034 e:66
    C0R,V0x00000032 e:113
    C1R,V0x00000031 e:66
    C0R,V0x00000033 e:66
    C1R,V0x00000032 e:66
    C2R,V0x00000031 e:66
    C3R,V0x00000031 e:66
    C0R,V0x00000034 e:66
    C1R,V0x00000033 e:66
    C2R,V0x00000032 e:66
    C3R,V0x00000032 e:66
    C0R,V0x00000035 e:66
    C1R,V0x00000034 e:65
    C2R,V0x00000033 e:65
    C3R,V0x00000033 e:66
    1244M
    1866M
    C2R,V0x00000016 e:66
    C2R,V0x00000017 e:66
    pack0Idx0Dcc:0
    pack1Idx0Dcc:1
    pack2Idx0Dcc:0
    pack3Idx0Dcc:0
    iomcu_subsys_init
    boot_c0 PROFILE 4
    slave0 irq0:0x00000004
    slave1 irq0:0x00000004
    NOTICE:  BL2: v1.5(release):v1.5-47-g02f8c038
    NOTICE:  BL2: Built : 21:27:07, Mar 30 2018
    NOTICE:  ufs: H**** device must set VS_DebugSaveConfigTime 0x10
    NOTICE:  BL2: Booting BL31
    NOTICE:  BL31: v1.5(release):v1.5-47-g02f8c038
    NOTICE:  BL31: Built : 21:27:07, Mar 30 2018
    I/TC:  
    I/TC:  OP-TEE version: 3.0.0 #1 Fri Mar 30 21:27:05 UTC 2018 aarch64
    I/TC:  Initialized
    UEFI firmware (version Alpha built at 21:26:36 on Mar 30 2018)
    e[2Je[04De[=3he[2Je[09De[2Je[04De[=3he[2Je[09De[2Je[04De[=3he[2Je[09De[2Je[04De[=3he[2Je[09D
    Press ESCAPE for boot options .ERROR: Device Tree header not valid (err:-9)
    Android Fastboot mode - version 0.7.
    Press RETURN or SPACE key to quit.

#2

@mpadiy It seems that UEFI is not able to detect EFI partition. Can you turn switch setting to “on / on / off” and reflash boot.img and rootfs? Then turn back to “on / off / off”.


#3

i get error writing 'fastboot'... FAILED (remote: No such partition.) when I flash image

C:\Users\tooan\Desktop\share\hikey960\hikey960_hynix_fw\hikey960>fastboot flash xloader hisi-sec_xloader.img
< waiting for device >
target reported max download size of 134217728 bytes
sending 'xloader' (151 KB)...
OKAY [  0.009s]
writing 'xloader'...
OKAY [  0.284s]
finished. total time: 0.293s

C:\Users\tooan\Desktop\share\hikey960\hikey960_hynix_fw\hikey960>fastboot flash ptable hisi-ptable.img
target reported max download size of 134217728 bytes
sending 'ptable' (196 KB)...
OKAY [  0.019s]
writing 'ptable'...
OKAY [  0.004s]
finished. total time: 0.023s

C:\Users\tooan\Desktop\share\hikey960\hikey960_hynix_fw\hikey960>fastboot flash fastboot hisi-fastboot.img
target reported max download size of 134217728 bytes
sending 'fastboot' (3346 KB)...
OKAY [  0.081s]
writing 'fastboot'...
FAILED (remote: No such partition.)
finished. total time: 0.083s
"Update Failed!"

#4

For Debian, you need to flash following:
$ sudo fastboot flash boot boot-linaro-stretch-developer-hikey-.img
$ sudo fastboot flash system rootfs-linaro-stretch-developer-hikey-
.img


#5

not debian but Android , below is flash shell script , pls help

cls

:start

@echo -----------------------------
@echo %date%-%time%
@echo "hikey960 Updating:"

fastboot flash xloader hisi-sec_xloader.img
::	@if errorlevel 1 goto error

fastboot flash ptable hisi-ptable.img
	@if errorlevel 1 goto error

fastboot flash fastboot hisi-fastboot.img
	@if errorlevel 1 goto error

fastboot reboot-bootloader

@echo "Wait for device reboot"
@pause

fastboot flash nvme hisi-nvme.img
	@if errorlevel 1 goto error

fastboot flash fw_lpm3 hisi-lpm3.img
	@if errorlevel 1 goto error

fastboot flash trustfirmware hisi-bl31.bin
	@if errorlevel 1 goto error

fastboot flash boot boot.img
	@if errorlevel 1 goto error

fastboot flash dts dt.img
	@if errorlevel 1 goto error

fastboot flash system system.img
	@if errorlevel 1 goto error

fastboot flash vendor vendor.img
	@if errorlevel 1 goto error

fastboot flash cache cache.img
	@if errorlevel 1 goto error

fastboot flash userdata userdata.img
	@if errorlevel 1 goto error

@goto sucess

:error
@echo "Update Failed!"
@pause
@goto end

:sucess
@echo "Update Sucess"
@pause
fastboot reboot

:end

#6

@mpadiy Please try to flash images using switch configuration “on/ on/ off” (Recovery mode).


#7

in Recovery mode , fastboot devices is not available


#8

Follow https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/plat/hikey960.rst doc to flash images in Recovery mode. Then follow https://source.android.com/setup/build/devices doc to flash Android images.


#9

I think you just need a firmware update.

Reset the switches to fastboot mode and run the flash-all.sh here;
https://android.googlesource.com/device/linaro/hikey/+/master/installer/hikey960/