作者:张超,XILINX 产品应用工程师;来源:
今天邀请到赛灵思专家和大家分享下如何在 Petalinux 下定位 decice-tree 错误的一些技巧。
首先我们来了解下 Petalinux 工程中 device-tree 的文件位置:
工具自动生成的device-tree文件位于
components/plnx_workspace/device-tree/device-tree,
该文件夹下的文件请勿自行修改,供用户编辑的 device-tree 文件位于
project-spec/meta-user/recipes-bsp/device-tree/files
对于大部分错误,通过 petalinux 工具的 error log 已经足够定位错误类型和位置。比如下面,
ERROR: device-tree-xilinx-v2020.1+gitAUTOINC+f725aaecff-r0 do_compile: Error executing a python function in exec_python_func() autogenerated:
The stack trace of python calls that resulted in this exception/failure was
……
Subprocess output:
/tmp/xilinx-zcu102-2020.2-2021.02.08-01.47.20-87H/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.1+gitAUTOINC+f725aaecff-r0/system-user.dtsi:3.31-15.9: ERROR (duplicate_label): /ethernet@