1.5.1. Modifying an Existing 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.
- To decompress the $INTELFPGAOCLSDKROOT/board/c5soc/linux_sd_card_image.tgz file, run the tar xvfz linux_sd_card_image.tgz command.
- 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.
- 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.
- 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
- To test your SD flash card image, perform the following tasks:
- Insert the micro SD flash card into the SoC FPGA board.
- Power up the board.
- Invoke the aocl diagnose utility command.
Did you find the information on this page useful?