Build error on edk2


#1

Hi everyone,

I tried to follow the wiki (https://github.com/96boards/documentation/wiki/HiKeyUEFI) trying to build the bootloader.
There is a build error while building edk2.
Does anybody knows why?

build.py...
/home/keene/linaro-hikey/edk2/OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKeyFastbootDxe/HiKeyFastbootDxe.inf(45): error 4000: Value of Protocol [gEfiEraseBlockProtocolGuid] is not found under [Protocols] section in
        /home/keene/linaro-hikey/edk2/EmbeddedPkg/EmbeddedPkg.dec
        /home/keene/linaro-hikey/edk2/MdePkg/MdePkg.dec
        /home/keene/linaro-hikey/edk2/MdeModulePkg/MdeModulePkg.dec
        /home/keene/linaro-hikey/edk2/ArmPlatformPkg/ArmPlatformPkg.dec
        /home/keene/linaro-hikey/edk2/ArmPlatformPkg/ArmVExpressPkg/ArmVExpressPkg.dec
        /home/keene/linaro-hikey/edk2/ArmPkg/ArmPkg.dec
        /home/keene/linaro-hikey/edk2/OpenPlatformPkg/Platforms/Hisilicon/HiKey/HiKey.dec

I am trying to do here is to build bsp image to boot Android without compiling full AOSP source tree. My laptop doesn’t have enough DRAM to do full build. It will be great if anyone could share experiences

Thanks,
CH


#2

That link is too old. To build bootloader, follow the instructions here: https://github.com/ARM-software/arm-trusted-firmware/blob/master/docs/plat/hikey.rst.