【petalinux 2024.01】petalinux-build时module ‘plnx_vars‘ has no attribute ‘CopyDir‘错误

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目录,可以推测错误出现在这个过程。
随后关闭复制弄个,再次编译。
在这里插入图片描述
可以正常编译。

  • 10
    点赞
  • 19
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq2108462953

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值