cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Adventurer
Adventurer
333 Views
Registered: ‎11-26-2018

petalinux 2020.2 device-tree error

Hi,

I'm working with petalinux 2020.2 but I've a problem with the device-tree, after 

petalinux-config --get-hw-description=.

 I configure the device-tree using this command

petalinux-config -c device-tree

but I get these errors:

Log data follows:
| DEBUG: Executing python function externalsrc_configure_prefunc
| DEBUG: Python function externalsrc_configure_prefunc finished
| DEBUG: Executing shell function do_configure
| MISC_ARG is  -hdf_type xsa -yamlconf /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+git999-r0/device-tree.yaml
| APP_ARG is  -app "device-tree"
| Using xsct from: /home/andrea/xilinx/petalinux2020_2/tools/xsct//bin/xsct
| cmd is: xsct -sdx -nodisp /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+git999-r0/dtgen.tcl -ws /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/project-spec/configs/../../components/plnx_workspace/device-tree -pname device-tree -rp /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/components/yocto/workspace/sources/device-tree -processor psu_cortexa53_0 -hdf /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/deploy/images/zynqmp-generic/Xilinx-zynqmp-generic.xsa -arch 64  -app "device-tree"  -hdf_type xsa -yamlconf /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+git999-r0/device-tree.yaml
| INFO: [Hsi 55-2053] elapsed time for repository (/home/andrea/xilinx/petalinux2020_2/tools/xsct/data/embeddedsw) loading 0 seconds
| WARNING: label 'amba_apu' found in existing tree
| 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: hdmi_v_hdmi_tx_ss_0 pin AUDIO_IN is not connected... check your design
| WARNING: psu_usb_xhci_0: No reset found
| WARNING: label 'usb0' found in existing tree
| WARNING: Only boolean type can have empty value. Fail to add driver(sfp_10G_xxv_ethernet_0) property(axistream-connected) type(reference) value()
| WARNING: Please add the property manually
| WARNING: Only boolean type can have empty value. Fail to add driver(sfp_10G_xxv_ethernet_0) property(axistream-control-connected) type(reference) value()
| WARNING: Please add the property manually
| WARNING: quotes to be removed or use 2018.1 version for sfp_10G_xxv_ethernet_0:ethernet@a0042000 param xlnx,num-queues
| can't read "end_mappings": no such variable
| ERROR: [Hsi 55-1545] Problem running tcl command ::sw_device_tree::post_generate : can't read "end_mappings": no such variable
|     while executing
| "dict exists $end_mappings $inip"
|     (procedure "update_endpoints" line 658)
|     invoked from within
| "update_endpoints $drv_handle"
|     ("foreach" body line 3)
|     invoked from within
| "foreach drv_handle [get_drivers] {
|         gen_peripheral_nodes $drv_handle
| 	update_endpoints $drv_handle
|     }"
|     (procedure "::sw_device_tree::post_generate" line 6)
|     invoked from within
| "::sw_device_tree::post_generate device_tree"
| ERROR: [Hsi 55-1443] Error(s) while running TCL procedure post_generate()
| hsi::generate_target: Time (s): cpu = 00:00:06 ; elapsed = 00:00:07 . Memory (MB): peak = 1895.531 ; gain = 0.000 ; free physical = 38887 ; free virtual = 186285
| 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 "/home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+git999-r0/dtgen.tcl" line 38)
| WARNING: exit code 1 from a shell command.
| ERROR: Execution of '/home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+git999-r0/temp/run.do_configure.22540' failed with exit code 1:
| MISC_ARG is  -hdf_type xsa -yamlconf /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+git999-r0/device-tree.yaml
| APP_ARG is  -app "device-tree"
| Using xsct from: /home/andrea/xilinx/petalinux2020_2/tools/xsct//bin/xsct
| cmd is: xsct -sdx -nodisp /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+git999-r0/dtgen.tcl -ws /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/project-spec/configs/../../components/plnx_workspace/device-tree -pname device-tree -rp /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/components/yocto/workspace/sources/device-tree -processor psu_cortexa53_0 -hdf /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/deploy/images/zynqmp-generic/Xilinx-zynqmp-generic.xsa -arch 64  -app "device-tree"  -hdf_type xsa -yamlconf /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+git999-r0/device-tree.yaml
| INFO: [Hsi 55-2053] elapsed time for repository (/home/andrea/xilinx/petalinux2020_2/tools/xsct/data/embeddedsw) loading 0 seconds
| WARNING: label 'amba_apu' found in existing tree
| 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: hdmi_v_hdmi_tx_ss_0 pin AUDIO_IN is not connected... check your design
| WARNING: psu_usb_xhci_0: No reset found
| WARNING: label 'usb0' found in existing tree
| WARNING: Only boolean type can have empty value. Fail to add driver(sfp_10G_xxv_ethernet_0) property(axistream-connected) type(reference) value()
| WARNING: Please add the property manually
| WARNING: Only boolean type can have empty value. Fail to add driver(sfp_10G_xxv_ethernet_0) property(axistream-control-connected) type(reference) value()
| WARNING: Please add the property manually
| WARNING: quotes to be removed or use 2018.1 version for sfp_10G_xxv_ethernet_0:ethernet@a0042000 param xlnx,num-queues
| can't read "end_mappings": no such variable
| ERROR: [Hsi 55-1545] Problem running tcl command ::sw_device_tree::post_generate : can't read "end_mappings": no such variable
|     while executing
| "dict exists $end_mappings $inip"
|     (procedure "update_endpoints" line 658)
|     invoked from within
| "update_endpoints $drv_handle"
|     ("foreach" body line 3)
|     invoked from within
| "foreach drv_handle [get_drivers] {
|         gen_peripheral_nodes $drv_handle
| 	update_endpoints $drv_handle
|     }"
|     (procedure "::sw_device_tree::post_generate" line 6)
|     invoked from within
| "::sw_device_tree::post_generate device_tree"
| ERROR: [Hsi 55-1443] Error(s) while running TCL procedure post_generate()
| hsi::generate_target: Time (s): cpu = 00:00:06 ; elapsed = 00:00:07 . Memory (MB): peak = 1895.531 ; gain = 0.000 ; free physical = 38887 ; free virtual = 186285
| 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 "/home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/build/tmp/work/zynqmp_generic-xilinx-linux/device-tree/xilinx-v2020.2+git999-r0/dtgen.tcl" line 38)
| WARNING: exit code 1 from a shell command.
| 
ERROR: Task (/home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2222 tasks of which 2212 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/andrea/Documenti/petalinuxProjects/2020.2/TLxDec/components/yocto/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 device-tree

 How can I fix this problem?

thanks, Andrea

Tags (2)
0 Kudos
Reply
2 Replies
Explorer
Explorer
245 Views
Registered: ‎05-04-2014

Hi, 

I upgrade my project from 2020.1 to 2020.2 and I am also facing same problem.How can I fix this problem?

 

Thanks

Sitting

0 Kudos
Reply
Xilinx Employee
Xilinx Employee
129 Views
Registered: ‎05-11-2010

| WARNING: Only boolean type can have empty value. Fail to add driver(sfp_10G_xxv_ethernet_0) property(axistream-connected) type(reference) value()
| WARNING: Please add the property manually
| WARNING: Only boolean type can have empty value. Fail to add driver(sfp_10G_xxv_ethernet_0) property(axistream-control-connected) type(reference) value()
| WARNING: Please add the property manually

 

This may be the clue for this issue. Please check if the below two property in generated device tree are not assigned any value. You can add them in system-user.dtsi if they are not set.

axistream-connected                 axistream-control-connected

You can refer to this wiki page about the device tree for 10G/25G ethernet core.

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842485/Linux+AXI+Ethernet+driver

 

 

 

0 Kudos
Reply