AN 957: Time-Sensitive Networking for Drive-on-Chip Design Example

ID 683707
Date 10/30/2021
Public
Document Table of Contents

3.10. Building an SD Card Image for the TSN Drive-on-Chip Design Example

Files names from the YOCTO build are just examples. The file name can change depending on the versions and dates when the YOCTO build was launched.

  1. Copy and rename from de-eval-board/build/build/tmp/deploy/images/de-eval-board (in a separate temporarily directory) the following files:
    • u-boot-de-eval-board-2018.03+gitAUTOINC+f95ab1fb6e-r0.img to u-boot.img o u-boot.scr
    • u-boot.scr
    • SCV-DE-EVAL-DMA-BIT-BITSTREAM_S-DE-IP-B-11-006-1.6.0-r0.rbf to socfpga.rbf
    • socfpga_cyclone5_de-eval-board-5.4.40-rt24+git0+f015b86259-r0-de_eval_board-20210728152840.dtb to socfpga_cyclone5_de_eval_board.dtb and socfpga.dtb
    • zImage-5.4.40-rt24+git0+f015b86259-r0-de-eval-board-20210728152840.bin to zImage
  2. Create a directory named rootfs and copy sdcard-image-de-eval-board-20200504095930.rootfs.tar.gz
  3. Decompress using tar -xvzf sdcard-image-de-eval-board-20210728152840.rootfs.tar.gz
  4. Delete sdcard-image-de-eval-board-20210728152840.rootfs.tar.gz.
    Figure 30. Root Files Systemrootfs Directory
  5. In the temporarily folder copy the script file to generate an image (make_sdimage.py). The current working directory should look like the following picture.
    Figure 31. SD Card Image ComponentsIntel generated the file preloader-mkpimage.bin using bsp-editor.
  6. Run the following command to generate the SD card image TSN_DoC_SD.img
    >> sudo ./make_sdimage.py -f -P preloader-mkpimage.bin,u-boot.img,num=3,format=raw,size=250M,type=A2 -P rootfs/*,num=2,format=ext2,size=2G -P zImage,u-boot.scr,socfpga.rbf,u-boot.img,socfpga_cyclone5_de_eval_board.dtb,socfpga.dtb,num=1,format=vfat,size=250M -s 3G -n TSN_DoC_SD.img
  7. Create an image onto an SD card using an imager tool like Disk Imager.
    The system is ready to boot-up.
  8. Download: http://releases.rocketboards.org/release/2016.01/sgmiird/tools/make_sdimage.py