To build the software, the board support package (BSP) and build tools are needed. For the tools, see the 2019.2 version of the PetaLinux Tools Documentation: PetaLinux Command Line Reference (UG1157).
- Ensure the PetaLinux tools are available in the PATH environment variable.
- To create the project, enter:
-
petalinux-create -t project -s <bsp> -n <project_name>
-
- To build the project, enter:
-
cd <project_name> -
petalinux-build -v
-
- To make the images for the SD card, enter:
-
petalinux-package --force --boot --fsbl ./pre-built/linux/images/zynqmp_fsbl.elf --fpga ./images/linux/system.bit --pmufw ./pre-built/linux/images/pmufw.elf --u-boot ./images/linux/u-boot.elf
-
- Copy these files to the SD card:
- <project_name>/images/linux/BOOT.BIN
- <project_name>/images/linux/image.ub
- <project_name>/images/linux/boot.scr