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

ID 683184
Date 6/09/2023
Public

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

Document Table of Contents

7.1.4. Building Linux*

The following commands can be used to obtain the Linux* source code and build Linux*:
cd $TOP_FOLDER
rm -rf linux-socfpga
git clone https://github.com/altera-opensource/linux-socfpga
cd linux-socfpga
# checkout the branch used for this document, comment out to use default
# git checkout -b test -t origin/socfpga-5.10.110-lts
# configure the RSU driver to be built into the kernel
sed -i 's/.*CONFIG_INTEL_STRATIX10_RSU=.*/CONFIG_INTEL_STRATIX10_RSU=y/g' \
arch/arm64/configs/defconfig
make clean && make mrproper
make defconfig
make -j 24 Image dtbs
cd ..
After completing the above steps, the following files are created in the $TOP_FOLDER/linux-socfpga :
  • arch/arm64/boot/Image — kernel image
  • arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dtb— kernel device tree
Note: The Intel® SoC FPGA Linux* releases on GitHub have a retention policy described at Linux* Git Guidelines. At some point, the current Linux* 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.