AN 999: Drive-on-Chip with Functional Safety Design Example: Agilex™ 7 Devices

ID 823627
Date 7/04/2024
Public

Visible to Intel only — GUID: xll1716286282125

Ixiasoft

Document Table of Contents

2.5. Creating an SD Card Image

The Drive-on-Chip with Functional Safety Design Example requires an SD card image (gsrd-console-image-agilex7.wic) and a .jic file (included in the images directory) to program and use on the Agilex7 SoC F-series Transceiver SoC Development Kit. To create an SD card image or, if you modify the design or rebuild the software layers, you should build a Yocto with the provided meta layer. The output of the Yocto build is an SD card image (.wic) to be use in the development kit. To build Yocto and create the SD card, refer to the RocketBoards GSRD web page.

Altera recommends you build the design using a specific version of the GSRD and Quartus Prime Pro. Altera provides no support for the design in later or earlier versions of the GSRD or Quartus Prime. You must solve any potential differences if you use any other version of the tools.

  1. In the GSRD:
    1. Follow the steps in Setting up the Environment.
    2. Ignore the steps Building the Hardware Design and Building Core RBF. You provide or generate the agilex7_dk_si_agf014ea.core.rbf from the Quartus Prime project..
    3. Follow the steps in Setting Up Yocto Build System.Use nandbield branch of the altera-opensource repository.
    4. Ignore the section Customize Yocto Build.
  2. Before building Yocto, copy the provided meta layer in hps_software directory to $TOP_FOLDER/gsrd_socfpga and add the layer to the project:
    >> cp -r <PROJ_LOCATION>/hps_software/meta-safedriveonchip 
    $TOP_PROJECT/gsrd_socfpga 
    >> cd $TOP_FOLDER/gsrd_socfpga 
    >> bitbake-layers add-layer meta-safedriveonchip 
    >> bitbake-layers show-layers 
    Figure 5. GSRD meta layers including meta-safedriveonchip.
  3. Check your desired .rbf is in $TOP_FOLDER/gsrd_socfpga/meta-safedriveonchip/recipes-bsp/hw-ref-design/files/ with the name agilex7_dk_si_agf014ea.core.rbf.
  4. Write the correct sha256sum value of the .rbf to the $TOP_FOLDER/gsrd_socfpga/meta-safedriveonchip/recipes-bsp/hw-ref-design/hw-ref-design.bb recipe.
    Figure 6. hw-ref-design.bb recipe for .rbf inclusion
  5. Build Yocto:
    >> cd $TOP_FOLDER/gsrd_socfpga
    >> bitbake_image
    >> package
    
    The gsrd-console-image-agilex7.wic file for SD card is in $TOP_FOLDER/gsrd_socfpga/agilex7_dk_si_agf014ea-gsrd-images.
  6. Burn the SD card using the image with a tool like SD imager or follow the steps in the GSRD Creating SD card.