The petalinux-package
tool packages a
PetaLinux project into a format suitable for deployment. The tool provides several
workflows whose operations vary depending on the target package format. The supported
formats/workflows are boot
, bsp
, and pre-built
. The petalinux-package
tool is executed using the package type
name to specify a specific workflow in the format petalinux-package --PACKAGETYPE
.
- The
boot
package type creates a file (.BIN or .MCS) that allows the target device to boot. - The
bsp
package type creates a .bsp file which includes the entire contents of the target PetaLinux project. This option allows you to export and re-use your bsp. - The
pre-built
package type creates a new directory within the target PetaLinux project called "pre-built" and contains prebuilt content that is useful for booting directly on a physical board. This package type is commonly used as a precursor for creating absp
package type. - The
image
package type packages image for component with the specified format. - The
sysroot
package type installs the sysroot for the Vitis™ software platform. It can specify the installer path and also install directory path.
You are required to install
Vivado® Design Suite on the same machine as PetaLinux to use petalinux-boot
for the MCS format for
MicroBlaze™
processor. By default, the petalinux-package
tool loads default files from the
<plnx-proj-root>/images/linux/
directory.