PetaLinux to Create PL Applications and Install on Target - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2023-10-18
Version
2023.2 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 creates 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 and install the rpms.
    rpm -i <rpmname>