Marcin Wojtas 1f18a71330 Marvell/Cn913xDbA: Add Readme.md | 2 years ago | |
---|---|---|
.. | ||
BoardDescriptionLib | 2 years ago | |
NonDiscoverableInitLib | 3 years ago | |
Cn9130DbA.dsc.inc | 2 years ago | |
Cn9131DbA.dsc.inc | 4 years ago | |
Cn9132DbA.dsc.inc | 4 years ago | |
Cn913xDbA.dsc | 3 years ago | |
Cn913xDbA.fdf.inc | 3 years ago | |
Readme.md | 2 years ago |
This is a port of 64-bit TianoCore EDK II firmware for the Marvell CN913x Development Board.
Download the toolchain:
wget https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz
After extracting, setup the path and compiler prefix to GCC5_AARCH64_PREFIX variable:
export GCC5_AARCH64_PREFIX=<toolchain_path>/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
Create a new folder (directory) on your local development machine
for use as your workspace. This example uses /work/git/tianocore
, modify as
appropriate for your needs.
$ export WORKSPACE=/work/git/tianocore
$ mkdir -p $WORKSPACE
$ cd $WORKSPACE
Clone the Trusted Firmware repository:
$ cd ${WORKSPACE}
$ git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git
Clone repository for auxiliary firmware on the SoC co-processors and checkout to binaries-marvell-armada-SDK10.0.1.0:
$ cd ${WORKSPACE}
$ git clone https://github.com/MarvellEmbeddedProcessors/binaries-marvell.git
$ cd binaries-marvell/
$ git checkout -b binaries-marvell-armada-SDK10.0.1.0 origin/binaries-marvell-armada-SDK10.0.1.0
Clone the DDR training code from:
$ cd ${WORKSPACE}
$ git clone https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell.git
Please follow instructions from «Obtaining source code» and «Manual building» from the top level edk2-platforms Readme.md.
Use below build command:
$ cd ${WORKSPACE}
$ build -a AARCH64 -t GCC5 -b RELEASE -D CN9132 -D INCLUDE_TFTP_COMMAND -D CAPSULE_ENABLE -p Platform/Marvell/Cn913xDb/Cn913xDbA.dsc
Set BL33 variable to path to EDK II output binary:
$ export BL33=${WORKSPACE}/Build/Cn9132DbA-AARCH64/RELEASE_GCC5/FV/ARMADA_EFI.fd
Export SCP_BL2 variable:
$ export SCP_BL2=${WORKSKPACE}/binaries-marvell/mrvl_scp_bl2.img
Export compiler variables (for cross-compilation only):
$ export ARCH=arm64
$ export CROSS_COMPILE=<toolchain_path>/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-
Build the image:
$ cd ${WORKSPACE}/trusted-firmware-a/
$ make LOG_LEVEL=20 MV_DDR_PATH=${WORKSPACE}/mv-ddr-marvell CP_NUM=3 PLAT=t9130 all fip mrvl_flash
The firmware image flash-image.bin
can be found in build/t9130/release/
directory.
CN913x Development Board is System Ready ES certified. Release binary and the firmware components’ baselines list are available in a dedicated wiki page.