cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
zcu106
Visitor
Visitor
201 Views
Registered: ‎08-10-2020

在petalinux 2020.2编译VCU TRD工程时设备树解析错误

Jump to solution

我参考zcu 106板子的vcu trd bsp包,创建了用于czu4ev的单路、低延时编码工程,补丁文件参照了ug1144的说明,在编译时出现了一下错误:

ERROR: device-tree-xilinx-v2020.2+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:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
0001:
*** 0002:devicetree_do_compile(d)
0003:
File: '/home/cyw/4evwork/4ev-mipi/components/yocto/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: '/home/cyw/4evwork/4ev-mipi/components/yocto/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: '/home/cyw/petalinuxinstall/components/yocto/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.7/subprocess.py', lineno: 512, function: run
0508: raise
0509: retcode = process.poll()
0510: if check and retcode:
0511: raise CalledProcessError(retcode, process.args,
*** 0512: output=stdout, stderr=stderr)
0513: return CompletedProcess(process.args, retcode, stdout, stderr)
0514:
0515:
0516:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command '['dtc', '-@', '-p', '0x1000', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+gitAUTOINC+f725aaecff-r0', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/socionext', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/qcom', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/al', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/exynos', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/altera', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/rockchip', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/synaptics', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/ti', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/mediatek', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/allwinner', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/arm', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/cavium', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/intel', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/broadcom', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/apm', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/hisilicon', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/amd', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/renesas', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/actions', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/sprd', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/lg', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/scripts/dtc/include-prefixes', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/amlogic', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/bitmain', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/marvell', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/realtek', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/freescale', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/xilinx', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/nvidia', '-i', '/home/cyw/4evwork/4ev-mipi/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/zte', '-i', '/home/cyw/4evwork/4ev-mipi/project-spec/configs/../../components/plnx_workspace/device-tree/device-tree', '-o', 'system-top.dtb', '-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit status 1.

Subprocess output:
Error: /home/cyw/4evwork/4ev-mipi/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+gitAUTOINC+f725aaecff-r0/system-user.dtsi:26.1-22 Label or path vid_phy_controller_0 not found
Error: /home/cyw/4evwork/4ev-mipi/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+gitAUTOINC+f725aaecff-r0/system-user.dtsi:31.1-24 Label or path mpsoc_ss_HDMI_CTRL_IIC not found
FATAL ERROR: Syntax error parsing input tree

ERROR: Logfile of failure stored in: /home/cyw/4evwork/4ev-mipi/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+gitAUTOINC+f725aaecff-r0/temp/log.do_compile.52782

0 Kudos
1 Solution

Accepted Solutions
zcu106
Visitor
Visitor
148 Views
Registered: ‎08-10-2020

经排查,是由于在将vivado2019.1工程升级成2020.2后,相关IP核版本、元件名称做了修改,但是设备树文件没有做出相应的修正导致的设备树解析错误。

View solution in original post

0 Kudos
1 Reply
zcu106
Visitor
Visitor
149 Views
Registered: ‎08-10-2020

经排查,是由于在将vivado2019.1工程升级成2020.2后,相关IP核版本、元件名称做了修改,但是设备树文件没有做出相应的修正导致的设备树解析错误。

View solution in original post

0 Kudos