AR# 71380

2018.1 Zynq UltraScale+ MPSoC - Video Codec Unit (VCU) TRD Design Module 3 does not build with PetaLinux DTG

描述

In Zynq UltraScale+ MPSoC - Video Codec Unit (VCU) TRD Design Module 3 PetaLinux BSP does not build with device-tree generation (DTG) when you enable the Device tree autoconfig option or do a clean build:

petalinux-build -x mrproper)

$ export TRD_HOME=</path/to/downloaded/zipfile>/rdf0428-zcu106-vcu-trd-2018-1
$ petalinux-create -t project -s $TRD_HOME/apu/vcu_petalinux_bsp/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final.bsp
$ cd xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final
$ petalinux-config --get-hw-description=/$TRD_HOME/pl/pre-built/sdirx_vcu_sditx/
$ petalinux-config ---> Auto Config Settings ---> [*] Device tree autoconfig 
$ petalinux-build -x mrproper
$ petalinux-build 
[INFO] building project
[INFO] generating Kconfig for project
                                                                                                                                                                                                                                       
[INFO] oldconfig project
[INFO] sourcing bitbake
[INFO] generating plnxtool conf
[INFO] generating meta-plnx-generated layer
[INFO] generating machine configuration
[INFO] generating bbappends for project . This may take time ! 
[INFO] generating u-boot configuration files
                                                                                                                                                                                                                                       
[INFO] generating kernel configuration files
[INFO] generating kconfig for Rootfs
[INFO] oldconfig rootfs
[INFO] generating petalinux-user-image.bb
INFO: bitbake petalinux-user-image
Loading cache: 100% |###################################################################################################################################################################################################| Time: 0:00:00
Loaded 3437 entries from dependency cache.
Parsing recipes: 100% |#################################################################################################################################################################################################| Time: 0:00:04
Parsing of 2547 .bb files complete (2505 cached, 42 parsed). 3439 targets, 136 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |##############################################################################################################################################################################################| Time: 0:00:20
Checking sstate mirror object availability: 100% |######################################################################################################################################################################| Time: 0:00:16
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: device-tree-xilinx+gitAUTOINC+682c126ef6-r0 do_compile: Function failed: do_compile (log file is located at /tmp/sandeepg/plnx/2018.1/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+682c126ef6-r0/temp/log.do_compile.79557)
ERROR: Logfile of failure stored in: /tmp/sandeepg/plnx/2018.1/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+682c126ef6-r0/temp/log.do_compile.79557
Log data follows:
| DEBUG: Executing shell function do_compile
| gcc: error: /group/bcapps/sandeepg/plnx-workspace/2018.1/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/../components/plnx_workspace/device-tree/device-tree/*.dts: No such file or directory
| gcc: warning: -x assembler-with-cpp after last input file has no effect
| gcc: fatal error: no input files
| compilation terminated.
| WARNING: /tmp/sandeepg/plnx/2018.1/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+682c126ef6-r0/temp/run.do_compile.79557:1 exit 1 from 'gcc -E -nostdinc -Ulinux -x assembler-with-cpp -I/group/bcapps/sandeepg/plnx-workspace/2018.1/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/build/../components/plnx_workspace/device-tree/device-tree -I/tmp/sandeepg/plnx/2018.1/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/work-shared/plnx-zynqmp/kernel-source/include -I/tmp/sandeepg/plnx/2018.1/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/work-shared/plnx-zynqmp/kernel-source/arch/arm64/boot/dts/xilinx -I/tmp/sandeepg/plnx/2018.1/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/work-shared/plnx-zynqmp/kernel-source/include -I/tmp/sandeepg/plnx/2018.1/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+682c126ef6-r0 -o `basename ${DTS_FILE}`.pp ${DTS_FILE}'
| ERROR: Function failed: do_compile (log file is located at /tmp/sandeepg/plnx/2018.1/xilinx-sdirx-vcu-sditx-trd-zcu106-zu7-v2018.1-final/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+682c126ef6-r0/temp/log.do_compile.79557)
ERROR: Task (/proj/gsd/petalinux/2018.1/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6364 tasks of which 4853 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /proj/gsd/petalinux/2018.1/components/yocto/source/aarch64/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 project
$

解决方案

The work-around for this issue uses the attached device-tree recipe and files instead of VCU TRD PetaLinux BSP device-tree.

Note: This does not apply for other VCU TRD design modules.

附件

文件名 文件大小 File Type
AR71380-device-tree.zip 27 KB ZIP
AR# 71380
日期 08/21/2018
状态 Active
Type 综合文章
器件
Tools
IP
Boards & Kits