PetaLinux to create PL applications and install on target - 2022.1 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2022-04-26
Version
2022.1 English

This section is useful for PL application developers who have setup bootable images from the BSP and want to create only PL applications.

  1. Source the PetaLinux tool.
  2. Create the project.

    petalinux-create -t project -s <bsp>

  3. Go to the bsp.
  4. Use the petalinux-create command to add the PL xsa files into the PetaLinux project.

    The following command will create the fpgamanager_dtg app with the xsa file to generate the dtsi and bit files.

    petalinux-create -t apps --template fpgamanager_dtg -n can-interface --srcuri <path-to-xsa>/system.xsa

    INFO: Create apps: can-interface
    INFO: Copying source urls into the project directory
    INFO: New apps successfully created in <plnx-proj-root>/project-spec/meta-user/recipes-apps/can-interface
    INFO: Enabling created component...
    INFO: Sourcing build environmentINFO: Silentconfig rootfs
    INFO: can-interface has been enabled
    Note: For each XSA, create a separate app using the previous command. FPGA manager should be enabled in petalinux-config for both fpgamanager and fpgamanager_dtg template apps.
  5. Run petalinux-build.
  6. You can find the dtbo and bin files into<proj>/build/tmp/deploy/rpm dir.
  7. You can get the required rpm files onto the target using tftp or some otherway and then install the rpms.