This page needs tagging. Please add keywords describing what this page is about.
Location | File Name | Description |
---|---|---|
Partition 1 | socfpga.dtb | Device Tree Blob file |
^ | soc_system.rbf | FPGA configuration file |
^ | u-boot.scr | U-boot script for configuring FPGA |
^ | zImage | Compressed Linux kernel image file |
Partition 2 | various | Linux root filesystem |
Partition 3 | n/a | Preloader image |
^ | n/a | U-boot image |
$ wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm $ sudo rpm -i epel-release-6-8.noarch.rpm $ rm epel-release-6-8.noarch.rpm $ sudo yum install python-argparseIn order to obtain more information about the tool, please run it with the '-h' option:
$ sudo ~/make_sdimage.py -h usage: make_sdimage.py [-h] [-P PART_ARGS] [-s SIZE] [-n IMAGE_NAME] [-f] Creates an SD card image for Altera's SoCFPGA SoC's optional arguments: -h, --help show this help message and exit -P PART_ARGS specifies a partition. May be used multiple times. file[,file ,...],num=,format=, size=[,type=ID] -s SIZE specifies the size of the image. Units K|M|G can be used. -n IMAGE_NAME specifies the name of the image. -f deletes the image file if exists Usage: PROG [-h] -P [-P ...] -PThe following items are required in order to be able to create the SD card image. They are all delivered as part of the precompiled binaries package but can also be rebuilt.
Item | Description | How to Build |
---|---|---|
preloader-mkpimage.bin | Preloader image | Generated and compiled with SoCEDS and ARM Development Studio based on Quartus handoff information |
ghrd_5astfd5k3.rbf | Compressed FPGA configuration file | From GHRD delivered with GSRD |
ghrd_5astfd5k3.dtb | Device Tree Blob | From GHRD delivered with GSRD |
u-boot.scr | U-boot script for configuring the FPGA | Created with text editor and mkimage utility. Download HERE |
u-boot-arria5.img | U-boot image | Compiled by Yocto with bitbake virtual/bootloader |
zImage | Compressed Linux kernel image | Compiled by Yocto with bitbake altera-gsrd-image |
altera-gsrd-image-arria5.tar.gz | Root filesystem as compressed tarball | Compiled by Yocto with bitbake virtual/kernel |
$ cd ~ $ mkdir linux-socfpga-gsrd-16.1-av-bin # 16.1 $ wget https://releases.rocketboards.org/2016.10/gsrd/bin/linux-socfpga-gsrd-16.1-av-bin.tar.gz # 17.0 $ wget https://releases.rocketboards.org/2017.05/gsrd/bin/linux-socfpga-gsrd-17.0-av-bin.tar.gz $ tar -xvzf linux-socfpga-gsrd-*-av-bin.tar.gz -C linux-socfpga-gsrd-av-bin # 17.1 $ wget https://releases.rocketboards.org/2017.10/gsrd/bin/linux-socfpga-gsrd-17.1-av-bin.tar.gz $ tar -xvzf linux-socfpga-gsrd-*-av-bin.tar.gz -C linux-socfpga-gsrd-av-bin# 18.1 $ wget https://releases.rocketboards.org/2017.10/gsrd/av_gsrd/sdimage.tar.gz $ tar -xvzf sdimage.tar.gz -C linux-socfpga-gsrd-av-bin 2. Download the script and the webserver contents archive into the current folder:
$ cd ~ # 16.1 $ wget https://releases.rocketboards.org/2016.10/gsrd/tools/make_sdimage.py # 17.0 $ wget https://releases.rocketboards.org/2017.05/gsrd/tools/make_sdimage.py $ chmod +x ~/make_sdimage.py # 17.1 $ wget https://releases.rocketboards.org/2017.10/gsrd/tools/make_sdimage.py $ chmod +x ~/make_sdimage.py# 18.0 $ wget https://releases.rocketboards.org/2018.05/gsrd/tools/make_sdimage.py $ chmod +x ~/make_sdimage.py # 18.1 $ wget https://releases.rocketboards.org/2018.10/gsrd/tools/make_sdimage.py $ chmod +x ~/make_sdimage.py 3. Create the root filesystem to be put on the SD card image:
$ cd ~/linux-socfpga-gsrd-av-bin $ mkdir rootfs $ xz -d gsrd-console-image-arria5.tar.xz $ sudo tar xf gsrd-console-image-arria5.tar -C rootfs4. Call the make_sdimage.py script:
$ cd ~/linux-socfpga-gsrd-av-bin $ sudo ~/make_sdimage.py \This will create the file sd_card_image_arria5.bin.
-f \
-P preloader-mkpimage.bin,u-boot-arria5.img,num=3,format=raw,size=10M,type=A2 \
-P rootfs/*,num=2,format=ext3,size=1500M \
-P zImage,u-boot.scr,soc_system.rbf,socfpga.dtb,num=1,format=vfat,size=500M \
-s 2G \
-n sd_card_image_arria5.bin
Default File Location | Comment |
---|---|
~/angstrom/build/tmp/deploy/images/zImage | Built by Yocto |
~/angstrom/build/tmp/deploy/images/u-boot-arria5.img | ^ |
~/angstrom/build/tmp/deploy/images/gsrd-console-image-arria5.tar.xz | ^ |
~/av_soc_devkit_ghrd/output_files/ghrd_5astfd5k3.rbf | Part of GHRD |
~/av_soc_devkit_ghrd/software/spl_bsp/preloader-mkpimage.bin | ^ |
~/av_soc_devkit_ghrd/socfpga.dtb | ^ |
File | Update Procedure |
---|---|
zImage | Mount /dev/sdx1 (FAT) on the host machine and update files accordingly: $ sudo mkdir sdcard $ sudo mount /dev/sdx1 sdcard/ $ sudo cp $ sudo umount sdcard |
ghrd_5astfd5k3.rbf | ^ |
socfpga.dtb | ^ |
u-boot.scr | ^ |
preloader-mkpimage.bin | $ sudo dd if=preloader-mkpimage.bin of=/dev/sdx3 bs=64k seek=0 |
u-boot-arria5.img | $ sudo dd if=u-boot-arria5.img of=/dev/sdx3 bs=64k seek=4 |
root filesystem | Mount /dev/sdx2 (ext3 FS) on the host machine and updatefiles accordingly |