Petalinux由于网络缘故原由产生的编译错误(4)--ERROR: device-tree-xilinx- ...

打印 上一主题 下一主题

主题 861|帖子 861|积分 2583



  1. ERROR: device-tree-xilinx-v2020.2+gitAUTOINC+f725aaecff-r0 do_compile: Error executing a python function in exec_python_func() autogenerated:
  2. The stack trace of python calls that resulted in this exception/failure was:
  3. File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
  4.      0001:
  5. *** 0002:devicetree_do_compile(d)
  6.      0003:
  7. File: '/home/ht123/arty/ZYNQLED/components/yocto/layers/core/meta/classes/devicetree.bbclass', lineno: 131, function: devicetree_do_compile
  8.      0127:            if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):
  9.      0128:                continue # skip non-.dts files and non-overlay files
  10.      0129:        except:
  11.      0130:            continue # skip if can't determine if overlay
  12. *** 0131:        devicetree_compile(dtspath, includes, d)
  13.      0132:}
  14.      0133:
  15.      0134:devicetree_do_install() {
  16.      0135:    for DTB_FILE in `ls *.dtb *.dtbo`; do
  17. File: '/home/ht123/arty/ZYNQLED/components/yocto/layers/core/meta/classes/devicetree.bbclass', lineno: 119, function: devicetree_compile
  18.      0115:        dtcargs += ["-i", i]
  19.      0116:    dtcargs += ["-o", "{0}.{1}".format(dtname, "dtbo" if isoverlay else "dtb")]
  20.      0117:    dtcargs += ["-I", "dts", "-O", "dtb", "{0}.pp".format(dts)]
  21.      0118:    bb.note("Running {0}".format(" ".join(dtcargs)))
  22. *** 0119:    subprocess.run(dtcargs, check = True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
  23.      0120:
  24.      0121:python devicetree_do_compile() {
  25.      0122:    includes = expand_includes("DT_INCLUDE", d)
  26.      0123:    listpath = d.getVar("DT_FILES_PATH")
  27. File: '/opt/pkg/petalinux/2020.2/components/yocto/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.7/subprocess.py', lineno: 512, function: run
  28.      0508:            raise
  29.      0509:        retcode = process.poll()
  30.      0510:        if check and retcode:
  31.      0511:            raise CalledProcessError(retcode, process.args,
  32. *** 0512:                                     output=st
  33. Subprocess output:
  34. Error: /home/ht123/arty/ZYNQLED/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2020.2+gitAUTOINC+f725aaecff-r0/system-user.dtsi:28.9-13 syntax error
  35. FATAL ERROR: Unable to parse input tree
  36. ERROR: Logfile of failure stored in: /home/ht123/arty/ZYNQLED/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/device-tree/xilinx-v2020.2+gitAUTOINC+f725aaecff-r0/temp/log.do_compile.37615
  37. ERROR: Task (/home/ht123/arty/ZYNQLED/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1'
复制代码
重要是装备树编写语法错误:
检查装备树文件:
  1. vi project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi
复制代码
修改后错误消失。

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

宝塔山

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表