- Change into the directory of your PetaLinux
project.
cd <plnx-proj-root> - Run
petalinux-buildto build the system image:petalinux-buildThis 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.
- 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] Extracting yocto SDK to components/yocto. This may take time!
[INFO] Getting Platform info from HW file
[INFO] Generating Kconfig for project
[INFO] Silentconfig project
[INFO] Generating kconfig for rootfs
[INFO] Silentconfig rootfs
[INFO] Generating configuration files
[INFO] Adding user layers
[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/build/cache/prserv.sqlite3, Address: 127.0.0.1:40371, PID: 2736
INFO: Specified workspace already set up, leaving as-is
INFO: Enabling workspace layer in bblayers.conf
[INFO] bitbake petalinux-image-minimal
NOTE: Started PRServer with DBfile: /wrk/everest_fcv_nobkup/build/cache/prserv.sqlite3, Address: 127.0.0.1:38405, PID: 2812
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |#################################################################################################| Time: 0:00:27
Parsing of 4478 .bb files complete (0 cached, 4478 parsed). 6427 targets, 384 skipped, 2 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim file:///wrk/everest_fcv_nobkup/kavyasre/_logs_/_vck190_/xilinx-vck190-2024.1/components/yocto/downloads/uninative/5fab9a5c97fc73a21134e5a81f74498cbaecda75d56aab971c934e0b803bcc00/x86_64-nativesdk-libc-3.8.1.tar.xz;sha256sum=5fab9a5c97fc73a21134e5a81f74498cbaecda75d56aab971c934e0b803bcc00 (will check PREMIRRORS first)
Initialising tasks: 100% |##############################################################################################| Time: 0:00:05
Checking sstate mirror object availability: 100% |######################################################################| Time: 0:00:41
Sstate summary: Wanted 1822 Local 0 Mirrors 1121 Missed 701 Current 0 (61% match, 0% complete)
NOTE: Executing Tasks
WARNING: zocl-202320.2.17.0-r0 do_package_qa: QA Issue: File /lib/modules/6.6.10-xilinx-v2024.1-ga33033bade74/updates/zocl.ko in package kernel-module-zocl-6.6.10-xilinx-v2024.1-ga33033bade74 contains reference to TMPDIR [buildpaths]
NOTE: Tasks Summary: Attempted 4918 tasks of which 4069 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
[INFO] Successfully built project