Building Latest Android

Hello,
I’ve been following the instructions for building Android for the board located at https://source.android.com/source/devices#hikey960. These instructions worked before (around the start of July) and I was able to get a working system. However, it seems that they are a little out of date and no longer seem to work.

In the ‘Building the Kernel’ section of the instructions, it says:

Copy hi3660-hikey960.dtb (arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb) to the hikey-kernel directory as file hi3660-hikey960.dtb.
Copy the Image file (arch/arm64/boot/Image.gz) to the hikey-kernel directory as file Image.gz-hikey960.

However, it looks like AOSP is expecting these files to be named differently, since I see -4.4 and -4.9 versions of each of the files in the destination directories (e.g. hi3660-hikey960.dtb-4.4 and hi3660-hikey960.dtb-4.9). I’ve tried to use the -4.9 paths but this still doesn’t give me a booting system. I don’t have a UART connected so I can’t provide any logs, but the green LED does not flash (which it does for a working system) and adb and fastboot do not detect any devices.

Does anyone have any advice on how to fix this problem?

the green led doesn’t flash… I want to start from the basic, did you remove the board from fastboot mode, turn off switch 3?

the copy commands should be

    cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb ../device/linaro/hikey-kernel/
    cp arch/arm64/boot/Image.gz ../device/linaro/hikey-kernel/Image.gz-hikey960

then cd back into the build directory for aosp and run

    make bootimage -j24

then

    sudo fastboot flash boot out/target/product/hikey960/boot.img

PS: you do not need to build the kernel, it is already prebuilt in the android source, only build if you need any modificactions

Hi ric,

Yes, I’ve rebooted the board with fastboot disabled. I can verify this because the device is no longer visible to fastboot.

I’ve tried copying the file like that, but it doesn’t cause any image to be rebuilt. It seems that the AOSP build system is no longer looking for device/linaro/hikey-kernel/hi3660-hikey960.dtb.

Thanks!

did you try

make clean

Your are right, a patch to add multi-kernel support has been merged (64185fa1e180e2b) in aosp.
This has not been reported to the android documentation.

New makefile expects:
device/linaro/hikey-kernel/Image.gz-hikey960-4.9
device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9

e.g.
cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb …/aosp/device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9
cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb …/aosp/device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9

yup, I’m having the same issue now. resolved with -4.9

created a site feedback, they should resolve it soon

1 Like

for the kernel this will be

cp arch/arm64/boot/Image.gz …/aosp/device/linaro/hikey-kernel/Image.gz-hikey960-4.9

in addition to dtb as you mentioned

Hi,

looks like this was not changed yet and indeed I ran into same issue

moving forward I tried to use fip generated from https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/plat/hikey960.rst but looks like handover from UEFI to android loader crashes( see log below)

I’m surprised by this “Booting from SD” default option. My intent is to boot from UFS so I wonder if it’s only a legacy naming issue or if EFI driver eventually tries to access SD card…

Any thoughts?

INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x1ac98000
INFO: SPSR = 0x3c9
UEFI firmware (version Alpha built at 09:57:12 on Sep 11 2017)
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0xBF1F3000
Loading DxeCore at 0x00BF1F2000 EntryPoint=0x00BF1F3000
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll 0xBF1F3000
HOBLIST address in DXE = 0xBEFBD018
Memory Allocation 0x00000004 0xBFFE8000 - 0xBFFE8FFF
Memory Allocation 0x00000004 0xBFFE7000 - 0xBFFE7FFF
Memory Allocation 0x00000004 0xBFFE6000 - 0xBFFE6FFF
Memory Allocation 0x00000004 0xBFFE5000 - 0xBFFE5FFF
Memory Allocation 0x00000004 0xBFFE9000 - 0xBFFFFFFF
Memory Allocation 0x00000004 0xBFFD5000 - 0xBFFE4FFF
Memory Allocation 0x00000004 0xBF902000 - 0xBFFD4FFF
Memory Allocation 0x00000004 0xBF22F000 - 0xBF901FFF
Memory Allocation 0x00000004 0xBF1F2000 - 0xBF22EFFF
Memory Allocation 0x00000003 0xBF1F2000 - 0xBF22EFFF
FV Hob 0x1AC98000 - 0x1AD87FFF
FV Hob 0xBF22F000 - 0xBF900EBF
FV2 Hob 0xBF22F000 - 0xBF900EBF
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/PCD/Dxe/Pcd/DEBUG/PcdDxe.dll 0xBF141000
Loading driver at 0x000BF140000 EntryPoint=0x000BF141048 PcdDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/CpuDxe/CpuDxe/DEBUG/ArmCpuDxe.dll 0xBF131000
Loading driver at 0x000BF130000 EntryPoint=0x000BF131048 ArmCpuDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/RuntimeDxe/RuntimeDxe/DEBUG/RuntimeDxe.dll 0xBA140000
Loading driver at 0x000BA130000 EntryPoint=0x000BA140048 RuntimeDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe/DEBUG/SecurityStubDxe.dll0
Loading driver at 0x000BF120000 EntryPoint=0x000BF121048 SecurityStubDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/EmbeddedMonotonicCounter/EmbeddedMonotonicCounter/DEBUG/EmbeddedMono0
Loading driver at 0x000BA090000 EntryPoint=0x000BA0A0048 EmbeddedMonotonicCounter.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/ResetRuntimeDxe/ResetRuntimeDxe/DEBUG/Reset.dll 0xBA000000
Loading driver at 0x000B9FF0000 EntryPoint=0x000BA000048 Reset.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/RealTimeClockRuntimeDxe/RealTimeClockRuntimeDxe/DEBUG/RealTimeClock.0
Loading driver at 0x000B9F50000 EntryPoint=0x000B9F60048 RealTimeClock.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/MetronomeDxe/MetronomeDxe/DEBUG/MetronomeDxe.dll 0xBF119000
Loading driver at 0x000BF118000 EntryPoint=0x000BF119048 MetronomeDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SerialDxe/SerialDxe/DEBUG/SerialDxe.dll 0xBF111000
Loading driver at 0x000BF110000 EntryPoint=0x000BF111048 SerialDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960GpioDxe/HiKey960GpioDxe/DEB0
Loading driver at 0x000BF109000 EntryPoint=0x000BF10A048 HiKey960Gpio.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPlatformPkg/Drivers/PL061GpioDxe/PL061GpioDxe/DEBUG/PL061GpioDxe.dll 0xBF10100
Loading driver at 0x000BF100000 EntryPoint=0x000BF101048 PL061GpioDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960Dxe/HiKey960Dxe/DEBUG/HiKey0
Loading driver at 0x000BF0EB000 EntryPoint=0x000BF0EC048 HiKey960Dxe.efi
[BDID]Adcin0:230
[BDID]Adcin0Remap:1
[BDID]Adcin1:0
[BDID]Adcin1Remap:0
[BDID]Adcin2:597
[BDID]Adcin2Remap:3
[BDID]boardid: 5301
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Network/DpcDxe/DpcDxe/DEBUG/DpcDxe.dll 0xBF0E4000
Loading driver at 0x000BF0E3000 EntryPoint=0x000BF0E4048 DpcDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Variable/EmuRuntimeDxe/EmuVariableRuntimeDxe/DEBUG/EmuVar0
Loading driver at 0x000B9EB0000 EntryPoint=0x000B9EC0048 EmuVariableRuntimeDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/HiiDatabaseDxe/HiiDatabaseDxe/DEBUG/HiiDatabase.dll 0xBF00
Loading driver at 0x000BF0B2000 EntryPoint=0x000BF0B3048 HiiDatabase.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/DevicePathDxe/DevicePathDxe/DEBUG/DevicePathDxe.dll 0xBF00
Loading driver at 0x000BF09D000 EntryPoint=0x000BF09E048 DevicePathDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe/DEBUG/CapsuleRuntimeD0
Loading driver at 0x000B9E10000 EntryPoint=0x000B9E20048 CapsuleRuntimeDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/ArmGic/ArmGicDxe/DEBUG/ArmGicDxe.dll 0xBF094000
Loading driver at 0x000BF093000 EntryPoint=0x000BF094048 ArmGicDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe/DEBUG/FaultTo0
Loading driver at 0x000BF084000 EntryPoint=0x000BF085048 FaultTolerantWriteDxe.efi
Ftw: Workspace or Spare block does not exist!
Error: Image at 000BF084000 start failed: Invalid Parameter
remove-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteDxe/DEBUG/Faul0
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/SetupBrowserDxe/SetupBrowserDxe/DEBUG/SetupBrowser.dll 0x0
Loading driver at 0x000BF068000 EntryPoint=0x000BF069048 SetupBrowser.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/BdsDxe.dll 0xBF03E000
Loading driver at 0x000BF03D000 EntryPoint=0x000BF03E048 BdsDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/ArmPkg/Drivers/TimerDxe/TimerDxe/DEBUG/ArmTimerDxe.dll 0xBF035000
Loading driver at 0x000BF034000 EntryPoint=0x000BF035048 ArmTimerDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe/DEBUG/DisplayEngine.dll0
Loading driver at 0x000BF012000 EntryPoint=0x000BF013048 DisplayEngine.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/WatchdogTimerDxe/WatchdogTimer/DEBUG/WatchdogTimer.dll 0x0
Loading driver at 0x000BF00A000 EntryPoint=0x000BF00B048 WatchdogTimer.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Console/ConPlatformDxe/ConPlatformDxe/DEBUG/ConPlatformDx0
Loading driver at 0x000BEFFF000 EntryPoint=0x000BF000048 ConPlatformDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/Console/TerminalDxe/TerminalDxe/DEBUG/TerminalDxe.dll 0xB0
Loading driver at 0x000BEFEC000 EntryPoint=0x000BEFED048 TerminalDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Drivers/Keyboard/VirtualKeyboardDxe/VirtualKeyboardDxe/DEBUG/Vir0
Loading driver at 0x000BEFE1000 EntryPoint=0x000BEFE2048 VirtualKeyboardDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960MmcDxe/HiKey960MmcDxe/DEBUG0
Loading driver at 0x000BEFD9000 EntryPoint=0x000BEFDA048 HiKey960MmcDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Bus/Pci/NonDiscoverablePciDeviceDxe/NonDiscoverablePciDeviceDxe/DEB0
Loading driver at 0x000BEFCC000 EntryPoint=0x000BEFCD048 NonDiscoverablePciDeviceDxe.efi
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Drivers/SdMmc/DwMmcHcDxe/DwMmcHcDxe/DEBUG/DwMmcHcDxe.dll 0xB9DAE0
Loading driver at 0x000B9DAD000 EntryPoint=0x000B9DAE048 DwMmcHcDxe.efi
Press ESCAPE for boot options UfsExecScsiCmds() fails with Target Failure
UfsExecScsiCmds() fails with Target Failure
UfsExecScsiCmds() fails with Target Failure
UfsExecScsiCmds() fails with Target Failure
…[Bds]Booting Boot from SD
[Bds]Booting Grub
[Bds]Booting Android Boot
add-symbol-file ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp/DEBUG/AndroidBootApp.dll 0xBA0
Loading driver at 0x000BA195000 EntryPoint=0x000BA196000 AndroidBootApp.efi

Synchronous Exception at 0x00000000BF0F7838
PC 0x0000BF0F7838 (0x0000BF0EB000+0x0000C838) [ 0] HiKey960Dxe.dll
PC 0x0000BF0ED120 (0x0000BF0EB000+0x00002120) [ 0] HiKey960Dxe.dll
PC 0x0000BA197744 (0x0000BA195000+0x00002744) [ 1] AndroidBootApp.dll
PC 0x0000BA1978B4 (0x0000BA195000+0x000028B4) [ 1] AndroidBootApp.dll
PC 0x0000BA196814 (0x0000BA195000+0x00001814) [ 1] AndroidBootApp.dll
PC 0x0000BA1963E0 (0x0000BA195000+0x000013E0) [ 1] AndroidBootApp.dll
PC 0x0000BA196064 (0x0000BA195000+0x00001064) [ 1] AndroidBootApp.dll
PC 0x0000BF1F89EC (0x0000BF1F2000+0x000069EC) [ 2] DxeCore.dll
PC 0x0000BF04E344 (0x0000BF03D000+0x00011344) [ 3] BdsDxe.dll
PC 0x0000BF03EE90 (0x0000BF03D000+0x00001E90) [ 3] BdsDxe.dll
PC 0x0000BF040564 (0x0000BF03D000+0x00003564) [ 3] BdsDxe.dll
PC 0x0000BF1F4358 (0x0000BF1F2000+0x00002358) [ 4] DxeCore.dll
PC 0x0000BF1F341C (0x0000BF1F2000+0x0000141C) [ 4] DxeCore.dll
PC 0x0000BF1F3024 (0x0000BF1F2000+0x00001024) [ 4] DxeCore.dll

[ 0] ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/OpenPlatformPkg/Platforms/Hisilicon/HiKey960/HiKey960Dxe/HiKey960Dxe/DEBUG/HiKey960Dxe.dll
[ 1] ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/EmbeddedPkg/Application/AndroidBoot/AndroidBootApp/DEBUG/AndroidBootApp.dll
[ 2] ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll
[ 3] ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Universal/BdsDxe/BdsDxe/DEBUG/BdsDxe.dll
[ 4] ~/WORK/ATF-hikey960/edk2/Build/HiKey960/DEBUG_GCC5/AARCH64/MdeModulePkg/Core/Dxe/DxeMain/DEBUG/DxeCore.dll

X0 0x000000015CD62EBB X1 0x00000000BFFFF648 X2 0x00000000BF0ED104 X3 0x0000000000001000
X4 0x00000000BE39D000 X5 0x0000000000000000 X6 0x00000000BF0F1430 X7 0x00000000BFFFF4F4
X8 0x00000000BE880BA8 X9 0x00000000BE6DFC20 X10 0x0000000000000004 X11 0x0000000000000000
X12 0x00000000703FE07A X13 0x0000000000000000 X14 0x0000000000000000 X15 0x0000000000000000
X16 0x00000000BFFFF9D0 X17 0x0000000000000000 X18 0x0000000000000000 X19 0x00000000BE767718
X20 0x00000000BE768218 X21 0x0000000000000000 X22 0x0000000000000000 X23 0x0000000000000000
X24 0x0000000000000000 X25 0x0000000000000000 X26 0x0000000000000000 X27 0x0000000000000000
X28 0x0000000000000000 FP 0x00000000BFFFF590 LR 0x00000000BF0ED120

V0 0x0000000000000000 0000000000000000 V1 0x0000000000000000 0000000000000000
V2 0x0000000000000000 0000000000000000 V3 0x0000000000000000 0000000000000000
V4 0x0000000000000000 0000000000000000 V5 0x0000000000000000 0000000000000000
V6 0x0000000000000000 0000000000000000 V7 0x0000000000000000 0000000000000000
V8 0x0000000000000000 0000000000000000 V9 0x0000000000000000 0000000000000000
V10 0x0000000000000000 0000000000000000 V11 0x0000000000000000 0000000000000000
V12 0x0000000000000000 0000000000000000 V13 0x0000000000000000 0000000000000000
V14 0x0000000000000000 0000000000000000 V15 0x0000000000000000 0000000000000000
V16 0xFF7C54FE0EFFC777 07B9DB7BBCD75B19 V17 0x7F3FFB9BFCBD932D FF78FFE777D33EE9
V18 0xFF3068E74CDBF97E F2E69FA61F74EA8C V19 0x54DDD9EE83DF977B 6FF875CF0D333B3F
V20 0xF3BCFCFD63DEFADF F3B79717BFF7FFF7 V21 0x27FEF6AECBDADC90 7FFFCD731B75EFF7
V22 0xD7B1F5CB7D30BBF6 7F031771803EAD39 V23 0xBE465FA8C865C73C 6AB43D197CC0FEFB
V24 0xCB22FFEC8ABE57AB 7A5AF74B0FFDFFCF V25 0x4B5FBD19E9236B5E 9B1FBA3D7F7BF66F
V26 0x5FB27FAAE97197DF 6FE7BF0931FFECEB V27 0xBBF7B4BC4F7FFFF7 6FCAB9EF62DF476F
V28 0x3B8A7F7DE3B7C9ED 4FB4C7D95F76BDFF V29 0x6EE7CCEA8BFF93FA A9FB7F7A9DFD09FF
V30 0x07D145E9BB6FFE3F 336C3FF5A8FD9DFD V31 0x5F7B8D9BAFF3DB33 3A44ED3F3A559B5C

SP 0x00000000BFFFF590 ELR 0x00000000BF0F7838 SPSR 0x60000209 FPSR 0x00000000
ESR 0x96000005 FAR 0x000000015CD62EBB

ESR : EC 0x25 IL 0x1 ISS 0x00000005

Data abort: Translation fault, first level

Stack dump:
00000BFFFF490: 6FF875CF0D333B3F 54DDD9EE83DF977B F3B79717BFF7FFF7 F3BCFCFD63DEFADF
00000BFFFF4B0: 7FFFCD731B75EFF7 27FEF6AECBDADC90 7F031771803EAD39 D7B1F5CB7D30BBF6
00000BFFFF4D0: 6AB43D197CC0FEFB BE465FA8C865C73C 7A5AF74B0FFDFFCF CB22FFEC8ABE57AB
00000BFFFF4F0: 9B1FBA3D7F7BF66F 4B5FBD19E9236B5E 6FE7BF0931FFECEB 5FB27FAAE97197DF
00000BFFFF510: 6FCAB9EF62DF476F BBF7B4BC4F7FFFF7 4FB4C7D95F76BDFF 3B8A7F7DE3B7C9ED
00000BFFFF530: A9FB7F7A9DFD09FF 6EE7CCEA8BFF93FA 336C3FF5A8FD9DFD 07D145E9BB6FFE3F
00000BFFFF550: 3A44ED3F3A559B5C 5F7B8D9BAFF3DB33 00000000BF0F7838 0000000060000209
00000BFFFF570: 0000000000000000 0000000096000005 000000015CD62EBB 00000000BF0ED0DC

00000BFFFF590: 00000000BFFFF5B0 00000000BF0ED120 00000000B9C1A620 000000015CD62EBB
00000BFFFF5B0: 00000000BFFFF610 00000000BA197744 00000000BE767718 00000000BE768218
00000BFFFF5D0: 00000000BFFFF648 000000015CD62EBB 00000000BE880B18 00000000BE88A53B
00000BFFFF5F0: 00000000BE8740A8 00000000BE39D000 00000000BE39D000 0000000000000000
00000BFFFF610: 00000000BFFFF870 00000000BA1978B4 0000000000000020 00000000BE39E218
00000BFFFF630: 000000015CD62EBB 00000000BDA1F000 0000000000000000 0000000000000000
00000BFFFF650: 6264696F72646E61 647261682E746F6F 6B69683D65726177 6F63203036397965
00000BFFFF670: 74743D656C6F736E 6E61203051494679 6F6F6264696F7264 6C6F736E6F632E74
ASSERT [ArmCpuDxe] ~/WORK/ATF-hikey960/edk2/ArmPkg/Library/DefaultExceptionHandlerLib/AArch64/DefaultExceptionHandler.c(265): ((BOOLEAN)(0==1))

You should follow the following steps:

including:

Now gzipped kernel isn't supported yet. Only support Image + DTB format in abootimg.
The script file cc in l-loader git repository describes how to build an abootimg on HiKey960 for UEFI.

@baou Do you maybe have an SD card inserted in the slot on the board? If so, maybe try removing it?

Indeed it worked even though not straightforward :slight_smile:
I got android booted using latest ARM ATF which was my initial goal

Well no actually
The reason for the crash was what Loic mentioned above (“gzipped kernel not supported”)
There is still this Booting from SD in the UEFI logs, but that’s just slight typo which I assume will probably be cleaned up soon