hello, It is a great demo for me to studuy. But I meet some problem .I am using Version: DTC 1.5.0 and I want to co-simulation in qemu and vitis .When I petalinux-build to generate DTB files for qemu, it works well .But after I add the zynqmp-pl-remote.dtsi to rebuild the DTB files, it output error:
device-tree/device-tree/zynqmp-pl-remoteport.dtsi:31.20-21 syntax error, can you help me?
the following is the detail output :
[INFO] Sourcing buildtools
[INFO] Building device-tree
[INFO] Sourcing build environment
[INFO] Generating workspace directory
INFO: bitbake virtual/dtb
NOTE: Started PRServer with DBfile: /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 39733, PID: 265083
Loading cache: 100% |################################################################################################################################| Time: 0:00:01
Loaded 5125 entries from dependency cache.
Parsing recipes: 100% |##############################################################################################################################| Time: 0:00:02
Parsing of 3476 .bb files complete (3467 cached, 9 parsed). 5133 targets, 234 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###########################################################################################################################| Time: 0:00:09
Sstate summary: Wanted 155 Found 127 Missed 28 Current 1071 (81% match, 97% complete)
NOTE: Executing Tasks
ERROR: device-tree-xilinx-v2021.2+gitAUTOINC+c0acd8f064-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:
0001:
0002:devicetree_do_compile(d)
0003:
File: '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/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/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/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/stephenpd/tools/petalinux_2021_2/components/yocto/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.8/subprocess.py', lineno: 512, function: run
0508: # We don't call process.wait() as .exit does that for us.
0509: raise
0510: retcode = process.poll()
0511: if check and retcode:
0512: raise CalledProcessError(retcode, process.args,
0513: output=stdout, stderr=stderr)
0514: return CompletedProcess(process.args, retcode, stdout, stderr)
0515:
0516:
Exception: subprocess.CalledProcessError: Command '['dtc', '-@', '-p', '0x1000', '-@', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/realtek', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/nvidia', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/qcom', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/rockchip', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/broadcom', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/mediatek', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/renesas', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/toshiba', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/freescale', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/allwinner', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/hisilicon', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/amd', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/socionext', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/sprd', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/synaptics', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/arm', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/project-spec/configs/../../components/plnx_workspace/device-tree/device-tree', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/apm', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/microchip', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/altera', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/amazon', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/bitmain', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/intel', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/marvell', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/xilinx', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/cavium', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/lg', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/amlogic', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/exynos', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/zte', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/actions', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/ti', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/scripts/dtc/include-prefixes', '-o', 'system-top.dtb', '-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit status 1.
Subprocess output:
Error: /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/project-spec/configs/../../components/plnx_workspace/device-tree/device-tree/zynqmp-pl-remoteport.dtsi:31.20-21 syntax error
FATAL ERROR: Unable to parse input tree
ERROR: Logfile of failure stored in: /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/temp/log.do_compile.265785
ERROR: Task (/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3147 tasks of which 3138 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build device-tree. Check the /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/build.log file for more details...
hello, It is a great demo for me to studuy. But I meet some problem .I am using Version: DTC 1.5.0 and I want to co-simulation in qemu and vitis .When I petalinux-build to generate DTB files for qemu, it works well .But after I add the zynqmp-pl-remote.dtsi to rebuild the DTB files, it output error: device-tree/device-tree/zynqmp-pl-remoteport.dtsi:31.20-21 syntax error, can you help me? the following is the detail output : [INFO] Sourcing buildtools [INFO] Building device-tree [INFO] Sourcing build environment [INFO] Generating workspace directory INFO: bitbake virtual/dtb NOTE: Started PRServer with DBfile: /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 39733, PID: 265083 Loading cache: 100% |################################################################################################################################| Time: 0:00:01 Loaded 5125 entries from dependency cache. Parsing recipes: 100% |##############################################################################################################################| Time: 0:00:02 Parsing of 3476 .bb files complete (3467 cached, 9 parsed). 5133 targets, 234 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |###########################################################################################################################| Time: 0:00:09 Sstate summary: Wanted 155 Found 127 Missed 28 Current 1071 (81% match, 97% complete) NOTE: Executing Tasks ERROR: device-tree-xilinx-v2021.2+gitAUTOINC+c0acd8f064-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:
0001:
0002:devicetree_do_compile(d)
0003:
File: '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/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/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/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/stephenpd/tools/petalinux_2021_2/components/yocto/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.8/subprocess.py', lineno: 512, function: run 0508: # We don't call process.wait() as .exit does that for us. 0509: raise 0510: retcode = process.poll() 0511: if check and retcode: 0512: raise CalledProcessError(retcode, process.args, 0513: output=stdout, stderr=stderr) 0514: return CompletedProcess(process.args, retcode, stdout, stderr) 0515: 0516: Exception: subprocess.CalledProcessError: Command '['dtc', '-@', '-p', '0x1000', '-@', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/realtek', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/nvidia', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/qcom', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/rockchip', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/broadcom', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/mediatek', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/renesas', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/toshiba', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/freescale', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/allwinner', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/hisilicon', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/amd', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/socionext', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/sprd', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/synaptics', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/arm', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/project-spec/configs/../../components/plnx_workspace/device-tree/device-tree', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/apm', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/microchip', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/altera', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/amazon', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/bitmain', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/intel', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/marvell', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/xilinx', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/cavium', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/lg', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/amlogic', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/exynos', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/zte', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/actions', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/arch/arm64/boot/dts/ti', '-i', '/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work-shared/zynqmp-generic/kernel-source/scripts/dtc/include-prefixes', '-o', 'system-top.dtb', '-I', 'dts', '-O', 'dtb', 'system-top.dts.pp']' returned non-zero exit status 1.Subprocess output: Error: /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/project-spec/configs/../../components/plnx_workspace/device-tree/device-tree/zynqmp-pl-remoteport.dtsi:31.20-21 syntax error FATAL ERROR: Unable to parse input tree
ERROR: Logfile of failure stored in: /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2021.2+gitAUTOINC+c0acd8f064-r0/temp/log.do_compile.265785 ERROR: Task (/home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1' NOTE: Tasks Summary: Attempted 3147 tasks of which 3138 didn't need to be rerun and 1 failed.
Summary: 1 task failed: /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile Summary: There was 1 ERROR message shown, returning a non-zero exit code. ERROR: Failed to build device-tree. Check the /home/stephenpd/HDMI/xilinx_demo_hdmitx_petalinux/build/build.log file for more details...