petalinux 2024.01使用过程中问题记录
一、问题描述
在编译的末尾提示错误,具体过程如下。
(pyenv) test@u220402:~/xilinx-qemu-first-run-loc$ petalinux-build
[INFO] Building project
[INFO] Getting Platform info from HW file
[INFO] Silentconfig project
[INFO] Silentconfig rootfs
[INFO] Generating configuration files
[INFO] Generating workspace directory
NOTE: Starting bitbake server…
NOTE: Started PRServer with DBfile: /home/test/work/test/petaLinux/xilinx-qemu-first-run-loc/build/cache/prserv.sqlite3, Address: 127.0.0.1:41915, PID: 96 2206
INFO: Specified workspace already set up, leaving as-is
[INFO] bitbake petalinux-image-minimal
NOTE: Started PRServer with DBfile: /home/test/work/test/petaLinux/xilinx-qemu-first-run-loc/build/cache/prserv.sqlite3, Address: 127.0.0.1:40241, PID: 96 2412
Loading cache: 100% | | ETA: --:–:–
Loaded 0 entries from dependency cache.
Parsing recipes: 87% |##################################################################################################### Parsing recipes: 88% |###################################################################################################### Parsing recipes: 89% |###################################################################################################### Parsing recipes: 90% |###################################################################################################### Parsing recipes: 100% |#######################################################################################| Time: 0:01:50
Parsing of 4468 .bb files complete (0 cached, 4468 parsed). 6417 targets, 379 skipped, 2 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim file:///home/test/work/test/petaLinux/xilinx-qemu-first-run-loc/components/yocto/downloa ds/uninative/1c35f09a75c4096749bbe1e009df4e3968cde151424062cf4aa3ed89db22b030/x86_64-nativesdk-libc-4.3.tar.xz;sha256sum=1c35 f09a75c4096749bbe1e009df4e3968cde151424062cf4aa3ed89db22b030 (will check PREMIRRORS first)
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.
Initialising tasks: 100% |####################################################################################| Time: 0:00:11
Checking sstate mirror object availability: 100% |############################################################| Time: 0:42:36
Sstate summary: Wanted 1678 Local 0 Mirrors 1509 Missed 169 Current 0 (89% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 4563 tasks of which 3848 didn’t need to be rerun and all succeeded.
Summary: There was 1 WARNING message.
[ERROR] module ‘plnx_vars’ has no attribute ‘CopyDir’
二、问题分析
通过分析发现改错误出现在系统编译后,这说明编译本身没有问题。从log看,在编译后,petalinux-build将镜像复制到tftp目录,可以推测错误出现在这个过程。
随后关闭复制弄个,再次编译。
可以正常编译。