U-Boot

From PINE64
Revision as of 21:01, 15 October 2020 by Aberts10 (talk | contribs)
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 ..
 git clone https://gitlab.com/pine64-org/u-boot.git
 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