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 fremen
Visitor
1,021 Views
Registered: ‎03-14-2018

Petalinux 2018.3 failed to build when FPGA Manager is included.

Hi there,

When I try to build (petalinux-build) after including the FPGA Manager from the project configuration menu I get device-tree build errors.

It build fine without it.

Any idea ?  

Thanks

 

Here the traces:

NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: device-tree-xilinx+gitAUTOINC+b7466bbeee-r0 do_configure: Function failed: do_configure (log file is located at /home/eric/work/petalinux1803/board/test/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/temp/log.do_configure.22265)
ERROR: Logfile of failure stored in: /home/eric/work/petalinux1803/board/test/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/temp/log.do_configure.22265
Log data follows:
| DEBUG: Executing shell function do_configure
| MISC_ARG is  -hdf_type hdf -yamlconf /home/eric/work/petalinux1803/board/test/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/device-tree.yaml
| APP_ARG is  -app "device-tree"
| Using xsct from: /home/eric/work/petalinux1803/tools/xsct/SDK/2018.3/bin/xsct
| cmd is: xsct -sdx -nodisp /home/eric/work/petalinux1803/board/test/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/dtgen.tcl -ws /home/eric/work/petalinux1803/board/test/build/../components/plnx_workspace/device-tree -pname device-tree -rp /home/eric/work/petalinux1803/board/test/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/git -processor psu_cortexa53_0 -hdf /home/eric/work/petalinux1803/board/test/build/tmp/deploy/images/plnx-zynqmp/Xilinx-plnx-zynqmp.hdf -arch 64  -app "device-tree"  -hdf_type hdf -yamlconf /home/eric/work/petalinux1803/board/test/build/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:06 ; elapsed = 00:00:06 . Memory (MB): peak = 834.938 ; gain = 168.074 ; free physical = 1845 ; free virtual = 58756
| 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: no s_axi_aclk for clockwizard
| WARNING: not supported pl_clk:
| 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: no s_axi_aclk for clockwizard
| WARNING: not supported pl_clk:
| 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: no s_axi_aclk for clockwizard
| WARNING: not supported pl_clk:
| WARNING: not supported pl_clk:
| WARNING: clock frequency for the gt_ref_clk_p is NULL
| WARNING: not supported pl_clk:
| WARNING: clock frequency for the gt_ref_clk_n is NULL
| WARNING: no s_axi_aclk for clockwizard
| WARNING: not supported pl_clk:
| WARNING: not supported pl_clk:
| WARNING: no s_axi_aclk for clockwizard
| WARNING: not supported pl_clk:
| WARNING: Frequency 33.33333333 used instead of 33.333
| Failed to find amba_pl node !!!
| ERROR: [Hsi 55-1545] Problem running tcl command ::sw_device_tree::generate : Failed to find amba_pl node !!!
|     while executing
| "error "Failed to find $lu_node node !!!""
|     (procedure "get_node_object" line 24)
|     invoked from within
| "get_node_object amba_pl pl.dtsi"
|     invoked from within
| "create_dt_node  -name hps_top_axi4_lite -label hps_top_axi4_lite -unit_addr a0000000 -objects [get_node_object amba_pl pl.dtsi]"
|     ("eval" body line 1)
|     invoked from within
| "eval "create_dt_node ${cmd}""
|     (procedure "add_or_get_dt_node" line 184)
|     invoked from within
| "add_or_get_dt_node -n $drv_handle -l $drv_handle -u $base -d $default_dts -p $bus_node"
|     ("foreach" body line 31)
|     invoked from within
| "foreach drv_handle $ext_axi_intf {
|                 set base [string tolower [get_property BASE_VALUE $drv_handle]]
|                 set high [string tolower [get_property HIGH_V..."
|     (procedure "gen_ext_axi_interface" line 12)
|     invoked from within
| "gen_ext_axi_interface"
|     (procedure "::sw_device_tree::generate" line 21)
|     invoked from within
| "::sw_device_tree::generate device_tree"
| ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()
| hsi::generate_target: Time (s): cpu = 00:00:09 ; elapsed = 00:00:10 . Memory (MB): peak = 847.496 ; gain = 12.559 ; free physical = 1841 ; free virtual = 58753
| 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/eric/work/petalinux1803/board/test/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/dtgen.tcl" line 38)
| WARNING: /home/eric/work/petalinux1803/board/test/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/temp/run.do_configure.22265:1 exit 1 from 'eval xsct -sdx -nodisp /home/eric/work/petalinux1803/board/test/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/dtgen.tcl -ws /home/eric/work/petalinux1803/board/test/build/../components/plnx_workspace/device-tree -pname device-tree -rp /home/eric/work/petalinux1803/board/test/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/git -processor psu_cortexa53_0 -hdf /home/eric/work/petalinux1803/board/test/build/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 /home/eric/work/petalinux1803/board/test/build/tmp/work/plnx_zynqmp-xilinx-linux/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/temp/log.do_configure.22265)
ERROR: Task (/home/eric/work/petalinux1803/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 3134 tasks of which 3133 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/eric/work/petalinux1803/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_configure
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project
eric@etremblay:~/work/petalinux1803/board/test$

 

5 Replies
Visitor bheneffe
Visitor
869 Views
Registered: ‎12-17-2018

Re: Petalinux 2018.3 failed to build when FPGA Manager is included.

Hi,

I got the same issue on my side.
Any advice?

0 Kudos
Visitor bheneffe
Visitor
827 Views
Registered: ‎12-17-2018

Re: Petalinux 2018.3 failed to build when FPGA Manager is included.

Hi,

The error is caused by "bootgen -image base.bif -arch zynqmp -o ${bitname}.bin_base -w" failing due to a malformed bif file.
.bif file contains
-e all {
...

}

instead of
all {
...

}


Seems like a petalinux or setup bug, I worked around it by modifying recipe file:

I replace the "echo -e " command by "echo " in $PETALINUX/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/fpga-manager-util/fpga-manager-util_1.0.bb
and that did the trick...

 

0 Kudos
Highlighted
Visitor fremen
Visitor
799 Views
Registered: ‎03-14-2018

Re: Petalinux 2018.3 failed to build when FPGA Manager is included.

Hi,

I tried your changes and it didn't work for me.

 

0 Kudos
Visitor kangyifeizx
Visitor
149 Views
Registered: ‎05-20-2019

Re: Petalinux 2018.3 failed to build when FPGA Manager is included.

Hi,

Have you solve this problem?I have tried bheneffe's advice,don't work for me.

Any help will be grateful

 
0 Kudos
Explorer
Explorer
90 Views
Registered: ‎10-04-2017

Re: Petalinux 2018.3 failed to build when FPGA Manager is included.

try patching the devicetree, this worked for me in 2018.3.  Or disable the fpga manager

diff --git a/device_tree/data/common_proc.tcl b/device_tree/data/common_proc.tcl
index f6d3f4c..2481073 100644
--- a/device_tree/data/common_proc.tcl
+++ b/device_tree/data/common_proc.tcl
@@ -393,6 +393,9 @@ proc check_node_in_dts {node_name dts_file_list} {
 }
 
 proc get_node_object {lu_node {dts_files ""} {error_out "yes"}} {
+	if {[get_property CONFIG.dt_overlay [get_os]] == "TRUE" && $lu_node == "amba_pl"} {
+		set lu_node "overlay2"
+	}
 	# get the node object based on the args
 	# returns the dt node object
 	proc_called_by

 

0 Kudos