Steps to Build PetaLinux System Image - 2021.1 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
UG1144
Release Date
2021-06-16
Version
2021.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 ATF (for Zynq UltraScale+ MPSoC and Versal ACAP), U-Boot, the Linux kernel, a root file system image. and the boot script (boot.scr which does not exist for MicroBlaze). 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] Sourcing build environment
[INFO] Generating workspace directory
INFO: bitbake petalinux-image-minimal
NOTE: Started PRServer with DBfile: <plnx-proj-root>/xilinx-vck190-2021.1/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 43231, PID: 5719
Loading cache: 100% |                                                                                                                                         | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |########################################################################################################################################| Time: 0:01:37
Parsing of 3477 .bb files complete (0 cached, 3477 parsed). 5112 targets, 243 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim file:/<plnx-proj-root>/xilinx-vck190-2021.1/components/yocto/downloads/uninative/5ec5a9276046e7eceeac749a18b175667384e1f445cd4526300a41404d985a5b/x86_64-nativesdk-libc.tar.xz;sha256sum=5ec5a9276046e7eceeac749a18b175667384e1f445cd4526300a41404d985a5b (will check PREMIRRORS first)
Initialising tasks: 100% |#####################################################################################################################################| Time: 0:00:14
Checking sstate mirror object availability: 100% |#############################################################################################################| Time: 0:00:20
Sstate summary: Wanted 1441 Found 1118 Missed 323 Current 0 (77% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 4363 tasks of which 3067 didn't need to be rerun and all succeeded.
INFO: Failed to copy built images to tftp dir: /tftpboot
[INFO] Successfully built project