Difference between revisions of "U-Boot"

From PINE64
Jump to navigation Jump to search
Line 13: Line 13:
  cp build/sun50i_a64/release/bl31.bin ../u-boot/
  cp build/sun50i_a64/release/bl31.bin ../u-boot/
  cd ..
  cd ..
</pre>
<pre>
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
</pre>
</pre>


= Uboot installation =
= Uboot installation =
Once successfully compiled you can proceed to flash the device
{{hint|Replace [CHANGE THIS] with the location of your SD card}}
<code>
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/[CHANGE THIS] bs=1024 seek=8
</code>

Revision as of 21:01, 15 October 2020

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