Intel® FPGA SDK for OpenCL™: Intel® Cyclone® V SoC Development Kit Reference Platform Porting Guide

ID 683435
Date 11/06/2017
Document Table of Contents

1.5.1. Modifying an Existing SD Flash Card Image

Intel® recommends that you simply modify the image available with the Cyclone V SoC Development Kit Reference Platform. You also have the option to create a new SD flash card image.

The c5soc linux_sd_card_image.tgz image file is available in the INTELFPGAOCLSDKROOT/board/c5soc directory, where INTELFPGAOCLSDKROOT points to the path of the Intel® FPGA SDK for OpenCL™ 's installation directory.

Attention: To modify the SD flash card image, you must have root or sudo privileges.
  1. To decompress the $INTELFPGAOCLSDKROOT/board/c5soc/linux_sd_card_image.tgz file, run the tar xvfz linux_sd_card_image.tgz command.
  2. Compile the hello_world OpenCL example design using your Custom Platform support. Rename the .rbf file that the Intel® FPGA SDK for OpenCL™ Offline Compiler generates as opencl.rbf, and place it on the fat32 partition within the SD flash card image.
    You can download the hello_world example design from the OpenCL Design Examples page on the Altera website.
  3. Place the .rbf file into the fat32 partition of the flash card image.
    Attention: The fat32 partition must contain both the zImage file and the .rbf file. Without a .rbf file, a fatal error will occur when you insert the driver.
  4. After you create the SD card image, write it to a micro SD card by invoking the following command:
    sudo dd if=/path/to/sdcard/image.bin of=/dev/sdcard
  5. To test your SD flash card image, perform the following tasks:
    1. Insert the micro SD flash card into the SoC FPGA board.
    2. Power up the board.
    3. Invoke the aocl diagnose utility command.