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

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

3.6. Generating the Preloader

The preloader is an essential component for the TSN drive-on-chip design HPS to boot-up. The Intel Quartus compilation generates a directory hps_isw_handoff. Every time you modify the Qsys system or the Intel Quartus Prime project, you must generate a new preloader and include it in the SD card image for the HPS.
  1. Open the SoC EDS Command Shell and navigate to the directory /<project_location>/software_hps/spl_bsp (or create it within the project files) and run the bsp-editor.
    bsp-editor.exe
  2. Click File > New HPS BSP…
  3. Set the Preloader settings directory: to <project_location>/hps_isw_handoff/DOC_TANDEM_CVSX_NIOS_TSN_QSYS_hps_0
  4. Turn off Use default locations and change the target directory to <project location>/software_hps/spl_bsp, click OK.
  5. In the BSP Editor settings window, turn on FAT support, turn off the watchdog, and turn on SDRAM_SCRUBBING
    Figure 27. BSP editor to generate preloader
  6. Press Generate and close the window
  7. In the SoC EDS Command Shell navigate to <project_location>/software_hps/spl_bsp.
  8. Do a make clean and then a make all.
    If you see any error regarding tar.gz file decompression, use /usr/bin/make.exe to compile.
The file preloader-mkpimage.bin generates, which integrates into the SD card image for the HPS booting process.