The Vitis software platform supports boot image creation wizard for Versal devices. To generate a boot image PDI or Boot.bin, you can either use Bootgen command line options or use the wizard in Vitis. This tutorial shows how to create Boot image using Bootgen, which is released as a part of the Vitis software platform package. The primary function of Bootgen is to integrate the various partitions of the bootable image. Bootgen uses a BIF file (Bootgen Image Format) as an input and generates a single file image in binary BIN or PDI format. It outputs a single file image which can be loaded into non-volatile memory (QSPI or SD card). Use the following steps to generate a PDI/BIN file:
Open Vitis IDE and go to Terminal -> New Terminal to launch XSCT.
xsct
- ** Software Commandline Tool (XSCT) v2024.1.0
- **** SW Build 0 on 2024-05-19-14:06:07
** Copyright 1986-2022 Xilinx, Inc. All Rights Reserved. ** Copyright 2022-2024 Advanced Micro Devices, Inc. All Rights Reserved.
- Warning: XSCT has been deprecated. It will still be available for several releases.It’s recommended to start new projects with new python command line tool.
Use “vitis -s <script>” (script mode) and “vitis -i” (interactive mode) to load new Python CLI for Vitis.
xsct%
Create a folder where you want to generate the boot image by typing the following command in the XSCT Console:
mkdir bootimages cd bootimages/
Copy the sd_boot.bif file present within the
<design-package>/<board-name>/ready_to_test/qspi_images/standalone/<cips or cips_noc>/<apu or rpu>/directory, the PDI file present within<Vitis platform project>/hw/<.pdi-file>, and the application elf files present within the<Vitis application-project>/Debugfolder to the folder created in step 2.Note
If needed, open the
sd_boot.biffile in a text editor of your choice and modify the name of the PDI or elfs as per your Vitis projects.Run the following command in the XSCT Console view.
bootgen -image <bif filename>.bif -arch versal -o BOOT.BIN
The following log is displayed in the XSCT Console view.