xilinx_petalinux-踩坑报错处理总结
报错
libtinfo.so.5 is required by meta-xilinx-tools. This library must be installed before the build system can use xsct. It is often part of an ncurses5 package.
解决:把 libtinfo.so.X 链接到 libtinfo.so.5
点击查看代码
sudo ln -s /lib/x86_64-linux-gnu/libtinfo.so.6.4 /lib/x86_64-linux-gnu/libtinfo.so.5
报错
ERROR: PermissionError: [Errno 1] Operation not permitted
During handling of the above exception, another exception occurred:
解决
点击查看代码
sudo apparmor_parser -R /etc/apparmor.d/unprivileged_userns
报错
NOTE: Executing Tasks
ERROR: gettext-minimal-native-0.22.5-r0 do_fetch: Bitbake Fetcher Error: MalformedUrl('/mnt/hgfs/xilinx/downloads')
ERROR: Logfile of failure stored in: /home/XXXX/build/tmp/work/x86_64-linux/gettext-minimal-native/0.22.5/temp/log.do_fetch.15689
解决:没设置好
petalinux-config
file:///mnt/hgfs/xilinx/downloads/
报错
Bitbake Fetcher Error
解决:
下载Bitbake
https://github.com/openembedded/bitbake
解压 /home/song/samba/bitbake-master/
点击查看代码
export PATH=/home/XXXX/samba/bitbake-master/bin/:$PATH
export PYTHONPATH=/home/XXXX/samba/bitbake-master/lib/:$PYTHONPATH
报错
ERROR: Nothing PROVIDES 'device-dree'. Close matches:
device-tree
idevicerestore
uboot-device-tree
解决:
出现在执行petalinux-build -c device-tree -x cleansstate清理设备树编译状态后,需要重新 petalinux-build
petalinux-build
报错
Failed to copy built images to tftp dir: /tftpboot
解决:
去掉tftpboot的设置: petalinux-config -> Image Packaging Configuration -> Copy final images to tftpboot
点击查看代码
petalinux-build
报错
ERROR: device-tree-xilinx-v2024.2+git-r0 do_compile: Error executing a python function in exec_func_python() autogenerated:
The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_func_python() autogenerated', lineno: 2, function:
.........................................
Subprocess output:
/home/XXXX/components/plnx_workspace/device-tree/device-tree/zynqmp.dtsi:616.27-628.5: ERROR (phandle_references): /axi/ethernet@ff0b0000: Reference to non-existent node or label "phy1"
also defined at /home/XXXX/components/plnx_workspace/device-tree/device-tree/zynqmp-clk-ccf.dtsi:145.7-150.3
also defined at /home/XXXX/components/plnx_workspace/device-tree/device-tree/pcw.dtsi:57.7-71.3
/home/XXXX/components/plnx_workspace/device-tree/device-tree/pcw.dtsi:65.38-69.5: ERROR (phandle_references): /axi/ethernet@ff0b0000/mdio/gmii_to_rgmii_0@8: Reference to non-existent node or label "phy1"
ERROR: Input tree has errors, aborting (use -f to force output)
解决:
通常是不正确的 .xsa 文件引起
根据日志文件说明
/axi/ethernet@ff0b0000: Reference to non-existent node or label "phy1"
also defined at /home/XXXX/components/plnx_workspace/device-tree/device-tree/zynqmp-clk-ccf.dtsi:145.7-150.3
also defined at /home/XXXX/components/plnx_workspace/device-tree/device-tree/pcw.dtsi:57.7-71.3
在设备树文件 zynqmp-clk-ccf.dtsi:145.7-150.3 和 pcw.dtsi:57.7-71.3 引用了不存在的节点 Reference to non-existent node or label "phy1"
直接搜索屏蔽引用了 "phy1"的节点
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?