Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...


Design Components


This module requires the following components:
  • zcu102_base_trd (SDSoC)
  • sdxopticalflow (gstreamer plugin)


Build Flow Tutorials

Optical Flow GStreamer Plugin


This tutorial shows how to build the optical flow GStreamer plugin based on the Base TRD SDSoC platform.
  • Open the existing SDx workspace from design module 8 using the SDx tool.

    Code Block
    languagebash
    themeMidnight
    % cd $TRD_HOME/workspaces/ws_sdx
    % sdx -workspace . &


  • From the menu bar, select Window → Preferences. From the dialog, select System Project on the left and check the 'Show system projects in workspace' box.

  • Click File → New → SDx Library Project from the menu bar. Enter 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
  • Check the Linux Root File System box, click the browse button and enter the path to the PetaLinux generated target sysroot: $TRD_HOME/petalinux/sdk/sysroots/aarch64-xilinx-linux.
  • From the template dialog, select the GStreamer Optical Flow Plugin template and click Finish.
  • In the Project Explorer, you can see that the newly generated gstsdxopticalflow project was placed under the existing system project named gstsdxfilter2d_system.
  • In the gstsdxopticalflow project configuration window, make sure the hardware functions are shown as below. Uncheck the Generate SD card image box.


  • Right-click the 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.

    Code Block
    languagebash
    themeMidnight
    % cp -r gstsdxfilter2d_system/Debug/sd_card $TRD_HOME/sd_card/dm9


...