Building a PetaLinux System Image - 2024.2 English - UG1144

PetaLinux Tools Documentation: Reference Guide (UG1144)

Document ID
UG1144
Release Date
2024-11-13
Version
2024.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 7000 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] Building project
[INFO] Using HW file: /wrk/everest_fcv_nobkup/nithishk/_20240926_/ug1144/xilinx-zcu102-2024.2/project-spec/hw-description/system.xsa
[INFO] Getting Platform info from HW file
[INFO] Silentconfig project
[INFO] Silentconfig rootfs
[INFO] Generating configuration files
[INFO] Generating machine conf file
[INFO] Generating plnxtool conf file
[INFO] Generating workspace directory
NOTE: Starting bitbake server...
NOTE: Started PRServer with DBfile: /wrk/everest_fcv_nobkup/nithishk/_20240926_/ug1144/xilinx-zcu102-2024.2/build/cache/prserv.sqlite3, Address: 127.0.0.1:39185, PID: 859904
INFO: Specified workspace already set up, leaving as-is
[INFO] bitbake petalinux-image-minimal
NOTE: Started PRServer with DBfile: /wrk/everest_fcv_nobkup/nithishk/_20240926_/ug1144/xilinx-zcu102-2024.2/build/cache/prserv.sqlite3, Address: 127.0.0.1:41433, PID: 859967
WARNING: You have included the meta-xilinx-standalone-sdt layer, but it has not been enabled using XILINX_WITH_ESW in your configuration. Some bbappend files and preferred version setting may not take effect. See the meta-xilinx-standalone-sdt README for details.
WARNING: XSCT has been deprecated. It will still be available for several releases. In the future, it's recommended to start new projects with SDT workflow.
Loading cache: 100% |                                                                                  | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |#################################################################################| Time: 0:01:26
Parsing of 6171 .bb files complete (0 cached, 6171 parsed). 8796 targets, 911 skipped, 4 masked, 0 errors.
WARNING: No bb files in default matched BBFILE_PATTERN_amd-adaptive-socs-core '^/wrk/everest_fcv_nobkup/nithishk/_20240926_/ug1144/xilinx-zcu102-2024.2/components/yocto/layers/meta-amd-adaptive-socs/meta-amd-adaptive-socs-core/'
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim file:///wrk/everest_fcv_nobkup/nithishk/_20240926_/ug1144/xilinx-zcu102-2024.2/components/yocto/downloads/uninative/43ee6a25bcf5fce16ea87076d6a96e79ead6ced90690a058d07432f902773473/x86_64-nativesdk-libc-4.5.tar.xz;sha256sum=43ee6a25bcf5fce16ea87076d6a96e79ead6ced90690a058d07432f902773473 (will check PREMIRRORS first)
Checking sstate mirror object availability: 100% |######################################################| Time: 0:00:40
Sstate summary: Wanted 2918 Local 0 Mirrors 2194 Missed 724 Current 0 (75% match, 0% complete)
WARNING: The xsct-native:do_recipe_qa sig is computed to be ce6fbdbad1e63e26539793ec748f4b306379b15f1b3cd84aef8338530d8ba9a1, but the sig is locked to 4335f9e56bf978f62677837536b450d0edce3912d26e32b4ae72cbe32ca2e854 in SIGGEN_LOCKEDSIGS_t-x86-64
The xsct-native:do_fetch sig is computed to be 8af9a6e2c94be09035b6c0779dd9b322c0f99f89c46f13d984b5ef422427fdbe, but the sig is locked to c27738fa07052b70ceab05c0ad52827ca2129b26ace6d9dbc61eb49362e10981 in SIGGEN_LOCKEDSIGS_t-x86-64
The xsct-native:do_unpack sig is computed to be 5b420f17fbb6f336146c292ca057e60510d2a2d294887e9adf3ea601a6c8f851, but the sig is locked to 8a1e4dffc1ab8714dabbbe8d9225e9a0654b0f74f3e82bff1b3ac1f3f18fc5a8 in SIGGEN_LOCKEDSIGS_t-x86-64
The xsct-native:do_create_spdx sig is computed to be e7ad3b7fda23b70dd000eeb3fc870361a82f8b02659340720891fb4c9f057bd6, but the sig is locked to c1aa3b3da0c408819112bce6a6a196890b3d719628cbfe0ac0d691e47c8d268d in SIGGEN_LOCKEDSIGS_t-x86-64
The xsct-native:do_populate_lic sig is computed to be 5723b0be6486d33305e068d8fdcb9ee4af037e85d5d96d8b0602503e1b31957e, but the sig is locked to 122e892e8032e38e3c03e5e20c8db4ee446e753957a3ea319ad4e7c56ed11086 in SIGGEN_LOCKEDSIGS_t-x86-64
The xsct-native:do_compile sig is computed to be 465c4043d6afd1a7f8c4b3e47001f056aeb8b848ae5cbade274e2458022f3f25, but the sig is locked to 168605831a14dac699177b69e984890d6a8e26b0719d6c06b6058d8396cfb91d in SIGGEN_LOCKEDSIGS_t-x86-64
The xsct-native:do_install sig is computed to be 4b73b5e04cf2d3b042148f230c88e82f6edef54ed8a904de2300662ae8ac48d0, but the sig is locked to d5ff89aeccebd6f9f874a2ee4afdd06c8453d7e8b775e429dc2b796e6816eec7 in SIGGEN_LOCKEDSIGS_t-x86-64
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 6432 tasks of which 5606 didn't need to be rerun and all succeeded.

Summary: There were 4 WARNING messages.
[INFO] Failed to copy built images to tftp dir: /tftpboot
[INFO] Successfully built project