Created
September 28, 2017 23:59
-
-
Save hewittc/b32a37c9c3e0718a4327c0e4c0f26479 to your computer and use it in GitHub Desktop.
EspressoBin image building
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mirror of https://www.mail-archive.com/[email protected]/msg256534.html: | |
############################# | |
# 1. Get sources from the GIT | |
############################# | |
mkdir /work/community && cd /work/community | |
git clone [email protected]:MarvellEmbeddedProcessors/atf-marvell.git -b | |
atf-v1.3-armada-17.06 | |
git clone https://github.com/MarvellEmbeddedProcessors/A3700-utils-marvell.git | |
- b A3700_utils-armada-17.06 | |
git clone [email protected]:MarvellEmbeddedProcessors/u-boot-marvell.git -b | |
u-boot-2017.03-armada-17.06 | |
########################################################## | |
# 2. TBB tool build - not sure if this step is needed | |
# or the build will be triggered by ATF build | |
# However I preferred to build it separately - this should | |
# be done only once anyway. | |
########################################################## | |
wget https://www.cryptopp.com/cryptopp565.zip | |
cd /work/community/A3700-utils-marvell/wtptp_tool/src/TBB_Linux && makedir -p | |
lib/cryptpp565 | |
cd lib/cryptpp565 && unzip /work/community/cryptopp565.zip | |
make -f GNUmakefile && cd ../../ | |
make -f TBB_linux.mak LIBDIR=`pwd`/lib/cryptpp565 | |
###################### | |
# 3. WTMI binary build | |
###################### | |
cd /work/community/A3700-utils-marvell/wtmi | |
make | |
############################################### | |
# 4. Build the u-boot, ATF and the flash image | |
############################################### | |
cd /work/community/u-boot-marvell | |
export | |
CROSS_COMPILE=/opt/gcc-linaro-5.3.1-2016.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- | |
export BL33=`pwd`/u-boot.bin | |
export ATF_DIR=/work/community/atf-marvell | |
export WTP=/work/community/A3700-utils-marvell | |
export WTMI_IMG=/work/community/A3700-utils-marvell/wtmi/build/wtmi.bin | |
make mrproper && make mvebu_espressobin-88f3720_defconfig && make | |
make -C ${ATF_DIR} distclean && make -C ${ATF_DIR} DDR_TOPOLOGY=0 | |
BOOTDEV=SPINOR USE_COHERENT_MEM=0 LOG_LEVEL=20 PLAT=a3700 all fip | |
########################################################## | |
# The resulting images are in ${ATF_DIR}/build/a3700/release | |
# The "flash-image.bin" is the image for the boot source device | |
# (SPI NOR flash for the above example) | |
# The "uart-images.tgz" archive contains separate image | |
# components for UART download. | |
########################################################## |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment