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

ID 683184
Date 7/13/2022
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.13. Building the SD Card

The following commands can be used to create the SD card image used in this example:
cd $TOP_FOLDER
sudo rm -rf sd_card && mkdir sd_card && cd sd_card
wget https://releases.rocketboards.org/release/2021.04/gsrd/\
tools/make_sdimage_p3.py
chmod +x make_sdimage_p3.py
# prepare the fat partition contents
mkdir fat &&  cd fat
cp ../../u-boot-socfpga/u-boot.itb .
cp ../../linux-socfpga/arch/arm64/boot/Image .
cp ../../linux-socfpga/arch/arm64/boot/dts/intel/socfpga_agilex_socdk.dtb .
cp ../../images/*.rpd .
cd ..
# prepare the rootfs partition contents
mkdir rootfs && cd rootfs
sudo tar xf ../../yocto/build/tmp/deploy/images/agilex/\
core-image-minimal-agilex.tar.gz
sudo sed -i 's/agilex/linux/g' etc/hostname
sudo rm -rf lib/modules/*
sudo cp ../../images/*.rpd home/root
sudo cp ../../intel-rsu/example/rsu_client home/root/
sudo cp ../../intel-rsu/lib/librsu.so lib/
sudo cp ../../intel-rsu/etc/qspi.rc etc/librsu.rc
sudo cp ../../zlib-1.2.11/libz.so* lib/
cd ..
# create sd card image
sudo python3 ./make_sdimage_p3.py -f \
-P fat/*,num=1,format=vfat,size=100M \
-P rootfs/*,num=2,format=ext3,size=100M \
-s 256M \
-n sdcard_rsu.img
cd ..

This creates the SD card image as $TOP_FOLDER/sd_card/sdcard_rsu.img.

The following items are included in the rootfs on the SD card:
  • U-Boot
  • ATF
  • Linux* kernel, including RSU driver
  • ZLIB shared objects
  • LIBRSU shared objects and resource files
  • RSU client application
  • Application image
  • Factory update image
  • Decision firmware update image