AN 923: Routing Intel® Stratix® 10 HPS Peripherals to FPGA Fabric

ID 683838
Date 10/12/2020
Public

1.2.12. Creating SD Card Image

cd $TOP_FOLDER/
sudo rm -rf sd_card && mkdir sd_card && cd sd_card
wget https://releases.rocketboards.org/release/2020.05/gsrd/tools/make_sdimage_p3.py
chmod +x make_sdimage_p3.py
mkdir fatfs && cd fatfs
cp $LINUX_BIN/a53/Image .
cp $LINUX_BIN/a53/socfpga_stratix10_socdk.dtb .
cp ../../u-boot-socfpga/u-boot.img .
cd ..
mkdir rootfs && cd rootfs
sudo tar xf $LINUX_BIN/a53/core-image-minimal-stratix10.tar.gz
sudo rm -rf lib/modules/*
sudo cp ../../spidev_flash_test home/root
cd ..
sudo python3 make_sdimage_p3.py -f \
-P fatfs/*,num=1,format=fat32,size=100M \
-P rootfs/*,num=2,format=ext3,size=400M \
-s 512M \
-n sdcard_s10.img