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

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2024-06-21
Version
2024.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 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 apps --template dfx_dtg_<platform>_full (platform can be zynq, zynqmp and versal) -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.
  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>