Location | File Name | Description |
---|---|---|
Partition 1 | socfpga_arria10_socdk_sdmmc.dtb | Linux Device Tree Blob file |
^ | ghrd_10as066n2.core.rbf | Compressed FPGA configuration file |
^ | ghrd_10as066n2.periph.rbf | Compressed FPGA IO configuration file |
^ | zImage | Compressed Linux kernel image file |
^ | extlinux/extlinux.conf | Uboot configuration |
^ | u-boot.img | Uboot Image |
^ | fit_spl_fpga.itb | Uboot fit image |
Partition 2 | various | Linux root filesystem |
Partition 3 | n/a | U-Boot Device Tree 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 ...] -P
Item | Description | Build instruction |
---|---|---|
extlinux/extlinux.conf | U-Boot and U-Boot Device Tree Image | Refer here |
u-boot.img | ^ | ^ |
fit_spl_fpga.itb | ^ | ^ |
spl_w_dtb-mkpimage.bin | ^ | ^ |
ghrd_10as066n2.core.rbf | Compressed FPGA configuration file | Refer here |
ghrd_10as066n2.periph.rbf | Compressed FPGA IO configuration file | Refer here |
socfpga_arria10_socdk_sdmmc.dtb | Linux Device Tree Blob | Refer here |
zImage | Compressed Linux kernel image | Refer here |
gsrd-console-image-arria10.tar.xz | Root filesystem as compressed tarball (built together with kernel image) | Refer here |
$ chmod +x make_sdimage.py3. Create the root filesystem to be put on the SD card image (GNU tar 1.27.1):
$ mkdir rootfs $ cd rootfs $ sudo tar xf ../gsrd-console-image-arria10.tar.xz $ cd ..4. Call the make_sdimage.py script:
$ sudo make_sdimage.py \This will create the file sd_card_image_a10.img.
-f \
-P uboot_w_dtb-mkpimage.bin,num=3,format=raw,size=10M,type=A2 \
-P rootfs/*,num=2,format=ext3,size=1500M \
-P zImage,ghrd_10as066n2.core.rbf,ghrd_10as066n2.periph.rbf,socfpga_arria10_socdk_sdmmc.dtb,num=1,format=vfat,size=500M \
-s 2G \
-n sdimage.img
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_10as066n2.core.rbf | ^ |
ghrd_10as066n2.periph.rbf | ^ |
socfpga_arria10_socdk_sdmmc.dtb | ^ |
extlinux/extlinux.conf | ^ |
u-boot.img | ^ |
fit_spl_fpga.itb | ^ |
GPL source for Linux, Uboot and Rootfs | ^ |
spl_w_dtb-mkpimage.bin | $ sudo dd if=uboot_w_dtb-mkpimage.bin of=/dev/sdx3 bs=64k seek=0 |
root filesystem | Mount /dev/sdx2 (ext3 FS) on the host machine and updatefiles accordingly |
cd ~ wget https://rocketboards.org/foswiki/pub/Documentation/Arria10NANDFlashProgramming/flash_programmer.tgz tar xzf flash_programmer.tgzDownload the prebuild binaries sdimage.tar.gz from Release Tags to your home directory and extract it
./flash_programmer.py --operation=epv --flash=sdmmc --file=../sdimage.imgNotes: