Intel® Agilex™ Hard Processor System Remote System Update User Guide

ID 683184
Date 7/13/2022

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:
rm -rf u-boot-socfpga
git clone
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_AGILEX #/SOCFPGA #/g' configs/socfpga_agilex_defconfig
make clean && make mrproper
make socfpga_agilex_atf_defconfig
make -j 24
ln -s ../arm-trusted-firmware/build/agilex/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.