Intel Agilex® 7 ハード・プロセッサー・システム (HPS) のリモート・システム・アップデート・ユーザーガイド

ID 683184
日付 6/09/2023
Public
ドキュメント目次

7.1.14. SDルートキーを作成する

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 $TOP_FOLDER u-boot-socfpga/u-boot.itb .
cp $TOP_FOLDER u-boot-socfpga/kernel.itb .
cp $TOP_FOLDER/boot.scr.uimg .
cp $TOP_FOLDER images/*.rpd .
cd ..
# prepare the rootfs partition contents
mkdir rootfs && cd rootfs
sudo tar xf $TOP_FOLDER 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 $TOP_FOLDER images/*.rpd home/root
sudo cp $TOP_FOLDER intel-rsu/example/rsu_client home/root/
sudo cp $TOP_FOLDER intel-rsu/lib/librsu.so lib/
sudo cp $TOP_FOLDER intel-rsu/etc/qspi.rc etc/librsu.rc
sudo cp $TOP_FOLDER zlib-1.2.12/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.

SD カードの rootfs には次の項目が含まれています。
  • Uブート
  • ATF
  • Linux* カーネル (RSU ドライバーを含む)
  • ZLIB 共有オブジェクト
  • LIBRSU 共有オブジェクトとリソース ファイル
  • RSUクライアントアプリケーション
  • アプリケーション・イメージ
  • 工場出荷時のアップデートイメージ
  • 判定ファームウェアアップデートイメージ