This section is useful for PL application developers who have setup bootable images from the BSP and want to create only PL applications.
- Source the PetaLinux tool.
- Create the
project.
petalinux-create project -s <bsp>
- Go to the bsp.
- 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. - Run petalinux-build.
- You can find the dtbo and bin files into <proj>/build/tmp/deploy/rpm dir.
- You can get the required rpm files onto the target using tftp and install the
rpms.
rpm -i <rpmname>