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.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/2020.11/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/altera/socfpga_stratix10_socdk.dtb .
cp ../../images/*.rpd .
cd ..
# prepare the rootfs partition contents
mkdir rootfs && cd rootfs
sudo tar xf ../../yocto/build/tmp/deploy/images/stratix10/\
core-image-minimal-stratix10.tar.gz
sudo sed -i 's/stratix10/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