> Date: Fri, 26 Oct 2018 07:09:15 -0700 (MST) > From: Corsaire01 <stranche+open...@free.fr> > > Hi Mark, > > One question regarding your build. > > >I have made working firmware available at: > > > >https://sibelius.home.xs4all.nl/firmware/armada-8040-mcbin/flash-image.bin > > Could you give us the procedure you used to create the EFI image ? >
It is a bit complicated. I did the build on a Linux system. To keep things organized, I created a build directory. Inside this directory I checked out the following git repositories: https://github.com/tianocore/edk2.git https://github.com/tianocore/edk2-platforms.git https://github.com/tianocore/edk2-non-osi.git https://git.linaro.org/uefi/uefi-tools.git https://github.com/MarvellEmbeddedProcessors/ble-marvell.git https://github.com/MarvellEmbeddedProcessors/binaries-marvell.git https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git https://github.com/ARM-software/arm-trusted-firmware.git and downloaded the Linaro GCC5 toolchain from: http://releases.linaro.org/components/toolchain/binaries/5.3-2016.05/aarch64-linux-gnu/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu.tar.xz I untarred the toolchain in a directory gcc5. The Marvell repositories need specific branches to be checked out: $ cd ble-marvell $ git checkout atf-mainline $ cd .. $ cd binaries-marvell $ git checkout binaries-marvell-armada-18.06 $ cd .. $ cd mv-ddr-marvell $ git checkout mv_ddr-armada-atf-mainline $ cd .. And you need to create some symlinks: $ cd arm-trusted-firmaware $ ln -s ../ble-marvell ble $ cd drivers/marvell $ ln -s ../../../mv-ddr-marvell mv_ddr $ cd ../../.. Then I use the script at the end of this mail to build the firmware. This all worked on August 9 of this year. Cheers, Mark #!/bin/sh PATH=$PATH:$PWD/gcc5/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu/bin uefi-tools/edk2-build.sh -b RELEASE mcbin export CROSS_COMPILE=aarch64-linux-gnu- export SCP_BL2=$PWD/binaries-marvell/mrvl_scp_bl2_mss_ap_cp1_a8040.img export BL33=$PWD/Build/Armada80x0McBin-AARCH64/RELEASE_GCC5/FV/ARMADA_EFI.fd cd arm-trusted-firmware make DEBUG=1 USE_COHERENT_MEM=0 LOG_LEVEL=20 PLAT=a80x0_mcbin all fip cd ..