U-Boot
This page is incomplete, you're welcome to improve it.
Compiling Uboot
First, You need to compile ATF:
git clone https://github.com/crust-firmware/arm-trusted-firmware/ cd arm-trusted-firmware CROSS_COMPILE=aarch64-linux-gnu- export CROSS_COMPILE export ARCH=arm64 make PLAT=sun50i_a64 bl31 cp build/sun50i_a64/release/bl31.bin ../u-boot/ cd ..
After ATF is compiled clone u-boot and copy the bl31.bin file into the u-boot directly.
git clone https://gitlab.com/pine64-org/u-boot.git cp build/sun50i_a64/release/bl31.bin ../u-boot/
Note that you can append -j#
to the end of make all in the proceeding instructions. Replacing the hashtag with the number of threads in your computer's CPU to want to use to compile will make it go faster and use more of your processor.
cd u-boot/ git checkout crust CROSS_COMPILE=aarch64-linux-gnu- export CROSS_COMPILE export BL31=bl31.bin export ARCH=arm64 make distclean make pinephone_defconfig make all
Uboot installation
Once successfully compiled you can proceed to flash the device
Replace [CHANGE THIS] with the location of your SD card
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/[CHANGE THIS] bs=1024 seek=8