Difference between revisions of "U-Boot"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
= Compiling Uboot = | = Compiling Uboot = | ||
First, You need to compile ATF | First, You need to compile ATF: | ||
<pre> | <pre> | ||
git clone https://github.com/crust-firmware/arm-trusted-firmware/ | git clone https://github.com/crust-firmware/arm-trusted-firmware/ | ||
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> | |||
After ATF is compiled clone u-boot and copy the bl31.bin file into the u-boot directly. | |||
<pre> | |||
git clone https://gitlab.com/pine64-org/u-boot.git | |||
cp build/sun50i_a64/release/bl31.bin ../u-boot/ | |||
</pre> | </pre> | ||
<pre> | <pre> | ||
cd u-boot/ | cd u-boot/ | ||
git checkout crust | git checkout crust |
Revision as of 21:04, 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 ..
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