U-Boot

From PINE64
Jump to navigation Jump to search
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/
 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