Select the device-tree matching design module 8 and build all Linux image components. If you have run petalinux-build
in a previous module, the build step will be incremental.
% cd $TRD_HOME/petalinux/bsp/project-spec/meta-user/recipes-bsp/device-tree/files/ % cp zcu102-base-dm8.dtsi system-user.dtsi % petalinux-build |
Build the project using the make file.This can take several hours.
% cd $TRD_HOME/zcu102_base_trd/samples/filter2d_pl/ % make PLATFORM=$TRD_HOME/zcu102_base_trd/zcu102_base_trd.xpfm XFOPENCV_INCDIR=$TRD_HOME/zcu102_base_trd/sw/zcu102_base_trd/a53_linux/inc/xfopencv PPC=XF_NPPC1 |
Generate BOOT.BIN from the obtained bitstream, copy xclibin and linux image to sd card once the build is finished.
% cp $TRD_HOME/zcu102_base_trd/samples/filter2d_pl/binary_container_1.xclbin $TRD_HOME/sd_card/dm8 % cp $TRD_HOME/zcu102_base_trd/samples/filter2d_pl/_x/link/int/system.bit $TRD_HOME/petalinux/bsp/images/linux % cd $TRD_HOME/petalinux/bsp/images/linux % petalinux-package --boot --bif=../../project-spec/boot/dm6.bif --force % cp BOOT.BIN image.ub boot.scr $TRD_HOME/sd_card/dm8 |
$TRD_HOME/sd_card/dm8
SD card directory to a FAT formatted SD card.To re-start the TRD application with the max supported resolution, run
% run_video.sh |
To re-start the TRD application with a specific supported resolution use the -r switch e.g. for 1920x1080, run
% run_video.sh -r 1920x1080 |