Steps to Build PetaLinux System Image - 2020.2 English

PetaLinux Tools Documentation Reference Guide (UG1144)

Document ID
UG1144
Release Date
2020-11-24
Version
2020.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
  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 build tools
[INFO] Building project
[INFO] Generating Kconfig for project
[INFO] Silentconfig project
[INFO] Extracting yocto SDK to components/yocto
[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
Parsing recipes: 100% |########################################################################################################################################| Time: 0:00:42
Parsing of 3078 .bb files complete (0 cached, 3078 parsed). 4348 targets, 253 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim from file:///proj/xhdsswstaff/kamakshi/7/xilinx-zcu102-2020.2/components/yocto/downloads/uninative/9498d8bba047499999a7310ac2576d0796461184965351a56f6d32c888a1f216/x86_64-nativesdk-libc.tar.xz;sha256sum=9498d8bba047499999a7310ac2576d0796461184965351a56f6d32c888a1f216
Initialising tasks: 100% |#####################################################################################################################################| Time: 0:00:04
Checking sstate mirror object availability: 100% |#############################################################################################################| Time: 0:02:14
Sstate summary: Wanted 1016 Found 804 Missed 212 Current 0 (79% match, 0% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
NOTE: Tasks Summary: Attempted 3614 tasks of which 2579 didn't need to be rerun and all succeeded.
INFO: Failed to copy built images to tftp dir: /tftpboot
[INFO] Successfully built project