OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 510|回复: 4

[XILINX] 新手求助一下petalinux-bulid编译错误

[复制链接]

1

主题

5

帖子

0

精华

新手入门

积分
19
金钱
19
注册时间
2022-5-27
在线时间
3 小时
发表于 2024-3-27 09:02:30 | 显示全部楼层 |阅读模式
1金钱
petalinux装的2019.1,按照2018.3那个文档教程配置的,到这一步就出现如下错误
ERROR: device-tree-xilinx+gitAUTOINC+73e546e312-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:File: 'exec_python_func() autogenerated', lineno: 2, function: <module>     0001: *** 0002:devicetree_do_compile(d)     0003:File: '/opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/core/meta/classes/devicetree.bbclass', lineno: 131, function: devicetree_do_compile     0127:            if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):     0128:                continue # skip non-.dts files and non-overlay files     0129:        except:     0130:            continue # skip if can't determine if overlay *** 0131:        devicetree_compile(dtspath, includes, d)     0132:}     0133:     0134:devicetree_do_install() {     0135:    for DTB_FILE in `ls *.dtb *.dtbo`; doFile: '/opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/core/meta/classes/devicetree.bbclass', lineno: 119, function: devicetree_compile     0115:        dtcargs += ["-i", i]     0116:    dtcargs += ["-o", "{0}.{1}".format(dtname, "dtbo" if isoverlay else "dtb")]     0117:    dtcargs += ["-I", "dts", "-O", "dtb", "{0}.pp".format(dts)]     0118:    bb.note("Running {0}".format(" ".join(dtcargs))) *** 0119:    subprocess.run(dtcargs, check = True)     0120:     0121:python devicetree_do_compile() {     0122:    includes = expand_includes("DT_INCLUDE", d)     0123:    listpath = d.getVar("DT_FILES_PATH")File: '/opt/pkg/petalinux/2019.1/components/yocto/source/armildtools/sysroots/x86_64-petalinux-linux/usrb/python3.5/subprocess.py', lineno: 398, function: run     0394:            raise     0395:        retcode = process.poll()     0396:        if check and retcode:     0397:            raise CalledProcessError(retcode, process.args, *** 0398:                                     output=stdout, stderr=stderr)     0399:    return CompletedProcess(process.args, retcode, stdout, stderr)     0400:     0401:     0402:def list2cmdline(seq):Exception: subprocess.CalledProcessError: Command '['dtc', '-R', '8', '-b', '0', '-p', '0x1000', '-i', '/home/cainux/petalinux/ALIENTEK-ZYNQild/tmp/work-sharednx-zynq7/kernel-source/scripts/dtc/include-prefixes', '-i', '/home/cainux/petalinux/ALIENTEK-ZYNQild/tmp/worknx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0', '-i', '/home/cainux/petalinux/ALIENTEK-ZYNQild/../componentsnx_workspace/device-tree/device-tree', '-i', '/home/cainux/petalinux/ALIENTEK-ZYNQild/tmp/work-sharednx-zynq7/kernel-source/arch/arm/boot/dts', '-i', '/home/cainux/petalinux/ALIENTEK-ZYNQild/tmp/work-sharednx-zynq7/kernel-source/include', '-o', 'system-top.dtb', '-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit status 2ERROR: device-tree-xilinx+gitAUTOINC+73e546e312-r0 do_compile: Function failed: devicetree_do_compileERROR: Logfile of failure stored in: /home/cainux/petalinux/ALIENTEK-ZYNQild/tmp/worknx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0/temp/log.do_compile.43232ERROR: Task (/opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1'NOTE: Tasks Summary: Attempted 2348 tasks of which 2185 didn't need to be rerun and 1 failed.Summary: 1 task failed:  /opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compileSummary: There were 2 ERROR messages shown, returning a non-zero exit code.ERROR: Failed to build project
1711501284191.jpg

最佳答案

查看完整内容[请看2#楼]

找客服问了,说是版本问题,重新装了petalinux2019.2的版本,用的xsa构建工程,没出问题暂时解决了
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

1

主题

5

帖子

0

精华

新手入门

积分
19
金钱
19
注册时间
2022-5-27
在线时间
3 小时
 楼主| 发表于 2024-3-27 09:02:31 | 显示全部楼层
找客服问了,说是版本问题,重新装了petalinux2019.2的版本,用的xsa构建工程,没出问题暂时解决了
回复

使用道具 举报

1

主题

5

帖子

0

精华

新手入门

积分
19
金钱
19
注册时间
2022-5-27
在线时间
3 小时
 楼主| 发表于 2024-3-27 09:02:57 | 显示全部楼层
ERROR: device-tree-xilinx+gitAUTOINC+73e546e312-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:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
*** 0002:devicetree_do_compile(d)
     0003:
File: '/opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/core/meta/classes/devicetree.bbclass', lineno: 131, function: devicetree_do_compile
     0127:            if not(os.path.isfile(dtspath)) or not(dts.endswith(".dts") or devicetree_source_is_overlay(dtspath)):
     0128:                continue # skip non-.dts files and non-overlay files
     0129:        except:
     0130:            continue # skip if can't determine if overlay
*** 0131:        devicetree_compile(dtspath, includes, d)
     0132:}
     0133:
     0134:devicetree_do_install() {
     0135:    for DTB_FILE in `ls *.dtb *.dtbo`; do
File: '/opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/core/meta/classes/devicetree.bbclass', lineno: 119, function: devicetree_compile
     0115:        dtcargs += ["-i", i]
     0116:    dtcargs += ["-o", "{0}.{1}".format(dtname, "dtbo" if isoverlay else "dtb")]
     0117:    dtcargs += ["-I", "dts", "-O", "dtb", "{0}.pp".format(dts)]
     0118:    bb.note("Running {0}".format(" ".join(dtcargs)))
*** 0119:    subprocess.run(dtcargs, check = True)
     0120:
     0121:python devicetree_do_compile() {
     0122:    includes = expand_includes("DT_INCLUDE", d)
     0123:    listpath = d.getVar("DT_FILES_PATH")
File: '/opt/pkg/petalinux/2019.1/components/yocto/source/armildtools/sysroots/x86_64-petalinux-linux/usrb/python3.5/subprocess.py', lineno: 398, function: run
     0394:            raise
     0395:        retcode = process.poll()
     0396:        if check and retcode:
     0397:            raise CalledProcessError(retcode, process.args,
*** 0398:                                     output=stdout, stderr=stderr)
     0399:    return CompletedProcess(process.args, retcode, stdout, stderr)
     0400:
     0401:
     0402:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command '['dtc', '-R', '8', '-b', '0', '-p', '0x1000', '-i', '/home/cainux/petalinux/ALIENTEK-ZYNQild/tmp/work-sharednx-zynq7/kernel-source/scripts/dtc/include-prefixes', '-i', '/home/cainux/petalinux/ALIENTEK-ZYNQild/tmp/worknx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0', '-i', '/home/cainux/petalinux/ALIENTEK-ZYNQild/../componentsnx_workspace/device-tree/device-tree', '-i', '/home/cainux/petalinux/ALIENTEK-ZYNQild/tmp/work-sharednx-zynq7/kernel-source/arch/arm/boot/dts', '-i', '/home/cainux/petalinux/ALIENTEK-ZYNQild/tmp/work-sharednx-zynq7/kernel-source/include', '-o', 'system-top.dtb', '-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit status 2

ERROR: device-tree-xilinx+gitAUTOINC+73e546e312-r0 do_compile: Function failed: devicetree_do_compile
ERROR: Logfile of failure stored in: /home/cainux/petalinux/ALIENTEK-ZYNQild/tmp/worknx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0/temp/log.do_compile.43232
ERROR: Task (/opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2348 tasks of which 2185 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /opt/pkg/petalinux/2019.1/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
回复

使用道具 举报

1

主题

5

帖子

0

精华

新手入门

积分
19
金钱
19
注册时间
2022-5-27
在线时间
3 小时
 楼主| 发表于 2024-3-27 09:03:43 | 显示全部楼层
ALEXMARS 发表于 2024-3-27 09:02
ERROR: device-tree-xilinx+gitAUTOINC+73e546e312-r0 do_compile: Error executing a python function in  ...

有没有大佬看得出来是什么错误,搞了几天实在弄不明白
回复

使用道具 举报

3

主题

2016

帖子

0

精华

资深版主

Rank: 8Rank: 8

积分
5622
金钱
5622
注册时间
2018-10-21
在线时间
1592 小时
发表于 2024-3-27 09:29:50 | 显示全部楼层
看着像设备树编译错误
回复

使用道具 举报

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

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-25 10:15

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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