Current u-boot on a Macchiatobin

I recently broke out as Macchiatobin that I had laying around from a few years ago for testing arm64 support with Tinkerbell. I started with getting an updated version of EDK2 running on it. While the UEFI firmware was working well, it didn’t give me the ability to override the MAC addresses for the interfaces, which caused issues after the board booted into Linux, where a random MAC address was generated for each interface. As a result, I thought I would give a newer build of u-boot a shot to see if the UEFI/ACPI support provided by u-boot would work better for my use case.


You will need all the software dependencies listed in and

mkdir -p ~/mcbin
export BASEDIR=~/mcbin

Linaro Toolchain Setup

mkdir -p ~/mcbin/gcc && cd ~/mcbin/gcc
tar -xvf gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz
cd ../
export CROSS_COMPILE=${BASEDIR}/gcc/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-

Setup the u-boot repository and build

mkdir -p ~/mcbin/Conf
git clone
cd u-boot
git checkout v2021.01
make mvebu_mcbin-88f8040_defconfig
make -j4
export BL33=$(pwd)/u-boot.bin

Setup the ATF repositories and build

git clone
cd arm-trusted-firmware
git checkout v2.4
cd ../

git clone

git clone
cd binaries-marvell
git checkout binaries-marvell-armada-18.12

export SCP_BL2=${BASEDIR}/binaries-marvell/mrvl_scp_bl2.img

export ARCH=arm64
export CROSS_COMPILE=${BASEDIR}/gcc/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-

cd ../arm-trusted-firmware
make USE_COHERENT_MEM=0 LOG_LEVEL=20 MV_DDR_PATH=${BASEDIR}/mv-ddr-marvell PLAT=a80x0_mcbin all fip mrvl_flash

The resulting image will be created in ~/mcbin/arm-trusted-firmware/build/a80x0_mcbin/release/flash-image.bin

To test image from an sd-card:

After booting from this u-boot image, I still hit the same issue I was hitting before related to the use of randomized MAC addresses, but the u-boot documentation made me realize what the underlying issue was… I never configured MAC addresses for this machine as I should have.

To be continued…