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

简介: 【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目录,可以推测错误出现在这个过程。


随后关闭复制弄个,再次编译。

可以正常编译。

相关文章
【linux】PetaLinux 2024.1安装笔记
【linux】PetaLinux 2024.1安装笔记
889 0
【ZYNQ】简单几步,教你使用 Petalinux 定制 Linux
【ZYNQ】简单几步,教你使用 Petalinux 定制 Linux
968 0
【ZYNQ】制作从 QSPI Flash 启动 Linux 的启动文件
【ZYNQ】制作从 QSPI Flash 启动 Linux 的启动文件
1380 0
【ZYNQ】裸机 PS + PL 双网口实现之 ZYNQ 配置
【ZYNQ】裸机 PS + PL 双网口实现之 ZYNQ 配置
2208 0
详细讲解移植u-boot.2022.10版本移植到开发板基本方法
详细讲解移植u-boot.2022.10版本移植到开发板基本方法
742 0
ZYNQ - 嵌入式Linux开发 -07- petalinux工程配置解析(一)
ZYNQ - 嵌入式Linux开发 -07- petalinux工程配置解析
1668 0
ZYNQ - 嵌入式Linux开发 -07- petalinux工程配置解析(一)
openEuler 打开图形菜单报错:make [1]:‘ [ scripts/i Makefile. host:9: scripts/ kconfig/ lexer. lex.c]错误 127
openEuler 打开图形菜单报错:make [1]:‘ [ scripts/i Makefile. host:9: scripts/ kconfig/ lexer. lex.c]错误 127
585 0
登录插画

登录以查看您的控制台资源

管理云资源
状态一览
快捷访问