petalinux-config Command Line Options - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
Release Date
2023.2 English

The following table details the available options for the petalinux-config tool.

Table 1. petalinux-config Command Line Options
Option Functional Description Value Range Default Value
-p, --project <path to project directory> Specifies path to the project to be configured. User-specified Current Directory
--get-hw-description <DIR containing XSA>/--get-hw-description=<DIR containing XSA>/--get-hw-description=<PATH-TO-XSA> Initializes or updates the hardware configuration for the PetaLinux project. Mutually exclusive with -c. This is required. User-specified Current Directory

-c,--component COMPONENT

Configures the specified system component. Mutually exclusive with --get-hw-description. This is required.
  • kernel
  • rootfs
  • u-boot
  • bootloader (for AMD Zynq™ UltraScale+™ MPSoC, Zynq architecture, and MicroBlaze™ CPU)
  • pmufw, for Zynq UltraScale+ MPSoC only
  • device-tree
  • plm, for AMD Versal™ adaptive SoC
  • psmfw, for Versal adaptive SoC
--silentconfig Allows you to restore a prior configuration. Example:

Execute the following command after enabling or disabling different configs by editing <proj-root>/project-spec/configs/config

$ petalinux-config --silentconfig
None None
-v,--verbose Displays additional output messages. This is optional. None None
-h,--help Displays tool usage information. This is optional. None None