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 -t 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 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. - 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 or some
otherway and then install the
rpms.
rpm -i <rpmname>