Building a PetaLinux System Image - 2023.2 English

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2023-10-18
Version
2023.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 adaptive SoC), PSM (for Versal adaptive SoC) and TF-A (for Zynq UltraScale+ MPSoC and Versal adaptive SoC), 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 and /tftpboot directories.

The console shows the compilation progress. For example:

petalinux-build 
[INFO] Sourcing buildtools
[INFO] Building project
[INFO] Silentconfig project
[INFO] Silentconfig rootfs
[INFO] Generating workspace directory
INFO: bitbake petalinux-image-minimal
NOTE: Started PRServer with DBfile: xilinx-vck190-2023.2/build/cache/prserv.sqlite3, Address: 127.0.0.1:44081, PID: 24954
Loading cache: 100% |                                                                           | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |##########################################################################| Time: 0:00:29
Parsing of 4414 .bb files complete (0 cached, 4414 parsed). 6351 targets, 348 skipped, 1 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim file:///xilinx-vck190-2023.2/components/yocto/downloads/uninative/3dd82c3fbdb59e87bf091c3eef555a05fae528eeda3083828f76cd4deaceca8b/x86_64-nativesdk-libc-3.9.tar.xz;sha256sum=3dd82c3fbdb59e87bf091c3eef555a05fae528eeda3083828f76cd4deaceca8b (will check PREMIRRORS first)
Initialising tasks: 100% |#######################################################################| Time: 0:00:05
Checking sstate mirror object availability: 100% |###############################################| Time: 0:00:43
Sstate summary: Wanted 1752 Local 57 Mirrors 1204 Missed 491 Current 0 (71% match, 0% complete)
NOTE: Executing Tasks
WARNING: zocl-202320.2.16.0-r0 do_package_qa: QA Issue: File /lib/modules/6.1.30-xilinx-v2023.2/extra/zocl.ko in package kernel-module-zocl-6.1.30-xilinx-v2023.2 contains reference to TMPDIR [buildpaths]
NOTE: Tasks Summary: Attempted 4631 tasks of which 3751 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message.
INFO: Failed to copy built images to tftp dir: /tftpboot