UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor msadras
Visitor
241 Views
Registered: ‎09-09-2019

2018.3 Zynq UltraScale+ MPSoC: DTG fails to generates the nodes for design with multiple input

Jump to solution

HI,

I have a PetaLinux 2019.1 design with Zynq UltraScale+ MPSoC devices with two similar video pipelines (two inputs).

The device-tree-generator does not generate the nodes.

I saw similar problem for 2018.3 - https://www.xilinx.com/support/answers/72366.html , followed the instructions with the patch, and get errors:

$ petalinux-build -c device-tree
[INFO] building device-tree
[INFO] sourcing bitbake
[INFO] generating user layers
INFO: bitbake virtual/dtb
Loading cache: 100% |##############################################################################################################################################| Time: 0:00:01
Loaded 3813 entries from dependency cache.
Parsing recipes: 100% |############################################################################################################################################| Time: 0:00:08
Parsing of 2780 .bb files complete (2777 cached, 3 parsed). 3815 targets, 150 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#########################################################################################################################################| Time: 0:00:01
Checking sstate mirror object availability: 100% |#################################################################################################################| Time: 0:00:01
Sstate summary: Wanted 17 Found 2 Missed 30 Current 146 (11% match, 90% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: device-tree-xilinx+gitAUTOINC+73e546e312-r0 do_patch: Command Error: 'quilt --quiltrc /home/user/work/xilinx/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_dec_3/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/recipe-sysroot-native/etc/quiltrc push' exited with 0 Output:
Applying patch 0001-vproc_ss-Dont-generate-error-when-there-are-multiple.patch
patching file vproc_ss/data/vproc_ss.tcl
Hunk #1 FAILED at 183.
1 out of 1 hunk FAILED -- rejects in file vproc_ss/data/vproc_ss.tcl
Patch 0001-vproc_ss-Dont-generate-error-when-there-are-multiple.patch does not apply (enforce with -f)
ERROR: device-tree-xilinx+gitAUTOINC+73e546e312-r0 do_patch: Function failed: patch_do_patch
ERROR: Logfile of failure stored in: /home/user/work/xilinx/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_dec_3/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/temp/log.do_patch.17889
ERROR: Task (/home/user/work/xilinx/petalinux_v2019_1/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_patch) failed with exit code '1'
NOTE: Tasks Summary: Attempted 702 tasks of which 697 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/user/work/xilinx/petalinux_v2019_1/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_patch
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build device-tree

Is there any solution for 2019.1?

 

Thanks, Mor

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
160 Views
Registered: ‎09-12-2007

Re: 2018.3 Zynq UltraScale+ MPSoC: DTG fails to generates the nodes for design with multiple input

Jump to solution

I did try this in petalinux, and I see your issue:

dtf_plnx.PNG

I can actually see this in the DTG manually too. I just didnt notice as I was compiling too.

 

I have created a patch for this, and tested in 2019.1 without issue.

 

BTW: I use the DTG manually method (as shown in the wiki below) for debugging as this is much quicker than testing in Petalinux.

However, the DT created here is the same as the one generated in petalinux once the branch matches

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/136904764/Creating+Devicetree+from+Devicetree+Generator+for+Zynq+Ultrascale+and+Zynq+7000

0 Kudos
7 Replies
Moderator
Moderator
217 Views
Registered: ‎09-12-2007

Re: 2018.3 Zynq UltraScale+ MPSoC: DTG fails to generates the nodes for design with multiple input

Jump to solution

Can you send your HDF file please. I can try this and create patch if needed (this is fixed in later additions of the DTG)

0 Kudos
Visitor msadras
Visitor
197 Views
Registered: ‎09-09-2019

Re: 2018.3 Zynq UltraScale+ MPSoC: DTG fails to generates the nodes for design with multiple input

Jump to solution

Attaching the .hdf file.

Thanks,

0 Kudos
Moderator
Moderator
189 Views
Registered: ‎09-12-2007

Re: 2018.3 Zynq UltraScale+ MPSoC: DTG fails to generates the nodes for design with multiple input

Jump to solution

I have tested this on 2019.1 without the patch without error. I used the DTG (xilinx-v2019.1 branch from github) manually without issue.

script.PNG

Reference:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/136904764/Creating+Devicetree+from+Devicetree+Generator+for+Zynq+Ultrascale+and+Zynq+7000

 

Can you try without the patch to see if you see this issue?

0 Kudos
Adventurer
Adventurer
178 Views
Registered: ‎09-05-2018

Re: 2018.3 Zynq UltraScale+ MPSoC: DTG fails to generates the nodes for design with multiple input

Jump to solution

Hi stephenm

Thanks you for your reply, I'm cureently working with msadras on the same issue and my question is is it something that we need to do to manually generate the DTS for all complex project that are somehow changing the main TRD design, is it a limitation of petalinux in the automatic DTG generation. Because this error was found even with new fresh project as following.

 

Steps to create a new project:

 

petalinux-create --type project --template zynqMP --name kds10_enc_dual
cd kds10_enc_dual
mkdir -p ./fpga/kds-10
cp ~/kds_10_dual_enc_2019_1/* ./fpga/kds-10
petalinux-config --get-hw-description `pwd`/fpga/kds-10

then build the project...

 

PetaLinux environment set to '/home/ezerbib/work/xilinx/petalinux_v2019_1'

WARNING: This is not a supported OS

INFO: Checking free disk space

INFO: Checking installed tools

INFO: Checking installed development libraries

INFO: Checking network and other services

[ezerbib@krnd4 kds10_enc_dual]$ do_build

[INFO] building project

[INFO] sourcing bitbake

[INFO] generating user layers

INFO: bitbake petalinux-user-image

Loading cache: 100% |######################################################################| Time: 0:00:00

Loaded 3810 entries from dependency cache.

Parsing recipes: 100% |####################################################################| Time: 0:00:04

Parsing of 2777 .bb files complete (2766 cached, 11 parsed). 3812 targets, 150 skipped, 0 masked, 0 errors.

NOTE: Resolving any missing task queue dependencies

Initialising tasks: 100% |#################################################################| Time: 0:00:05

Checking sstate mirror object availability: 100% |#########################################| Time: 0:00:08

Sstate summary: Wanted 931 Found 693 Missed 476 Current 0 (74% match, 0% complete)

NOTE: Executing SetScene Tasks

NOTE: Executing RunQueue Tasks

ERROR: device-tree-xilinx+gitAUTOINC+73e546e312-r0 do_configure: Function failed: do_configure (log file is located at /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/temp/log.do_configure.29960)

ERROR: Logfile of failure stored in: /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/temp/log.do_configure.29960

Log data follows:

| DEBUG: Executing shell function do_configure

| MISC_ARG is  -hdf_type hdf -yamlconf /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/device-tree.yaml

| APP_ARG is  -app "device-tree"

| Using xsct from: /home/ezerbib/work/xilinx/petalinux_v2019_1/tools/xsct/bin/xsct

| cmd is: xsct -sdx -nodisp /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/dtgen.tcl -ws /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/../components/plnx_workspace/device-tree -pname device-tree -rp /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/git -processor psu_cortexa53_0 -hdf /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/deploy/images/plnx-zynqmp/Xilinx-plnx-zynqmp.hdf -arch 64  -app "device-tree"  -hdf_type hdf -yamlconf /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/device-tree.yaml

| INFO: [Hsi 55-1698] elapsed time for repository loading 0 seconds

| hsi::open_hw_design: Time (s): cpu = 00:00:18 ; elapsed = 00:00:19 . Memory (MB): peak = 946.820 ; gain = 222.738 ; free physical = 1940 ; free virtual = 75922

| WARNING: no s_axi_aclk for clockwizard

| WARNING: not supported pl_clk:

| WARNING: no s_axi_aclk for clockwizard

| WARNING: not supported pl_clk:

| WARNING: not supported pl_clk:

| WARNING: not supported pl_clk:

| WARNING: not supported pl_clk:

| WARNING: not supported pl_clk:

| WARNING: not supported pl_clk:

| WARNING: not supported pl_clk:

| WARNING: not supported pl_clk:

| WARNING: not supported pl_clk:

| WARNING: not supported pl_clk:

| WARNING: not supported pl_clk:

| WARNING: Frequency 33.330 used instead of 33.333

| WARNING: Audio_audio_formatter pin m_axis_mm2s is not connected... check your design

| WARNING: Audio_audio_formatter1 pin m_axis_mm2s is not connected... check your design

| WARNING: Audio_i2s_receiver pin M_AXIS_AUD is not connected... check your design

| ERROR: [Hsi 55-1982] amba_pl is not a valid node

| ERROR: [Common 17-39] 'set_property' failed due to earlier errors.

| ERROR: [Hsi 55-1545] Problem running tcl command ::sw_vproc_ss::generate : ERROR: [Common 17-39] 'set_property' failed due to earlier errors.

|

|     while executing

| "rdi::set_property PARENT amba_pl vcap_hdmi"

|     invoked from within

| "set_property PARENT "${new_parent}" $node"

|     (procedure "update_dt_parent" line 32)

|     invoked from within

| "update_dt_parent ${node} ${parent_obj} ${dts_file}"

|     ("foreach" body line 4)

|     invoked from within

| "foreach node ${dts_nodes} {

|                       if {[regexp $pattern $node match]} {

|                               set_cur_working_dts ${dts_file}

|                               set node [update_dt_parent ${node} ${paren..."

|     ("foreach" body line 2)

|     invoked from within

| "foreach pattern "^${node_name}$" {

|               foreach node ${dts_nodes} {

|                       if {[regexp $pattern $node match]} {

|                               set_cur_working_dts ${dts_file}

|                               set n..."

|     (procedure "add_or_get_dt_node" line 119)

|     invoked from within

| "add_or_get_dt_node -n "vcap_hdmi" -d $dts_file -p $bus_node"

|     (procedure "::sw_vproc_ss::generate" line 169)

|     invoked from within

| "::sw_vproc_ss::generate hdmi_input_v_proc_ss_0"

| ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()

| hsi::generate_target: Time (s): cpu = 00:00:12 ; elapsed = 00:00:16 . Memory (MB): peak = 964.762 ; gain = 17.938 ; free physical = 940 ; free virtual = 76354

| 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 "/backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-..." line 38)

| WARNING: /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/temp/run.do_configure.29960:1 exit 1 from 'xsct -sdx -nodisp /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/dtgen.tcl -ws /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/../components/plnx_workspace/device-tree -pname device-tree -rp /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/git -processor psu_cortexa53_0 -hdf /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/deploy/images/plnx-zynqmp/Xilinx-plnx-zynqmp.hdf -arch 64 -app "device-tree" -hdf_type hdf -yamlconf /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/device-tree.yaml'

| ERROR: Function failed: do_configure (log file is located at /backup/ezerbib/rdf0428-zcu106-vcu-trd-2019-1/myimage/kds10_enc_dual/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+73e546e312-r0/temp/log.do_configure.29960)

ERROR: Task (/home/ezerbib/work/xilinx/petalinux_v2019_1/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_configure) failed with exit code '1'

NOTE: Tasks Summary: Attempted 2920 tasks of which 2184 didn't need to be rerun and 1 failed.

 

Summary: 1 task failed:

  /home/ezerbib/work/xilinx/petalinux_v2019_1/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_configure

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

ERROR: Failed to build project

[ezerbib@krnd4 kds10_enc_dual]$

0 Kudos
Moderator
Moderator
161 Views
Registered: ‎09-12-2007

Re: 2018.3 Zynq UltraScale+ MPSoC: DTG fails to generates the nodes for design with multiple input

Jump to solution

I did try this in petalinux, and I see your issue:

dtf_plnx.PNG

I can actually see this in the DTG manually too. I just didnt notice as I was compiling too.

 

I have created a patch for this, and tested in 2019.1 without issue.

 

BTW: I use the DTG manually method (as shown in the wiki below) for debugging as this is much quicker than testing in Petalinux.

However, the DT created here is the same as the one generated in petalinux once the branch matches

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/136904764/Creating+Devicetree+from+Devicetree+Generator+for+Zynq+Ultrascale+and+Zynq+7000

0 Kudos
Highlighted
Adventurer
Adventurer
151 Views
Registered: ‎09-05-2018

Re: 2018.3 Zynq UltraScale+ MPSoC: DTG fails to generates the nodes for design with multiple input

Jump to solution
thanks will try tomorrow
0 Kudos
Visitor msadras
Visitor
112 Views
Registered: ‎09-09-2019

Re: 2018.3 Zynq UltraScale+ MPSoC: DTG fails to generates the nodes for design with multiple input

Jump to solution

Hi,

The fixed patch worked for us.

Thanks.

0 Kudos