中级会员
- 积分
- 348
- 金钱
- 348
- 注册时间
- 2016-12-5
- 在线时间
- 58 小时
|
10金钱
本帖最后由 dai410257573 于 2023-6-30 11:14 编辑
买了原子哥的 ZYNQ开发板来学习llinux因为公司用的是vivado 2019.2 vitis2019.2,所以我下载了petalinux2019.2,ubuntu18.04
跟着 领航者linux开发指南.PDF 来动作
导入原子哥例程的hdf文件,复制了system-user.dtsi,执行 petalinux-build 进行编译,编译出错
然后我以为是版本问题。就使用了我之前的在windows下vivado产生的xsa文件,但是没有复制dtsi文件,使用的默认的空的dtsi,按照文档经过一些列步骤之后,执行 petalinux-build 进行编译,一样的出错
错误信息如下,请大佬指点指点,不然就是从入门到劝退了
- NOTE: Executing SetScene Tasks
- NOTE: Executing RunQueue Tasks
- NOTE: linux-xlnx: compiling from external source tree /opt/pkg/petalinux/ALIENTEK-ZYNQ/components/plnx_workspace/sources/linux-xlnx
- ERROR: device-tree-xilinx-v2019.2+gitAUTOINC+a8b39cf536-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/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/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, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
- 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/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', '/opt/pkg/petalinux/ALIENTEK-ZYNQ/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0', '-i', '/opt/pkg/petalinux/ALIENTEK-ZYNQ/build/../components/plnx_workspace/device-tree/device-tree', '-i', '/opt/pkg/petalinux/ALIENTEK-ZYNQ/build/tmp/work-shared/plnx-zynq7/kernel-source/arch/arm/boot/dts', '-i', '/opt/pkg/petalinux/ALIENTEK-ZYNQ/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/dtc/include-prefixes', '-i', '/opt/pkg/petalinux/ALIENTEK-ZYNQ/build/tmp/work-shared/plnx-zynq7/kernel-source/include', '-o', 'system-top.dtb', '-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit status 2
- Subprocess output:
- 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/PS_AXI_gmii_to_rgmii_0@8: Reference to non-existent node or label "phy1"
- ERROR: Input tree has errors, aborting (use -f to force output)
- ERROR: device-tree-xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0 do_compile: Function failed: devicetree_do_compile
- ERROR: Logfile of failure stored in: /opt/pkg/petalinux/ALIENTEK-ZYNQ/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx-v2019.2+gitAUTOINC+a8b39cf536-r0/temp/log.do_compile.120079
- ERROR: Task (/opt/pkg/petalinux/2019/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 3071 tasks of which 2337 didn't need to be rerun and 1 failed.
- Summary: 1 task failed:
- /opt/pkg/petalinux/2019/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile
- Summary: There was 1 WARNING message shown.
- Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
- ERROR: Failed to build project
复制代码
|
|