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.2. Building the Hardware Projects

Create four different hardware projects, based on the GHRD from GitHub with a few changes:
  • Change the boot mode to FPGA first
  • Use a different ID in the SystemID component, to make the binaries for each project slightly different.
  • Change the behavior of watchdog timeout, to trigger an RSU event.
  • Set the max retry parameter to 3, so that each application image and the factory image are tried up to three time when configuration failures occur.
The commands to create and compile the projects are listed below:
# compile hardware designs: 0-factory, 1,2-applications, 3-factory update
rm -rf hw && mkdir hw && cd hw
mv ghrd-socfpga-ACDS-21.1pro-20.1std/agilex_soc_devkit_ghrd .
rm -rf ghrd-socfpga-ACDS-21.1pro-20.1std
for version in {0..3}
rm -rf ghrd.$version
cp -r agilex_soc_devkit_ghrd ghrd.$version
cd ghrd.$version
make clean
make scrub_clean
rm -rf *.qpf *.qsf *.txt *.bin *.qsys ip/qsys_top/ ip/subsys_jtg_mst/ ip\
sed -i 's/BOOTS_FIRST .*= .*/BOOTS_FIRST := fpga/g' Makefile
sed -i 's/ENABLE_WATCHDOG_RST .*= .*/ENABLE_WATCHDOG_RST := 1/g' Makefile
sed -i 's/WATCHDOG_RST_ACTION .*= .*/WATCHDOG_RST_ACTION := remote_update/g' Makefile
sed -i 's/0xACD5CAFE/0xABAB000'$version'/g' create_ghrd_qsys.tcl
export IP_ROOTDIR=~/intelFPGA_pro/21.2/ip
~/intelFPGA_pro/21.2/nios2eds/ \
make generate_from_tcl
echo "set_global_assignment -name RSU_MAX_RETRY_COUNT 3" \
>> ghrd_agfb014r24a3e3vr0.qsf
~/intelFPGA_pro/21.2/nios2eds/ \
make sof
cd ..
rm -rf agilex_soc_devkit_ghrd
cd ..
After completing the above steps, the following SOF files are created:
  • hw/ghrd.0/output_files/ghrd_agfb014r24a3e3vr0.sof
  • hw/ghrd.1/output_files/ghrd_agfb014r24a3e3vr0.sof
  • hw/ghrd.2/output_files/ghrd_agfb014r24a3e3vr0.sof
  • hw/ghrd.3/output_files/ghrd_agfb014r24a3e3vr0.sof