Steps to Build PetaLinux System Image - 2022.1 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2022-04-26
Version
2022.1 English
  1. Change into the directory of your PetaLinux project.
    $ cd <plnx-proj-root>
  2. Run petalinux-build to build the system image:
    $ petalinux-build

    This step generates a device tree DTB file, a first stage boot loader (for Zynq® devices, Zynq® UltraScale+™ MPSoC, and MicroBlaze™ ), PLM (for Versal® ACAP), PSM (for Versal ACAP) and TF-A (for Zynq UltraScale+ MPSoC and Versal ACAP), U-Boot, the Linux kernel, a root file system image, and the U-Boot boot script (boot.scr). Finally, it generates the necessary boot images.

  3. The compilation progress shows on the console. Wait until the compilation finishes.
Tip: A detailed compilation log is in <plnx-proj-root>/build/build.log.

When the build finishes, the generated images are stored in the <plnx-proj-root>/images/linux or /tftpboot directories.

The console shows the compilation progress. For example:

$ petalinux-build
[INFO] Sourcing buildtools
[INFO] Building project
[INFO] Generating Kconfig for project
[INFO] Silentconfig project
[INFO] Extracting yocto SDK to components/yocto. This may take time!
[INFO] Sourcing build environment
[INFO] Generating kconfig for Rootfs
[INFO] Silentconfig rootfs
[INFO] Generating plnxtool conf
[INFO] Adding user layers
[INFO] Generating workspace directory
INFO: bitbake petalinux-image-minimal
NOTE: Started PRServer with DBfile: <plnx-proj-root>/xilinx-vck190-2022.1/build/cache/prserv.sqlite3, Address: 127.0.0.1:44031, PID: 4173
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |###################################################################################################################################| Time: 0:02:09
Parsing of 3638 .bb files complete (0 cached, 3638 parsed). 5440 targets, 537 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim file:/// <plnx-proj-root>/xilinx-vck190-2022.1/components/yocto/downloads/uninative/126f4f7f6f21084ee140dac3eb4c536b963837826b7c38599db0b512c3377ba2/x86_64-nativesdk-libc-3.4.tar.xz;sha256sum=126f4f7f6f21084ee140dac3eb4c536b963837826b7c38599db0b512c3377ba2 (will check PREMIRRORS first)
Initialising tasks: 100% |################################################################################################################################| Time: 0:00:19
Checking sstate mirror object availability: 100% |########################################################################################################| Time: 0:00:25
Sstate summary: Wanted 1757 Local 0 Network 1435 Missed 322 Current 0 (81% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 4681 tasks of which 3963 didn't need to be rerun and all succeeded.
INFO: Failed to copy built images to tftp dir: /tftpboot
[INFO] Successfully built project