petalinux-config Command Line Options - 2021.2 English

PetaLinux Tools Documentation: Reference Guide

Document ID
UG1144
Release Date
2021-10-27
Version
2021.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 Zynq® UltraScale+™ MPSoC, Zynq architecture, and MicroBlaze™ CPU)
  • pmufw, for Zynq UltraScale+ MPSoC only
  • device-tree
  • plm, for Versal® ACAP
  • psmfw, for Versal ACAP
None
--defconfig DEFCONFIG Initializes the Linux kernel/U-Boot configuration using the specified defconfig file. Valid for Linux kernel and U-Boot. This is optional. User-specified. For example, for Linux kernel, the file name of a file in <kernel_ source>/arch/<ARCH>/configs/ is XXX_ defconfig. For U-Boot, the file name of a file in <uboot_ source> /configs is XXX_defconfig. None
--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