Ubuntu 20.04
sudo apt install bc nano mc build-essential autoconf libtool cmake pkg-config git python-dev swig3.0 libpcre3-dev libnode-dev gawk wget diffstat bison flex device-tree-compiler libncurses5-dev gcc-aarch64-linux-gnu g++-aarch64-linux-gnu binfmt-support
git clone https://github.com/radxa/u-boot.git
git checkout radxa-zero-v2021.01
cd u-boot
export ARCH=arm
export CROSS_COMPILE=aarch64-linux-gnu-
make radxa-zero_defconfig
make
export UBOOTDIR=$PWD
cd ..
git clone https://github.com/radxa/fip.git
cd fip/radxa-zero
cp $UBOOTDIR/u-boot.bin bl33.bin
make
df
#Find usb boot partition /dev name /dev/sdc1 in this instance
sudo dd if=u-boot.bin.sd.bin of=/dev/sdc1 bs=512 seek=1
#?
sync
I am doing this wrong as write to eMMC/SD offset 0x200 to boot.
So x200 = d512 so the seek is the 1st block or should I have done seek=2 as its not 0 based?