4. Package the Design - 2023.1 English

Vitis Tutorials: AI Engine Development

Document ID
Release Date
2023.1 English

With all the AI Engine outputs and the new platform created, you can now generate the packaged SD card directory contains everything to boot Linux and have your generated application and .xclbin.

To package the design, run the following command:

make package


cd ./sw
v++ -p -t sw_emu  \
    -f $PLATFORM_REPO_PATHS/xilinx_vck190_base_202310_1/xilinx_vck190_base_202310_1.xpfm \
    --package.rootfs=$PLATFORM_REPO_PATHS/sw/versal/xilinx-versal-common-v2023.1/rootfs.ext4 \
    --package.image_format=ext4 \
    --package.boot_mode=sd \
    --package.kernel_image=$PLATFORM_REPO_PATHS/sw/versal/xilinx-versal-common-v2023.1/Image \
    --package.defer_aie_run \
    --package.sd_file embedded_exec.sh \
    --package.sd_file host.exe ../tutorial.xsa ../libadf.a
cd ..

NOTE: By default the --package flow will create a a.xclbin automatically if the -o switch is not set.

The following table describes the packager options:

Switch/flag Description
rootfs Points to the formatted image of the platform.
image_format Tells the packager what the image format is.
boot_mode Determines how the design is going to be run.
kernel_image Points to the Image file created by PetaLinux.
defer_aie_run Tells the packager at boot to not start the AI Engine and let the host application control it.
sd_file Tells the packager what file is to be packaged in the sd_card directory. You will need to specify this multiple times for all the files to be packaged.