5.2. Building the Bootable SD Card Image (.wic)
- Yocto Image
- Yocto SDK Toolchain
- Arm Cross-Compiled OpenVINO
- Arm Cross-Compiled Intel® FPGA AI Suite Runtime Plugin
- Arm Cross-Compiled Demonstration Applications
- FPGA .sof/.rbf files
The create_hps_image.sh script performs the complete build process and combines all the necessary components into an SD card image that can be written to an SD card. For steps required to write an SD card image to an SD card, refer to Writing the SD Card Image (.wic) to an SD Card.
The SD card image is assembled using Yocto (https://yoctoproject.org).
You must have a build system that meets the minimum build requirements. For details, refer to https://docs.yoctoproject.org/3.4.1/ref-manual/system-requirements.html#supported-linux-distributions.
The commands to install the required packages are shown in Installing HPS Disk Image Build Prerequisites.
cd $COREDLA_WORK\runtime ./create_hps_image.sh \ -f <bitstream_directory> \ -o <output_directory> \ -u \ -m arria10
Build the Yocto boot SD card image and Yocto SDK toolchain
The Intel® FPGA AI Suite Soc design example uses the Yocto Project Poky Distribution.
The Yocto image is based on the Intel® Arria® 10 Golden System Reference Designs, which you can find at the following URL: https://www.rocketboards.org/foswiki/Documentation/GSRD.
To customize the Yocto Poky distribution, modify the recipes found in layer $COREDLA_ROOT/hps/ed4/yocto/meta-intel-coredla.
More details can be found in Yocto Build and Runtime Linux Environment.
The defined Yocto Image recipe is coredla-image and can be found in $COREDLA_ROOT/hps/ed4/yocto/meta-intel-coredla/recipes-image/coredla-image.bb.
- Intel® Arria® 10 :
- Intel® Arria® 10 :
./create_hps_image.sh \ -y <PREBUILT_YOCTO_DIR> -f <BITSTREAM_DIR> \ -o <OUTPUT_DIR> -u -m arria10
This -y option loads the Yocto SDK from <PREBUILT_YOCTO_DIR>/build/tmp/deploy/sdk/ and the .wic image from <PREBUILT_YOCTO_DIR>/build/tmp/deploy/images/arria10/ without rerunning a Yocto build.
Build the HPS Packages
The HPS packages are built by the build_hpspackages.sh script.
This script cross-compiles OpenCV, OpenVINO, and the Arm-based OpenVINO™ runtime plugin.
Build the runtime
The runtimes are built by the build_runtime.sh script.
This script cross-compiles the OpenVINO™ Intel® FPGA AI Suite runtime plugin and demonstration applications for the SoC devices.
Update the SD card image
The SD card image is updated by the update_sd_image.sh script.
This script takes the output products from the previous build steps and builds a bootable SD Card image.
The software binaries are installed to the Ext4 partition under the /home/root/app directory. The RTL fit_spl_fpga.itb file is copied to the Fat32 partition.
The SD card image is updated only if you specify the -u option of the create_hps_image.sh command along with the location of the FPGA bitstream directory through the -f option.
./create_hps_image.sh \ -o <OUTPUT_DIR> \ -m arria10
./create_hps_image.sh \ -y ./build_Yocto -f <BITSTREAM_DIR> \ -o <OUTPUT_DIR> \ -u \ -m arria10