Steps to Build PetaLinux System Image - 2022.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2022-10-19
Version
2022.2 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: /wrk/everest_fcv_nobkup/project/release/xilinx-vck190-2022.2/build/cache/prserv.sqlite3, Address: 127.0.0.1:41587, PID: 16627
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################| Time: 0:02:28
Parsing of 4463 .bb files complete (0 cached, 4463 parsed). 6499 targets, 587 skipped, 1 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim file:///wrk/everest_fcv_nobkup/project/release/xilinx-vck190-2022.2/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:16
Checking sstate mirror object availability: 100% |###########################################################################################| Time: 0:01:06
Sstate summary: Wanted 1770 Local 0 Network 1447 Missed 323 Current 0 (81% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 4717 tasks of which 3997 didn't need to be rerun and all succeeded.
INFO: Failed to copy built images to tftp dir: /tftpboot
[INFO] Successfully built project