Open the existing SDx workspace from design module 8 using the SDx tool.
% cd $TRD_HOME/workspaces/ws_sdx % sdx -workspace . & |
gstsdxopticalflow
as the project name. Change the System project to gstsdxfilter2d_system
which is the system project that got generated automatically in DM8. Click Next. Select the default "shared library" option and click Next$TRD_HOME/petalinux/sdk/sysroots/aarch64-xilinx-linux
.gstsdxopticalflow
project was placed under the existing system project named gstsdxfilter2d_system
.gstsdxopticalflow
project configuration window, make sure the hardware functions are shown as below. Uncheck the Generate SD card image box.gstsdxopticalflow
project in the Project Explorer and select C/C++ Build Settings. Under SDS++ Linker → Miscellaneous, enter the string "-mno-bitstream" in the Linker Flags text field. Click Apply and Close.Right-click the gstsdxfilter2d_system
project in the Project Explorer and select Build. This will build all sub-projects present in the system project. As the gstsdxfilter2d
project was already built in DM8, the tool will skip to the gstsdxopticalflow
project. The previous selection skips running bitstream and SD card generation for just the gstsdxopticalflow
project but instead builds the system project which includes both accelerators in a single design. This step can take several hours.
Copy the generated SD card image once the build is finished.
% cp -r gstsdxfilter2d_system/Debug/sd_card $TRD_HOME/sd_card/dm9 |
$TRD_HOME/sd_card/dm9
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 |