OpenEdv-开源电子网

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

[XILINX] petalinux-buid 报错 device-tree 相关错误

[复制链接]

5

主题

15

帖子

0

精华

初级会员

Rank: 2

积分
65
金钱
65
注册时间
2014-12-30
在线时间
6 小时
发表于 2021-8-13 19:42:05 | 显示全部楼层 |阅读模式
1金钱
7020, ubuntu18.04 petalinux 2019.1 hdf都是2019.1版本生成的;第一个petalinux程序到 petalinux-build报错,我看是device-tree之类的错误;有人遇到过么? 怎么解决,谢谢。
$petalinux-build
[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################################################################################################################
Loaded 3811 entries from dependency cache.
Parsing recipes: 100% |##########################################################################################################################################
Parsing of 2777 .bb files complete (2776 cached, 1 parsed). 3812 targets, 163 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################################################################################################################
Checking sstate mirror object availability: 100% |###############################################################################################################
Sstate summary: Wanted 131 Found 11 Missed 240 Current 744 (8% match, 86% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
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/arm/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py', lineno: 398, function:
     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/caros/yinshuli/08_petalinux/01_firt_yuanzi_petalinu7/kernel-source/scripts/dtc/include-prefixes', '-i', '/home/caros/yinshuli/08_petalinux/01_firt_yuanzi_petalinux/build/tmp/work-shared/plnx-zynq7/kernel-source/iuli/08_petalinux/01_firt_yuanzi_petalinux/build/../components/plnx_workspace/device-tree/device-tree', '-i', '/home/caros/yinshuli/08_petalinux/01_firt_yuanzi_pex-zynq7/kernel-source/arch/arm/boot/dts', '-i', '/home/caros/yinshuli/08_petalinux/01_firt_yuanzi_petalinux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device2-r0', '-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/caros/yinshuli/08_petalinux/01_firt_yuanzi_petalinux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinxg.do_compile.26811
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 w
NOTE: Tasks Summary: Attempted 2830 tasks of which 2827 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





正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

5

主题

15

帖子

0

精华

初级会员

Rank: 2

积分
65
金钱
65
注册时间
2014-12-30
在线时间
6 小时
 楼主| 发表于 2021-8-13 21:11:06 | 显示全部楼层
回复

使用道具 举报

5

主题

15

帖子

0

精华

初级会员

Rank: 2

积分
65
金钱
65
注册时间
2014-12-30
在线时间
6 小时
 楼主| 发表于 2021-8-13 21:14:19 | 显示全部楼层
log file中内容
DEBUG: Executing python function do_compile
DEBUG: Executing python function devicetree_do_compile
NOTE: Processing system-top [system-top.dts]
NOTE: Running gcc -E -nostdinc -undef -D__DTS__ -x assembler-with-cpp -I/home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work-shared/plnx-zynq7/kernel-source/include -I/home/caros/yinshuli/08_petalinux/02_petatest/build/../components/plnx_workspace/device-tree/device-tree -I/home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work-shared/plnx-zynq7/kernel-source/arch/arm/boot/dts -I/home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0 -I/home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/dtc/include-prefixes -o system-top.dts.pp /home/caros/yinshuli/08_petalinux/02_petatest/build/../components/plnx_workspace/device-tree/device-tree/system-top.dts
NOTE: Running dtc -R 8 -b 0 -p 0x1000 -i /home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work-shared/plnx-zynq7/kernel-source/include -i /home/caros/yinshuli/08_petalinux/02_petatest/build/../components/plnx_workspace/device-tree/device-tree -i /home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work-shared/plnx-zynq7/kernel-source/arch/arm/boot/dts -i /home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0 -i /home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/dtc/include-prefixes -o system-top.dtb -I dts -O dtb system-top.dts.pp
system-top.dtb: ERROR (phandle_references): /amba/ethernet@e000c000: Reference to non-existent node or label "phy1"

system-top.dtb: ERROR (phandle_references): /amba/ethernet@e000c000/mdio/gmii_to_rgmii_0@31: Reference to non-existent node or label "phy1"

ERROR: Input tree has errors, aborting (use -f to force output)
ERROR: 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/arm/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/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/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work-shared/plnx-zynq7/kernel-source/include', '-i', '/home/caros/yinshuli/08_petalinux/02_petatest/build/../components/plnx_workspace/device-tree/device-tree', '-i', '/home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work-shared/plnx-zynq7/kernel-source/arch/arm/boot/dts', '-i', '/home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+73e546e312-r0', '-i', '/home/caros/yinshuli/08_petalinux/02_petatest/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/dtc/include-prefixes', '-o', 'system-top.dtb', '-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit status 2

DEBUG: Python function devicetree_do_compile finished
DEBUG: Python function do_compile finished
ERROR: Function failed: devicetree_do_compile


回复

使用道具 举报

5

主题

15

帖子

0

精华

初级会员

Rank: 2

积分
65
金钱
65
注册时间
2014-12-30
在线时间
6 小时
 楼主| 发表于 2021-8-13 21:19:37 | 显示全部楼层
还是有问题,测试之后
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165186
金钱
165186
注册时间
2010-12-1
在线时间
2106 小时
发表于 2021-8-14 01:24:54 | 显示全部楼层
帮顶
回复

使用道具 举报

5

主题

15

帖子

0

精华

初级会员

Rank: 2

积分
65
金钱
65
注册时间
2014-12-30
在线时间
6 小时
 楼主| 发表于 2021-8-14 21:35:05 | 显示全部楼层

原子哥,你不知道什么原因么?  我是用的Vivado2019.1版本,和版本有关系么?
回复

使用道具 举报

0

主题

2

帖子

0

精华

新手入门

积分
4
金钱
4
注册时间
2023-7-17
在线时间
0 小时
发表于 2023-7-18 16:35:30 | 显示全部楼层
楼主你好,我也遇到和您同样的问题请问您最后是怎么解决的?
回复

使用道具 举报

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

本版积分规则



关闭

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

正点原子公众号

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

GMT+8, 2024-10-4 08:21

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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