This is a cache of https://discuss.96boards.org/t/debian-9-fails-to-boot-after-flash/5500. It is a snapshot of the page at 2024-11-04T11:35:03.956+0000.
Debian 9 fails to boot after flash - HiKey 960 - 96Boards Forum

Debian 9 fails to boot after flash

Hi,

I followed the installation guide (here) to flash Debian 9 on my HiKey 960 but the board fails to boot when in normal mode. I am using the latest snapshots on the downloads page and got no errors during the flashing process.

I have also tried recovering the board and retrying the process. I am running the commands from a linux VM on VMware and installed fastboot as shown here.

Any help solving this issue would be appreciated.

The error is highlighted below:

Loading driver at 0x000BF014000 EntryPoint=0x000BF015048 FaultTolerantWriteDxe.efi
Ftw: Workspace or Spare block does not exist!
Error: Image at 000BF014000 start failed: Invalid Parameter

and

Loading driver at 0x000B9ADB000 EntryPoint=0x000B9ADC000 AndroidBootApp.efi
Failed to get Abootimg Size: Invalid Parameter
Failed to load boot image from boot partition: Invalid Parameter
Failed to boot from partition: Invalid Parameter
Error: Image at 000B9ADB000 start failed: Invalid Parameter

Here is the full log from the serial console:

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 376ms.
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: 0x00080008,0x00080008,0x00080008,0x00080008,0x00080008,0x00080008,0x00080008,0x00080008
ddr info 0x00000401
400M
685M
1067M
C1R,V0x0000002e e:66
C2R,V0x0000002e e:66
C3R,V0x0000002f e:66
C0R,V0x00000030 e:66
C1R,V0x0000002f e:66
C2R,V0x0000002f e:66
C3R,V0x00000030 e:66
C0R,V0x00000031 e:66
C1R,V0x00000030 e:66
C2R,V0x00000030 e:66
C3R,V0x00000031 e:66
C0R,V0x00000032 e:66
C1R,V0x00000031 e:65
C2R,V0x00000031 e:66
C3R,V0x00000032 e:65
C0R,V0x00000033 e:65
C1R,V0x00000032 e:65
C2R,V0x00000032 e:65
C3R,V0x00000033 e:65
C1R,V0x0000002f e:66
C1R,V0x00000030 e:66
C2R,V0x0000002f e:66
C0R,V0x00000030 e:66
C1R,V0x00000031 e:66
C2R,V0x00000030 e:66
C3R,V0x00000030 e:66
C0R,V0x00000031 e:66
C1R,V0x00000032 e:65
C2R,V0x00000031 e:66
C3R,V0x00000031 e:66
C0R,V0x00000032 e:66
C1R,V0x00000033 e:65
C2R,V0x00000032 e:65
C3R,V0x00000032 e:65
C0R,V0x00000033 e:65
C1R,V0x00000034 e:65
C2R,V0x00000033 e:65
C3R,V0x00000033 e:65
1244M
1866M
C1R,V0x00000014 e:113
C1R,V0x00000015 e:66
C2R,V0x00000015 e:66
C3R,V0x00000015 e:193
C1R,V0x00000016 e:66
C2R,V0x00000016 e:66
C3R,V0x00000016 e:66
C0R,V0x00000017 e:66
C1R,V0x00000017 e:66
C2R,V0x00000017 e:66
C3R,V0x00000017 e:66
C2R,V0x00000013 e:113
C2R,V0x00000014 e:66
C2R,V0x00000015 e:66
C1R,V0x00000016 e:66
C2R,V0x00000016 e:66
C3R,V0x00000016 e:66
C0R,V0x00000017 e:66
C1R,V0x00000017 e:66
C2R,V0x00000017 e:66
C3R,V0x00000017 e:66
pack0Idx0Dcc:0
pack1Idx0Dcc:0
pack2Idx0Dcc:0
pack3Idx0Dcc:3
iomcu_subsys_init
boot_c0 PROFILE 4
slave0 irq0:0x00000004
slave1 irq0:0x00000004
NOTICE:  BL2: v1.5(release):v1.5-594-ge313c122
NOTICE:  BL2: Built : 09:03:15, Aug  2 2018
NOTICE:  ufs: H**** device must set VS_DebugSaveConfigTime 0x10
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v1.5(release):v1.5-594-ge313c122
NOTICE:  BL31: Built : 09:03:15, Aug  2 2018
I/TC:
I/TC:  OP-TEE version: 3.0.0 #1 Thu Aug  2 09:03:11 UTC 2018 aarch64
I/TC:  Initialized
UEFI firmware (version Alpha built at 09:02:56 on Aug  2 2018)
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0xBF18B000
Loading DxeCore at 0x00BF18A000 EntryPoint=0x00BF18B000
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0xBF18B000
HOBLIST address in DXE = 0xBEF4D018
Memory Allocation 0x00000004 0xBFFE8000 - 0xBFFE8FFF
Memory Allocation 0x00000004 0xBFFE7000 - 0xBFFE7FFF
Memory Allocation 0x00000004 0xBFFE6000 - 0xBFFE6FFF
Memory Allocation 0x00000004 0xBFFE5000 - 0xBFFE5FFF
Memory Allocation 0x00000004 0xBFFE4000 - 0xBFFE4FFF
Memory Allocation 0x00000004 0xBFFE9000 - 0xBFFFFFFF
Memory Allocation 0x00000004 0xBFFD4000 - 0xBFFE3FFF
Memory Allocation 0x00000004 0xBF8CE000 - 0xBFFD3FFF
Memory Allocation 0x00000004 0xBF1C8000 - 0xBF8CDFFF
Memory Allocation 0x00000004 0xBF18A000 - 0xBF1C7FFF
Memory Allocation 0x00000003 0xBF18A000 - 0xBF1C7FFF
FV Hob            0x1AC98000 - 0x1AD87FFF
FV Hob            0xBF1C8000 - 0xBF8CC7FF
FV2 Hob           0xBF1C8000 - 0xBF8CC7FF
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/PCD/Dxe/Pcd/DEBUG/PcdDxe.dll 0xBF0D1000
Loading driver at 0x000BF0D0000 EntryPoint=0x000BF0D1048 PcdDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/drivers/CpuDxe/CpuDxe/DEBUG/ArmCpuDxe.dll 0xBF0C1000
Loading driver at 0x000BF0C0000 EntryPoint=0x000BF0C1048 ArmCpuDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/RuntimeDxe/RuntimeDxe/DEBUG/RuntimeDxe.dll 0xBA0D0000
Loading driver at 0x000BA0C0000 EntryPoint=0x000BA0D0048 RuntimeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe/DEBUG/SecurityStubDxe.dll 0xBF0B1000
Loading driver at 0x000BF0B0000 EntryPoint=0x000BF0B1048 SecurityStubDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter/DEBUG/EmbeddedMonotonicCounter.dll 0xBA030000
Loading driver at 0x000BA020000 EntryPoint=0x000BA030048 EmbeddedMonotonicCounter.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe/DEBUG/Reset.dll 0xB9F90000
Loading driver at 0x000B9F80000 EntryPoint=0x000B9F90048 Reset.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe/DEBUG/RealTimeClock.dll 0xB9EF0000
Loading driver at 0x000B9EE0000 EntryPoint=0x000B9EF0048 RealTimeClock.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/MetronomeDxe/MetronomeDxe/DEBUG/MetronomeDxe.dll 0xBF0A9000
Loading driver at 0x000BF0A8000 EntryPoint=0x000BF0A9048 MetronomeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SerialDxe/SerialDxe/DEBUG/SerialDxe.dll 0xBF0A1000
Loading driver at 0x000BF0A0000 EntryPoint=0x000BF0A1048 SerialDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960GpioDxe/HiKey960GpioDxe/DEBUG/HiKey960Gpio.dll 0xBF09A000
Loading driver at 0x000BF099000 EntryPoint=0x000BF09A048 HiKey960Gpio.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPlatformPkg/drivers/PL061GpioDxe/PL061GpioDxe/DEBUG/PL061GpioDxe.dll 0xBF091000
Loading driver at 0x000BF090000 EntryPoint=0x000BF091048 PL061GpioDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960Dxe/HiKey960Dxe/DEBUG/HiKey960Dxe.dll 0xBF07C000
Loading driver at 0x000BF07B000 EntryPoint=0x000BF07C048 HiKey960Dxe.efi
[BDID]Adcin0:225
[BDID]Adcin0Remap:1
[BDID]Adcin1:0
[BDID]Adcin1Remap:0
[BDID]Adcin2:589
[BDID]Adcin2Remap:3
[BDID]boardid: 5301
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/DpcDxe/DpcDxe/DEBUG/DpcDxe.dll 0xBF074000
Loading driver at 0x000BF073000 EntryPoint=0x000BF074048 DpcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe/DEBUG/EmuVariableRuntimeDxe.dll 0xB9E50000
Loading driver at 0x000B9E40000 EntryPoint=0x000B9E50048 EmuVariableRuntimeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe/DEBUG/HiiDatabase.dll 0xBF043000
Loading driver at 0x000BF042000 EntryPoint=0x000BF043048 HiiDatabase.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe/DEBUG/DevicePathDxe.dll 0xBF02E000
Loading driver at 0x000BF02D000 EntryPoint=0x000BF02E048 DevicePathDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe/DEBUG/CapsuleRuntimeDxe.dll 0xB9DB0000
Loading driver at 0x000B9DA0000 EntryPoint=0x000B9DB0048 CapsuleRuntimeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/drivers/ArmGic/ArmGicDxe/DEBUG/ArmGicDxe.dll 0xBF024000
Loading driver at 0x000BF023000 EntryPoint=0x000BF024048 ArmGicDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe/DEBUG/FaultTolerantWriteDxe.dll 0xBF015000
Loading driver at 0x000BF014000 EntryPoint=0x000BF015048 FaultTolerantWriteDxe.efi
Ftw: Workspace or Spare block does not exist!
Error: Image at 000BF014000 start failed: Invalid Parameter
remove-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe/DEBUG/FaultTolerantWriteDxe.dll 0xBF015000
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe/DEBUG/SetupBrowser.dll 0xBEFF8000
Loading driver at 0x000BEFF7000 EntryPoint=0x000BEFF8048 SetupBrowser.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/BdsDxe.dll 0xBEFCD000
Loading driver at 0x000BEFCC000 EntryPoint=0x000BEFCD048 BdsDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/drivers/DtPlatformDxe/DtPlatformDxe/DEBUG/DtPlatformDxe.dll 0xBEFC3000
Loading driver at 0x000BEFC2000 EntryPoint=0x000BEFC3048 DtPlatformDxe.efi
DtPlatformDxeEntryPoint: no DT/ACPI preference found, defaulting to DT
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/drivers/TimerDxe/TimerDxe/DEBUG/ArmTimerDxe.dll 0xBEFBA000
Loading driver at 0x000BEFB9000 EntryPoint=0x000BEFBA048 ArmTimerDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe/DEBUG/DisplayEngine.dll 0xBEF97000
Loading driver at 0x000BEF96000 EntryPoint=0x000BEF97048 DisplayEngine.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer/DEBUG/WatchdogTimer.dll 0xBEF8F000
Loading driver at 0x000BEF8E000 EntryPoint=0x000BEF8F048 WatchdogTimer.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe/DEBUG/ConPlatformDxe.dll 0xBEF84000
Loading driver at 0x000BEF83000 EntryPoint=0x000BEF84048 ConPlatformDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe/DEBUG/TerminalDxe.dll 0xBEF71000
Loading driver at 0x000BEF70000 EntryPoint=0x000BEF71048 TerminalDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/drivers/Keyboard/VirtualKeyboardDxe/VirtualKeyboardDxe/DEBUG/VirtualKeyboardDxe.dll 0xBEF66000
Loading driver at 0x000BEF65000 EntryPoint=0x000BEF66048 VirtualKeyboardDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960MmcDxe/HiKey960MmcDxe/DEBUG/HiKey960MmcDxe.dll 0xBEF5D000
Loading driver at 0x000BEF5C000 EntryPoint=0x000BEF5D048 HiKey960MmcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe/DEBUG/NonDiscoverablePciDeviceDxe.dll 0xB9D44000
Loading driver at 0x000B9D43000 EntryPoint=0x000B9D44048 NonDiscoverablePciDeviceDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/drivers/SdMmc/DwMmcHcDxe/DwMmcHcDxe/DEBUG/DwMmcHcDxe.dll 0xB9D30000
Loading driver at 0x000B9D2F000 EntryPoint=0x000B9D30048 DwMmcHcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Sd/SdDxe/SdDxe/DEBUG/SdDxe.dll 0xB9D20000
Loading driver at 0x000B9D1F000 EntryPoint=0x000B9D20048 SdDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe/DEBUG/MnpDxe.dll 0xB9D08000
Loading driver at 0x000B9D07000 EntryPoint=0x000B9D08048 MnpDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe/DEBUG/ArpDxe.dll 0xB9CF8000
Loading driver at 0x000B9CF7000 EntryPoint=0x000B9CF8048 ArpDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe/DEBUG/Ip4Dxe.dll 0xB9CD1000
Loading driver at 0x000B9CD0000 EntryPoint=0x000B9CD1048 Ip4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe/DEBUG/Udp4Dxe.dll 0xB9CBC000
Loading driver at 0x000B9CBB000 EntryPoint=0x000B9CBC048 Udp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe/DEBUG/Tcp4Dxe.dll 0xB9C9A000
Loading driver at 0x000B9C99000 EntryPoint=0x000B9C9A048 Tcp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe/DEBUG/Dhcp4Dxe.dll 0xB9C84000
Loading driver at 0x000B9C83000 EntryPoint=0x000B9C84048 Dhcp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe/DEBUG/Mtftp4Dxe.dll 0xB9C6E000
Loading driver at 0x000B9C6D000 EntryPoint=0x000B9C6E048 Mtftp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe/DEBUG/UefiPxe4BcDxe.dll 0xB9C57000
Loading driver at 0x000B9C56000 EntryPoint=0x000B9C57048 UefiPxe4BcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/Ax88772b/DEBUG/Ax88772b.dll 0xB9C10000
Loading driver at 0x000B9C00000 EntryPoint=0x000B9C10048 Ax88772b.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/drivers/Block/DwUfsHcDxe/DwUfsHcDxe/DEBUG/DwUfsHcDxe.dll 0xB9BA4000
Loading driver at 0x000B9BA3000 EntryPoint=0x000B9BA4048 DwUfsHcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruDxe/DEBUG/UfsPassThruDxe.dll 0xB9B92000
Loading driver at 0x000B9B91000 EntryPoint=0x000B9B92048 UfsPassThruDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe/DEBUG/ScsiBus.dll 0xB9B85000
Loading driver at 0x000B9B84000 EntryPoint=0x000B9B85048 ScsiBus.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe/DEBUG/ScsiDisk.dll 0xB9B6F000
Loading driver at 0x000B9B6E000 EntryPoint=0x000B9B6F048 ScsiDisk.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe/DEBUG/DiskIoDxe.dll 0xB9B62000
Loading driver at 0x000B9B61000 EntryPoint=0x000B9B62048 DiskIoDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe/DEBUG/PartitionDxe.dll 0xB9B53000
Loading driver at 0x000B9B52000 EntryPoint=0x000B9B53048 PartitionDxe.efi
add-symbol-file /work/jenkins/workspace/ap-uefi-bin/EDK2_ARCH/ARM/EDK2_BINARY/FatPkg/label/sas-sw/Build/Fat/RELEASE_GCC49/AARCH64/FatPkg/EnhancedFatDxe/Fat/DEBUG/Fat.dll 0xBEF55260
Loading driver at 0x000BEF55000 EntryPoint=0x000BEF552A8 Fat.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe/DEBUG/EnglishDxe.dll 0xBA115000
Loading driver at 0x000BA114000 EntryPoint=0x000BA115048 EnglishDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe/DEBUG/UsbBusDxe.dll 0xB9B3E000
Loading driver at 0x000B9B3D000 EntryPoint=0x000B9B3E048 UsbBusDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe/DEBUG/UsbMassStorageDxe.dll 0xB9B2F000
Loading driver at 0x000B9B2E000 EntryPoint=0x000B9B2F048 UsbMassStorageDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960UsbDxe/HiKey960UsbDxe/DEBUG/HiKey960UsbDxe.dll 0xB9B1D000
Loading driver at 0x000B9B1C000 EntryPoint=0x000B9B1D048 HiKey960UsbDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960FastbootDxe/HiKey960FastbootDxe/DEBUG/HiKey960FastbootDxe.dll 0xB9B08000
Loading driver at 0x000B9B07000 EntryPoint=0x000B9B08048 HiKey960FastbootDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/drivers/Usb/DwUsb3Dxe/DwUsb3Dxe/DEBUG/DwUsb3Dxe.dll 0xB9AF9000
Loading driver at 0x000B9AF8000 EntryPoint=0x000B9AF9048 DwUsb3Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe/DEBUG/FastbootTransportUsbDxe.dll 0xB9AF1000
Loading driver at 0x000B9AF0000 EntryPoint=0x000B9AF1048 FastbootTransportUsbDxe.efi














































Press ESCAPE for boot options ufs: H**** device must set VS_DebugSaveConfigTime 0x10
.[Bds]Booting Boot from SD
[Bds]Booting Grub
[Bds]Booting Android Boot
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp/DEBUG/AndroidBootApp.dll 0xB9ADC000
Loading driver at 0x000B9ADB000 EntryPoint=0x000B9ADC000 AndroidBootApp.efi
Failed to get Abootimg Size: Invalid Parameter
Failed to load boot image from boot partition: Invalid Parameter
Failed to boot from partition: Invalid Parameter
Error: Image at 000B9ADB000 start failed: Invalid Parameter
remove-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp/DEBUG/AndroidBootApp.dll 0xB9ADC000
Image Return Status = Invalid Parameter
[Bds]Booting Android Fastboot
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp/DEBUG/AndroidFastbootApp.dll 0xB9AD9000
Loading driver at 0x000B9AD8000 EntryPoint=0x000B9AD9000 AndroidFastbootApp.efi
Android Fastboot mode - version 0.7.
Press RETURN or SPACE key to quit.

@jhughes It seems that UEFI is not able to detect boot partition (boot*.img). Did you issue following command to reboot after flashing fip.bin image?

$ sudo fastboot reboot-bootloader

Actually boot*.img and rootfs*.img needs to be installed in UEFI fastboot mode. So again try to flash these images in UEFI fastboot mode as shown in the boot-logs.

@sumit.garg thanks for your response.

Yes I do use that command after flashing fip.bin. Are you saying I should not reboot the bootloader at all? I just tried flashing and rebooting after flashing the rootfs image but no luck still.

I do all the flashing with the board in fastboot mode - I don’t understand what you mean by flashing again as shown in the boot-logs - can you elaborate?

Thanks.

No I mean to say you should reboot after flashing “fip.bin”.

I mean to say that try to flash boot*.img and rootfs*.img after you get following console logs:

>     Android Fastboot mode - version 0.7.
>     Press RETURN or SPACE key to quit.

Also after flashing is complete, turn switch settings to 1-0-0 for normal boot.

Hi @sumit.garg,

This is exactly what I have done. I retried the flashing process but get the same error as in my initial post when I start the board in normal mode.

Here are the logs for the flashing process (+commands on Linux VM). They show that everything completes successfully.

$ sudo fastboot flash ptable prm_ptable.img
$ sudo fastboot flash fastboot l-loader.bin
$ sudo fastboot flash fip fip.bin
$ sudo fastboot reboot-bootloader

usbloader: usb_rx_cmd_complete() 'getvar:partition-type:ptable', size is 0x0000001c
usbloader: usb_rx_cmd_complete() 'getvar:max-download-size', size is 0x00000018
usbloader: usb_rx_cmd_complete() 'download:00006000', size is 0x00000011
usbloader: usb_rx_cmd_complete() 'flash:ptable', size is 0x0000000c
secureboot: SecBoot_GetVrlOffset: get ptn offset error!
secureboot: SecBoot_GetVrlOffset: get ptn offset error!
usbloader: [auto_resize]:start amend ptable
usbloader: [auto_resize]:Success to resize ptable image
usbloader: usb_rx_cmd_complete() 'getvar:partition-type:fastboot', size is 0x0000001e
usbloader: usb_rx_cmd_complete() 'getvar:max-download-size', size is 0x00000018
usbloader: usb_rx_cmd_complete() 'download:00006470', size is 0x00000011
usbloader: usb_rx_cmd_complete() 'flash:fastboot', size is 0x0000000e
usbloader: writing 25712 bytes to 'fastboot'...
usbloader:
partition 'fastboot' updated
usbloader:  - OKAY
reboot_reason: set_reboot_type is 0x00000013.
usbloader: usb_rx_cmd_complete() 'getvar:partition-type:fip', size is 0x00000019
usbloader: usb_rx_cmd_complete() 'getvar:max-download-size', size is 0x00000018
usbloader: usb_rx_cmd_complete() 'download:00171a00', size is 0x00000011
usbloader: usb_rx_cmd_complete() 'flash:fip', size is 0x00000009
usbloader: writing 1513984 bytes to 'fip'...
usbloader:
partition 'fip' updated
usbloader:  - OKAY
reboot_reason: set_reboot_type is 0x00000013.
usbloader: usb_rx_cmd_complete() 'reboot-bootloader', size is 0x00000011
ufs: ufs power mode = 0x00000033
usbloader: reboot bootloader
reboot_reason: set_reboot_type is 0x00000001.
reboot_reason: tmp =0x8effcc70
hikey960 boarid:5301 xloader use UART6
scsysstat_value[8].
clear reset source
last_keypoint32,reboot_type1
secdbg not DCU.
SecDbgVer exit

 xloader chipid is: 0x36600110, start at 372ms.
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: 0x00080008,0x00080008,0x00080008,0x00080008,0x00080008,0x00080008,0x00080008,0x00080008
ddr info 0x00000401
400M
685M
1067M
C1R,V0x0000002e e:66
C2R,V0x0000002e e:66
C3R,V0x0000002f e:66
C0R,V0x00000030 e:66
C1R,V0x0000002f e:66
C2R,V0x0000002f e:66
C3R,V0x00000030 e:66
C0R,V0x00000031 e:66
C1R,V0x00000030 e:66
C2R,V0x00000030 e:66
C3R,V0x00000031 e:66
C0R,V0x00000032 e:66
C1R,V0x00000031 e:65
C2R,V0x00000031 e:66
C3R,V0x00000032 e:65
C0R,V0x00000033 e:65
C1R,V0x00000032 e:65
C2R,V0x00000032 e:65
C3R,V0x00000033 e:65
C1R,V0x0000002f e:66
C1R,V0x00000030 e:66
C2R,V0x0000002f e:66
C0R,V0x00000030 e:66
C1R,V0x00000031 e:66
C2R,V0x00000030 e:66
C3R,V0x00000030 e:66
C0R,V0x00000031 e:66
C1R,V0x00000032 e:65
C2R,V0x00000031 e:66
C3R,V0x00000031 e:66
C0R,V0x00000032 e:66
C1R,V0x00000033 e:65
C2R,V0x00000032 e:65
C3R,V0x00000032 e:65
C0R,V0x00000033 e:65
C1R,V0x00000034 e:65
C2R,V0x00000033 e:65
C3R,V0x00000033 e:65
1244M
1866M
C1R,V0x00000014 e:113
C1R,V0x00000015 e:66
C2R,V0x00000015 e:66
C1R,V0x00000016 e:66
C2R,V0x00000016 e:66
C3R,V0x00000016 e:66
C0R,V0x00000017 e:66
C1R,V0x00000017 e:66
C2R,V0x00000017 e:66
C3R,V0x00000017 e:66
C1R,V0x00000015 e:193
C2R,V0x00000015 e:66
C1R,V0x00000016 e:66
C2R,V0x00000016 e:66
C0R,V0x00000017 e:66
C1R,V0x00000017 e:66
C2R,V0x00000017 e:66
C3R,V0x00000017 e:66
pack0Idx0Dcc:0
pack1Idx0Dcc:0
pack2Idx0Dcc:0
pack3Idx0Dcc:0
iomcu_subsys_init
boot_c0 PROFILE 4
NOTICE:  BL2: v1.5(release):v1.5-594-ge313c122
NOTICE:  BL2: Built : 09:03:15, Aug  2 2018
NOTICE:  ufs: H**** device must set VS_DebugSaveConfigTime 0x10
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v1.5(release):v1.5-594-ge313c122
NOTICE:  BL31: Built : 09:03:15, Aug  2 2018
I/TC:
I/TC:  OP-TEE version: 3.0.0 #1 Thu Aug  2 09:03:11 UTC 2018 aarch64
I/TC:  Initialized
UEFI firmware (version Alpha built at 09:02:56 on Aug  2 2018)
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0xBF18B000
Loading DxeCore at 0x00BF18A000 EntryPoint=0x00BF18B000
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0xBF18B000
HOBLIST address in DXE = 0xBEF4D018
Memory Allocation 0x00000004 0xBFFE8000 - 0xBFFE8FFF
Memory Allocation 0x00000004 0xBFFE7000 - 0xBFFE7FFF
Memory Allocation 0x00000004 0xBFFE6000 - 0xBFFE6FFF
Memory Allocation 0x00000004 0xBFFE5000 - 0xBFFE5FFF
Memory Allocation 0x00000004 0xBFFE4000 - 0xBFFE4FFF
Memory Allocation 0x00000004 0xBFFE9000 - 0xBFFFFFFF
Memory Allocation 0x00000004 0xBFFD4000 - 0xBFFE3FFF
Memory Allocation 0x00000004 0xBF8CE000 - 0xBFFD3FFF
Memory Allocation 0x00000004 0xBF1C8000 - 0xBF8CDFFF
Memory Allocation 0x00000004 0xBF18A000 - 0xBF1C7FFF
Memory Allocation 0x00000003 0xBF18A000 - 0xBF1C7FFF
FV Hob            0x1AC98000 - 0x1AD87FFF
FV Hob            0xBF1C8000 - 0xBF8CC7FF
FV2 Hob           0xBF1C8000 - 0xBF8CC7FF
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/PCD/Dxe/Pcd/DEBUG/PcdDxe.dll 0xBF0D1000
Loading driver at 0x000BF0D0000 EntryPoint=0x000BF0D1048 PcdDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/drivers/CpuDxe/CpuDxe/DEBUG/ArmCpuDxe.dll 0xBF0C1000
Loading driver at 0x000BF0C0000 EntryPoint=0x000BF0C1048 ArmCpuDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/RuntimeDxe/RuntimeDxe/DEBUG/RuntimeDxe.dll 0xBA0D0000
Loading driver at 0x000BA0C0000 EntryPoint=0x000BA0D0048 RuntimeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe/DEBUG/SecurityStubDxe.dll 0xBF0B1000
Loading driver at 0x000BF0B0000 EntryPoint=0x000BF0B1048 SecurityStubDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter/DEBUG/EmbeddedMonotonicCounter.dll 0xBA030000
Loading driver at 0x000BA020000 EntryPoint=0x000BA030048 EmbeddedMonotonicCounter.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe/DEBUG/Reset.dll 0xB9F90000
Loading driver at 0x000B9F80000 EntryPoint=0x000B9F90048 Reset.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe/DEBUG/RealTimeClock.dll 0xB9EF0000
Loading driver at 0x000B9EE0000 EntryPoint=0x000B9EF0048 RealTimeClock.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/MetronomeDxe/MetronomeDxe/DEBUG/MetronomeDxe.dll 0xBF0A9000
Loading driver at 0x000BF0A8000 EntryPoint=0x000BF0A9048 MetronomeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SerialDxe/SerialDxe/DEBUG/SerialDxe.dll 0xBF0A1000
Loading driver at 0x000BF0A0000 EntryPoint=0x000BF0A1048 SerialDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960GpioDxe/HiKey960GpioDxe/DEBUG/HiKey960Gpio.dll 0xBF09A000
Loading driver at 0x000BF099000 EntryPoint=0x000BF09A048 HiKey960Gpio.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPlatformPkg/drivers/PL061GpioDxe/PL061GpioDxe/DEBUG/PL061GpioDxe.dll 0xBF091000
Loading driver at 0x000BF090000 EntryPoint=0x000BF091048 PL061GpioDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960Dxe/HiKey960Dxe/DEBUG/HiKey960Dxe.dll 0xBF07C000
Loading driver at 0x000BF07B000 EntryPoint=0x000BF07C048 HiKey960Dxe.efi
[BDID]Adcin0:218
[BDID]Adcin0Remap:1
[BDID]Adcin1:0
[BDID]Adcin1Remap:0
[BDID]Adcin2:593
[BDID]Adcin2Remap:3
[BDID]boardid: 5301
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/DpcDxe/DpcDxe/DEBUG/DpcDxe.dll 0xBF074000
Loading driver at 0x000BF073000 EntryPoint=0x000BF074048 DpcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe/DEBUG/EmuVariableRuntimeDxe.dll 0xB9E50000
Loading driver at 0x000B9E40000 EntryPoint=0x000B9E50048 EmuVariableRuntimeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe/DEBUG/HiiDatabase.dll 0xBF043000
Loading driver at 0x000BF042000 EntryPoint=0x000BF043048 HiiDatabase.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe/DEBUG/DevicePathDxe.dll 0xBF02E000
Loading driver at 0x000BF02D000 EntryPoint=0x000BF02E048 DevicePathDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe/DEBUG/CapsuleRuntimeDxe.dll 0xB9DB0000
Loading driver at 0x000B9DA0000 EntryPoint=0x000B9DB0048 CapsuleRuntimeDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/drivers/ArmGic/ArmGicDxe/DEBUG/ArmGicDxe.dll 0xBF024000
Loading driver at 0x000BF023000 EntryPoint=0x000BF024048 ArmGicDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe/DEBUG/FaultTolerantWriteDxe.dll 0xBF015000
Loading driver at 0x000BF014000 EntryPoint=0x000BF015048 FaultTolerantWriteDxe.efi
Ftw: Workspace or Spare block does not exist!
Error: Image at 000BF014000 start failed: Invalid Parameter
remove-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe/DEBUG/FaultTolerantWriteDxe.dll 0xBF015000
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe/DEBUG/SetupBrowser.dll 0xBEFF8000
Loading driver at 0x000BEFF7000 EntryPoint=0x000BEFF8048 SetupBrowser.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/BdsDxe.dll 0xBEFCD000
Loading driver at 0x000BEFCC000 EntryPoint=0x000BEFCD048 BdsDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/drivers/DtPlatformDxe/DtPlatformDxe/DEBUG/DtPlatformDxe.dll 0xBEFC3000
Loading driver at 0x000BEFC2000 EntryPoint=0x000BEFC3048 DtPlatformDxe.efi
DtPlatformDxeEntryPoint: no DT/ACPI preference found, defaulting to DT
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/drivers/TimerDxe/TimerDxe/DEBUG/ArmTimerDxe.dll 0xBEFBA000
Loading driver at 0x000BEFB9000 EntryPoint=0x000BEFBA048 ArmTimerDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe/DEBUG/DisplayEngine.dll 0xBEF97000
Loading driver at 0x000BEF96000 EntryPoint=0x000BEF97048 DisplayEngine.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer/DEBUG/WatchdogTimer.dll 0xBEF8F000
Loading driver at 0x000BEF8E000 EntryPoint=0x000BEF8F048 WatchdogTimer.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe/DEBUG/ConPlatformDxe.dll 0xBEF84000
Loading driver at 0x000BEF83000 EntryPoint=0x000BEF84048 ConPlatformDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe/DEBUG/TerminalDxe.dll 0xBEF71000
Loading driver at 0x000BEF70000 EntryPoint=0x000BEF71048 TerminalDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/drivers/Keyboard/VirtualKeyboardDxe/VirtualKeyboardDxe/DEBUG/VirtualKeyboardDxe.dll 0xBEF66000
Loading driver at 0x000BEF65000 EntryPoint=0x000BEF66048 VirtualKeyboardDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960MmcDxe/HiKey960MmcDxe/DEBUG/HiKey960MmcDxe.dll 0xBEF5D000
Loading driver at 0x000BEF5C000 EntryPoint=0x000BEF5D048 HiKey960MmcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe/DEBUG/NonDiscoverablePciDeviceDxe.dll 0xB9D44000
Loading driver at 0x000B9D43000 EntryPoint=0x000B9D44048 NonDiscoverablePciDeviceDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/drivers/SdMmc/DwMmcHcDxe/DwMmcHcDxe/DEBUG/DwMmcHcDxe.dll 0xB9D30000
Loading driver at 0x000B9D2F000 EntryPoint=0x000B9D30048 DwMmcHcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Sd/SdDxe/SdDxe/DEBUG/SdDxe.dll 0xB9D20000
Loading driver at 0x000B9D1F000 EntryPoint=0x000B9D20048 SdDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/MnpDxe/MnpDxe/DEBUG/MnpDxe.dll 0xB9D08000
Loading driver at 0x000B9D07000 EntryPoint=0x000B9D08048 MnpDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/ArpDxe/ArpDxe/DEBUG/ArpDxe.dll 0xB9CF8000
Loading driver at 0x000B9CF7000 EntryPoint=0x000B9CF8048 ArpDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Dxe/DEBUG/Ip4Dxe.dll 0xB9CD1000
Loading driver at 0x000B9CD0000 EntryPoint=0x000B9CD1048 Ip4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Dxe/DEBUG/Udp4Dxe.dll 0xB9CBC000
Loading driver at 0x000B9CBB000 EntryPoint=0x000B9CBC048 Udp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Tcp4Dxe/Tcp4Dxe/DEBUG/Tcp4Dxe.dll 0xB9C9A000
Loading driver at 0x000B9C99000 EntryPoint=0x000B9C9A048 Tcp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Dxe/DEBUG/Dhcp4Dxe.dll 0xB9C84000
Loading driver at 0x000B9C83000 EntryPoint=0x000B9C84048 Dhcp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Dxe/DEBUG/Mtftp4Dxe.dll 0xB9C6E000
Loading driver at 0x000B9C6D000 EntryPoint=0x000B9C6E048 Mtftp4Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/UefiPxeBcDxe/UefiPxeBcDxe/DEBUG/UefiPxe4BcDxe.dll 0xB9C57000
Loading driver at 0x000B9C56000 EntryPoint=0x000B9C57048 UefiPxe4BcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OptionRomPkg/Bus/Usb/UsbNetworking/Ax88772b/Ax88772b/DEBUG/Ax88772b.dll 0xB9C10000
Loading driver at 0x000B9C00000 EntryPoint=0x000B9C10048 Ax88772b.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/drivers/Block/DwUfsHcDxe/DwUfsHcDxe/DEBUG/DwUfsHcDxe.dll 0xB9BA4000
Loading driver at 0x000B9BA3000 EntryPoint=0x000B9BA4048 DwUfsHcDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Ufs/UfsPassThruDxe/UfsPassThruDxe/DEBUG/UfsPassThruDxe.dll 0xB9B92000
Loading driver at 0x000B9B91000 EntryPoint=0x000B9B92048 UfsPassThruDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Scsi/ScsiBusDxe/ScsiBusDxe/DEBUG/ScsiBus.dll 0xB9B85000
Loading driver at 0x000B9B84000 EntryPoint=0x000B9B85048 ScsiBus.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Scsi/ScsiDiskDxe/ScsiDiskDxe/DEBUG/ScsiDisk.dll 0xB9B6F000
Loading driver at 0x000B9B6E000 EntryPoint=0x000B9B6F048 ScsiDisk.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/DiskIoDxe/DiskIoDxe/DEBUG/DiskIoDxe.dll 0xB9B62000
Loading driver at 0x000B9B61000 EntryPoint=0x000B9B62048 DiskIoDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/PartitionDxe/PartitionDxe/DEBUG/PartitionDxe.dll 0xB9B53000
Loading driver at 0x000B9B52000 EntryPoint=0x000B9B53048 PartitionDxe.efi
add-symbol-file /work/jenkins/workspace/ap-uefi-bin/EDK2_ARCH/ARM/EDK2_BINARY/FatPkg/label/sas-sw/Build/Fat/RELEASE_GCC49/AARCH64/FatPkg/EnhancedFatDxe/Fat/DEBUG/Fat.dll 0xBEF55260
Loading driver at 0x000BEF55000 EntryPoint=0x000BEF552A8 Fat.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Disk/UnicodeCollation/EnglishDxe/EnglishDxe/DEBUG/EnglishDxe.dll 0xBA115000
Loading driver at 0x000BA114000 EntryPoint=0x000BA115048 EnglishDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Usb/UsbBusDxe/UsbBusDxe/DEBUG/UsbBusDxe.dll 0xB9B3E000
Loading driver at 0x000B9B3D000 EntryPoint=0x000B9B3E048 UsbBusDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Usb/UsbMassStorageDxe/UsbMassStorageDxe/DEBUG/UsbMassStorageDxe.dll 0xB9B2F000
Loading driver at 0x000B9B2E000 EntryPoint=0x000B9B2F048 UsbMassStorageDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960UsbDxe/HiKey960UsbDxe/DEBUG/HiKey960UsbDxe.dll 0xB9B1D000
Loading driver at 0x000B9B1C000 EntryPoint=0x000B9B1D048 HiKey960UsbDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960FastbootDxe/HiKey960FastbootDxe/DEBUG/HiKey960FastbootDxe.dll 0xB9B08000
Loading driver at 0x000B9B07000 EntryPoint=0x000B9B08048 HiKey960FastbootDxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/drivers/Usb/DwUsb3Dxe/DwUsb3Dxe/DEBUG/DwUsb3Dxe.dll 0xB9AF9000
Loading driver at 0x000B9AF8000 EntryPoint=0x000B9AF9048 DwUsb3Dxe.efi
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe/DEBUG/FastbootTransportUsbDxe.dll 0xB9AF1000
Loading driver at 0x000B9AF0000 EntryPoint=0x000B9AF1048 FastbootTransportUsbDxe.efi























Press ESCAPE for boot options ufs: H**** device must set VS_DebugSaveConfigTime 0x10
.[Bds]Booting Android Fastboot
add-symbol-file /home/buildslave/workspace/96boards-reference-uefi-staging/74/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp/DEBUG/AndroidFastbootApp.dll 0xB9AD9000
Loading driver at 0x000B9AD8000 EntryPoint=0x000B9AD9000 AndroidFastbootApp.efi
Android Fastboot mode - version 0.7.
Press RETURN or SPACE key to quit.

Output on Linux VM after reboot of bootloader

[ 8302.011874] usb 1-1: language id specifier not provided by device, defaulting to English

$ sudo fastboot flash boot boot-linaro-stretch-developer-hikey-.img
$ sudo fastboot flash system rootfs-linaro-stretch-developer-hikey-
.img

Fastboot platform: check for partition-type:boot
Downloading 67108864 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:67108864
67108864 / 67108864 bytes downloaded (100%)
Flashing partition boot
Done.
Fastboot platform: check for partition-type:system
Erasing partition system
Downloading 130048320 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:130048320
130048320 / 130048320 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 133712388 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:133712388
133712388 / 133712388 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 132264000 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:132264000
132264000 / 132264000 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 130340100 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:130340100
130340100 / 130340100 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 133904068 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:133904068
133904068 / 133904068 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 133873140 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:133873140
133873140 / 133873140 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 133798208 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:133798208
133798208 / 133798208 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 134216664 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:134216664
134216664 / 134216664 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 133910348 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:133910348
133910348 / 133910348 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 130886428 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:130886428
130886428 / 130886428 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 131211580 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:131211580
131211580 / 131211580 bytes downloaded (100%)
Flashing partition system
Done.
Downloading 5841048 bytes
#FastbootTransportUsbRequestReceive, 255, BufferSize:5841048
 5841048 /  5841048 bytes downloaded (100%)
Flashing partition system
Done.

@jhughes Flashing seems to be correct. From below logs it seems your hikey960 is equipped with hynix ufs flash.

>     Press ESCAPE for boot options ufs: H**** device must set VS_DebugSaveConfigTime 0x10
>     .[Bds]Booting Boot from SD
>     [Bds]Booting Grub
>     [Bds]Booting Android Boot

@guodong @leo-yan Any idea regarding above issue? It seems that UEFI is not able to detect boot partition placed on hynix ufs flash.

Any other thoughts on how to resolve this issue? I still have had no luck getting it to boot.

Hi @jhughes,

Do you have SD card inserted during boot? I have seen issues with SD card and UEFI on HiKey960. Can you please try to remove if you have it inserted and try again?

Sorry, I don’t have any other clue of what is going wrong.

Thanks,
Mani

I don’t have an SD card inserted no. Could it be anything to do with using a VM? Perhaps VMware is doing something odd.

At the moment I use the ./recovery-flash.sh script to recover the board and can get it to boot in AOSP again. Is it worth buidling UEFI from source as that seems to be where the problem is?

Should I follow these steps to do so?

Or would you recommend rescuing using hikey_idt?

Your advice would be appreciated, thanks.

Hi, any luck with your board? I have the exact same issue with you. Is it because the new 4G hynix flash?

I’m afraid this issue is still not solved. Me also have the same issue. Hopefully there will be a day in the near future the HiKey960 supports Linux. :frowning:

@MichaelG

Have you tried the latest firmware and kernel as per this post? 4.19.5 kernel based Debian snapshot image release for HiKey960

oops. I have only used http://snapshots.linaro.org/96boards/hikey/linaro/debian/latest/
The topic you posted contains more links. I will try this. Thanks!

I ran into the same problem and wasn’t able to solve it using the EDK2 bootloader. In the end I was able to boot by using the standard bootloader and an AOSP-style boot partition created from the kernel in the rootfs. Here are the commands that I used (N.B. this requires the simg2img and mkbootimg commands from an AOSP build):

simg2img rootfs-linaro-stretch-developer-hikey-20190620-32.img rootfs-linaro-stretch-developer-hikey-20190620-32.img.raw
mount -o loop,ro rootfs-linaro-stretch-developer-hikey-20190620-32.img.raw mnt
cat mnt/boot/vmlinuz-4.19.5-hikey mnt/usr/lib/linux-image-4.19.5-hikey/hisilicon/hi3660-hikey960.dtb > Image.gz-dtb
mkbootimg  --kernel Image.gz-dtb --ramdisk mnt/boot/initrd.img-4.19.5-hikey --cmdline "loglevel=15 root=/dev/disk/by-uuid/8b58cef0-6d56-4af5-b05c-8c00774239cf" --os_version R --os_patch_level 2019-06-05 --base 0x0 --tags_offset 0x07a00000 --kernel_offset 0x00080000 --ramdisk_offset 0x07c00000 --output boot.img
fastboot flash boot boot.img

Hi @mani,

I see that you mention problems with UEFI on Hikey960 when SD card is used. I have flashed the UEFI firmware and am able to boot Debian from flash, but not from an SD card. Whenever any SD card is inserted at powerup, UEFI stalls with the console message “Press ESC for boot options” and is unresponsive and does not enter the Boot Manager nor Fastboot.

Is this what you have observed, and do you have any solutions or workarounds?