Visible to Intel only — GUID: xul1552345451059
Ixiasoft
4.1.2. Creating an SD Card Image
- Generate UEFI Bootloader and FIP as in Building the UEFI Boot Loader and Generating the FIP.
- Build Linux and root file system based on the instructions in Rocketboard.
- Build the SD card image:
- Get the make_image python script and make it executable:
$ wget https://releases.rocketboards.org/release/2019.10/gsrd/tools/make_sdimage.py
$ chmod +x make_sdimage.py
- Prepare the fat partition contents:
$ mkdir fat && cd fat
$ cp <your linux image folder>/linux-socfpga/arch/arm64/boot/Image
$ cp <your device tree folder>/linux-socfpga/arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dtb
- Prepare the root file system partition contents:
$ mkdir rootfs && cd rootfs
$ tar xf <your rootfs directory>/gsrd-console-image-*.tar.xz
- Create the SD card image:
$ sudo ./make_sdimage.py -f -P fip.bin,num=3,format=raw,size=10M, type=A2 -P rootfs/\ *,num=2,format=ext3,size=1500M -P Image,socfpga_stratix10_socdk.dtb,num=1,format=fat32,size=500M -s 2G -n sdimage.img
Note: If you already have an SD image with A2 partition, you can replace the FIP file with the command below:$ sudo dd if =arm-trusted-firmware/build/stratix10/release/fip.bin of=/dev/sdx3
- Get the make_image python script and make it executable: