AR# 72007

2018.3 Zynq UltraScale+ MPSoC: DTG does not build with Video Processing System design

Description

In the 2018.3 release, DTG (Device-tree Generation) does not build with Video Processing System designs.

It is returning the errors below:

DEBUG: Executing shell function do_configure
MISC_ARG is  -hdf_type hdf -yamlconf /tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/device-tree.yaml
APP_ARG is  -app "device-tree"
Using xsct from: /opt/Xilinx/Petalinux/2018.3/tools/xsct/SDK/2018.3/bin/xsct
cmd is: xsct -sdx -nodisp /tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/dtgen.tcl -ws /../components/plnx_workspace/device-tree -pname device-tree -rp /tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/git -processor psu_cortexa53_0 -hdf /tmp/deploy/images/plnx-zynqmp/Xilinx-plnx-zynqmp.hdf -arch 64  -app "device-tree"  -hdf_type hdf -yamlconf /tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/device-tree.yaml
INFO: [Hsi 55-1698] elapsed time for repository loading 0 seconds
hsi::open_hw_design: Time (s): cpu = 00:00:12 ; elapsed = 00:00:12 . Memory (MB): peak = 770.996 ; gain = 167.191 ; free physical = 41006 ; free virtual = 126789
WARNING: quotes to be removed or use 2018.1 version for &sata params param0..param7
WARNING: quotes to be removed or use 2018.1 version for &sata params param0..param7
WARNING: quotes to be removed or use 2018.1 version for &sata params param0..param7
WARNING: quotes to be removed or use 2018.1 version for &sata params param0..param7
WARNING: quotes to be removed or use 2018.1 version for &sata params param0..param7
WARNING: quotes to be removed or use 2018.1 version for &sata params param0..param7
WARNING: quotes to be removed or use 2018.1 version for &sata params param0..param7
WARNING: quotes to be removed or use 2018.1 version for &sata params param0..param7
WARNING: Frequency 33.330 used instead of 33.333
WARNING: psu_usb_xhci_0: No reset found
can't read "pins": no such variable
ERROR: [Hsi 55-1545] Problem running tcl command ::sw_vproc_ss::generate : can't read "pins": no such variable
    while executing
"foreach pin $pins {
        set sink_periph [::hsi::get_cells -of_objects $pin]
        set sink_ip [get_property IP_NAME $sink_periph]
        if {[string match -nocas..."
    (procedure "::sw_vproc_ss::generate" line 275)
    invoked from within
"::sw_vproc_ss::generate v_proc_ss_0"
ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()
hsi::generate_target: Time (s): cpu = 00:00:15 ; elapsed = 00:00:18 . Memory (MB): peak = 789.418 ; gain = 18.059 ; free physical = 38775 ; free virtual = 126770
generate_target failed
    while executing
"error "generate_target failed""
    invoked from within
"if {[catch {hsi generate_target -dir $project} res]} {
    error "generate_target failed"
}"
    (file "/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/dtgen.tcl" line 38)
WARNING: /tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/temp/run.do_configure.24119:1 exit 1 from 'eval xsct -sdx -nodisp /tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/dtgen.tcl -ws /../components/plnx_workspace/device-tree -pname device-tree -rp /tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/git -processor psu_cortexa53_0 -hdf /tmp/deploy/images/plnx-zynqmp/Xilinx-plnx-zynqmp.hdf -arch 64 ${APP_ARG} ${MISC_ARG}'
ERROR: Function failed: do_configure (log file is located at /tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/temp/log.do_configure.24119)

Solution

Currently, from the DTG side only SCALER and CSC configurations are supported.

All other configurations are unsupported.

Please check the following wiki pages for SCALER and CSC configurations:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841868/Xilinx+V4L2+VPSS+CSC+driver

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842427/Xilinx+V4L2+VPSS+Scaler+driver


In this error case, Chroma Resampling is used which is not supported by the DTG.

To fix this issue, you will need to apply the attached patch to the 2018.3 release.

However, the exact pipeline with the ports input and output in DT might be missing as there is no support for this.

The user needs to manually add it with their own Linux driver.


This patch will be merged into the 2019.1 release.

The patch should be applied to <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/device-tree.bbappend

Note: To apply a patch to recipes, please refer to (UG1144) or http://www.wiki.xilinx.com/PetaLinux+Yocto+Tips


device-tree.bbappend content:

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI += "file://system-user.dtsi"

SRC_URI_append = " file://0001-vproc_ss-Fix-the-error-when-the-topology-is-not-vali.patch "

Attachments

Associated Attachments

AR# 72007
Date 02/12/2019
Status Active
Type General Article
Devices
Tools
IP