To build for hardware, run the following command:
cd .. make xsa TARGET=hw
or
v++ -l --platform $PLATFORM_REPO_PATHS/xilinx_vck190_base_202420_1/xilinx_vck190_base_202420_1.xpfm s2mm.xo mm2s.xo libadf.a -t hw --save-temps -g --config system.cfg -o tutorial.xsa
Then re-run the packaging step with:
make package TARGET=hw
or
cd ./sw v++ --package -t hw \ -f $PLATFORM_REPO_PATHS/xilinx_vck190_base_202420_1/xilinx_vck190_base_202420_1.xpfm \ --package.rootfs=$PLATFORM_REPO_PATHS/sw/versal/xilinx-versal-common-v2024.2/rootfs.ext4 \ --package.image_format=ext4 \ --package.boot_mode=sd \ --package.kernel_image=$PLATFORM_REPO_PATHS/sw/versal/xilinx-versal-common-v2024.2/Image \ --package.defer_aie_run \ --package.sd_file host.exe ../tutorial.xsa ../libadf.a cd ..
When you run on hardware, ensure you have a supported SD card. Format the SD card with the
sw/sd_card.img
file. Then plug the SD card into the board and power it up.When a Linux prompt appears, run the following commands:
dmesg -n 4 && echo "Hide DRM messages..." cd /run/media/*1 export XILINX_XRT=/usr ./host.exe a.xclbin
You should see TEST PASSED. You have successfully run your design on hardware.
IMPORTANT: To re-run the application you need to power cycle the board.