Intel® Stratix® 10 Hard Processor System Remote System Update User Guide

ID 683021
Date 11/10/2021
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

7.2.4. Building U-Boot

The following commands can be used to get the U-Boot source code and compile it:
cd $TOP_FOLDER
rm -rf u-boot-socfpga
git clone https://github.com/altera-opensource/u-boot-socfpga
cd u-boot-socfpga
# checkout the branch used for this document, comment out to use default
# git checkout -b test -t origin/socfpga_v2021.01
# change the prompt text
sed -i 's/SOCFPGA_STRATIX10 #/SOCFPGA #/g' configs/socfpga_stratix10_atf_defconfig
make clean && make mrproper
make socfpga_stratix10_atf_defconfig
make -j 24
ln -s ../arm-trusted-firmware/build/stratix10/release/bl31.bin .
make u-boot.itb
cd ..
After completing the above steps, the following files are created:
  • u-boot-socfpga/spl/u-boot-spl-dtb.hex — FSBL (U-boot SPL) hex file
  • u-boot-socfpga/u-boot.itb — FIT image file containing SSBL (U-Boot) and ATF (Arm Trusted Firmware) binaries
Note: Intel® policy specifies that only the current and immediately previous U-Boot branches are kept on GitHub. At some point, the current U-Boot branch is removed and the above tag does not work anymore. In such an event, you can move to the latest release of all the components, as this should work. You must keep a local copy of the sources used to build your binaries in case you need to reproduce the build or make changes in the future.