cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Voyager
Voyager
753 Views
Registered: ‎05-25-2016

petalinux - how do I debug this error

Jump to solution

Hello,

Does anyone have any advice as to how to debug this error message?  I see this when I try to use petalinux to build linux for the PYNQ vivado HDF file.  I've also attached the log file.

 

rob@ubuntu1:~/xilinx/projects/petal_custom1/plin_proj1$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |############################################################################################################################################################| Time: 0:00:00
Loaded 3444 entries from dependency cache.
Parsing recipes: 100% |##########################################################################################################################################################| Time: 0:00:03
Parsing of 2569 .bb files complete (2532 cached, 37 parsed). 3445 targets, 149 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:02
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: fsbl-2018.3+gitAUTOINC+56f3da2afb-r0 do_configure: Function failed: do_configure (log file is located at /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/temp/log.do_configure.6131)
ERROR: Logfile of failure stored in: /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/temp/log.do_configure.6131
Log data follows:
| DEBUG: Executing shell function do_configure
| MISC_ARG is  -yamlconf /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/fsbl.yaml
| APP_ARG is  -app "Zynq FSBL"
| Using xsct from: /home/rob/xilinx/petalinux/2018.3/tools/xsct/SDK/2018.3/bin/xsct
| cmd is: xsct -sdx -nodisp /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/app.tcl -ws /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/build -pname fsbl -rp /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/git -processor ps7_cortexa9_0 -hdf /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/deploy/images/plnx-zynq7/Xilinx-plnx-zynq7.hdf -arch 32  -app "Zynq FSBL"  -yamlconf /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/fsbl.yaml
| INFO: [Hsi 55-1698] elapsed time for repository loading 0 seconds
| INFO: Update hw fsbl_plat project
| Loading the sw platform from /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/build/fsbl_plat/platform.spr
| Reading the platform  : "fsbl_plat"
| Opening the hardware design, this may take few seconds.
| can't read "source_name(11)": no such element in array
| ERROR: [Hsi 55-1545] Problem running tcl command ::sw_intc_v3_8::generate : can't read "source_name(11)": no such element in array
|     while executing
| "string compare -nocase $source_name($i) "system""
|     ("foreach" body line 18)
|     invoked from within
| "foreach periph $periphs {
|         #update global array of Interrupt sources for this periph
|         intc_update_source_array $periph
| 
|         lappend ..."
|     (procedure "xredefine_intc" line 21)
|     invoked from within
| "xredefine_intc $drv_handle $file_handle"
|     (procedure "xdefine_canonical_xpars" line 72)
|     invoked from within
| "xdefine_canonical_xpars $drv_handle "xparameters.h" "Intc" "DEVICE_ID" "C_BASEADDR" "C_HIGHADDR" "C_KIND_OF_INTR" "C_HAS_FAST" "C_IVAR_RESET_VALUE" "C..."
|     (procedure "::sw_intc_v3_8::generate" line 57)
|     invoked from within
| "::sw_intc_v3_8::generate system_interrupts"
| ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()
| Failed to generate the platform.
| Reason: Failed to generate the bsp sources for domain.fsbl_domain
|     while executing
| "builtin_platform -generate quick"
|     (procedure "platform" line 221)
|     invoked from within
| "platform generate -quick"
|     invoked from within
| "if { $params(ws) ne "" } {
| 	#Local Work Space available
| 	if { $params(pname) ne "" } {
| 		# hwpname/bspname is empty then default it to pname+_hwproj/b..."
|     (file "/home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/app.tcl" line 139)
| WARNING: /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/temp/run.do_configure.6131:1 exit 1 from 'eval xsct -sdx -nodisp /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/app.tcl -ws /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/build -pname fsbl -rp /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/git -processor ps7_cortexa9_0 -hdf /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/deploy/images/plnx-zynq7/Xilinx-plnx-zynq7.hdf -arch 32 ${APP_ARG} ${MISC_ARG}'
| ERROR: Function failed: do_configure (log file is located at /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/fsbl/2018.3+gitAUTOINC+56f3da2afb-r0/temp/log.do_configure.6131)
ERROR: Task (/home/rob/xilinx/petalinux/2018.3/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/fsbl/fsbl_git.bb:do_configure) failed with exit code '1'
ERROR: device-tree-xilinx+gitAUTOINC+b7466bbeee-r0 do_configure: Function failed: do_configure (log file is located at /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/temp/log.do_configure.7103)
ERROR: Logfile of failure stored in: /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/temp/log.do_configure.7103
Log data follows:
| DEBUG: Executing shell function do_configure
| MISC_ARG is  -hdf_type hdf -yamlconf /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/device-tree.yaml
| APP_ARG is  -app "device-tree"
| Using xsct from: /home/rob/xilinx/petalinux/2018.3/tools/xsct/SDK/2018.3/bin/xsct
| cmd is: xsct -sdx -nodisp /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/dtgen.tcl -ws /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/../components/plnx_workspace/device-tree -pname device-tree -rp /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/git -processor ps7_cortexa9_0 -hdf /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/deploy/images/plnx-zynq7/Xilinx-plnx-zynq7.hdf -arch 32  -app "device-tree"  -hdf_type hdf -yamlconf /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/device-tree.yaml
| INFO: [Hsi 55-1698] elapsed time for repository loading 0 seconds
| WARNING: The axi_intc Interrupt Output connection is Bus. Change it to Single
| WARNING: Interrupt pin "interrupt" of IP block: "trace_analyzer_arduino_trace_cntrl_64_0" is not connected to any interrupt controller
| 
| WARNING: not supported pl_clk:
| WARNING: not supported pl_clk:
| WARNING: ps7_ethernet_0: No reset found
| WARNING: ps7_i2c_0: No reset found
| WARNING: ps7_usb_0: No reset found
| WARNING: ERROR: trace_analyzer_arduino_axi_dma_0: s2mm_introut port is not connected
| ERROR: video_axi_vdma: mm2s_introut port is not connected
| ERROR: [Hsi 55-1545] Problem running tcl command ::sw_axi_vdma::generate : ERROR: video_axi_vdma: mm2s_introut port is not connected
|     while executing
| "error "ERROR: ${drv_handle}: mm2s_introut port is not connected""
|     (procedure "::sw_axi_vdma::generate" line 56)
|     invoked from within
| "::sw_axi_vdma::generate video_axi_vdma"
| ERROR: [Hsi 55-1442] Error(s) while running TCL procedure generate()
| hsi::generate_target: Time (s): cpu = 00:00:05 ; elapsed = 00:00:06 . Memory (MB): peak = 813.180 ; gain = 8.836 ; free physical = 15134 ; free virtual = 58780
| 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/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/dtgen.tc..." line 38)
| WARNING: /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/temp/run.do_configure.7103:1 exit 1 from 'eval xsct -sdx -nodisp /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/dtgen.tcl -ws /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/../components/plnx_workspace/device-tree -pname device-tree -rp /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/git -processor ps7_cortexa9_0 -hdf /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/deploy/images/plnx-zynq7/Xilinx-plnx-zynq7.hdf -arch 32 ${APP_ARG} ${MISC_ARG}'
| ERROR: Function failed: do_configure (log file is located at /home/rob/xilinx/projects/petal_custom1/plin_proj1/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/device-tree/xilinx+gitAUTOINC+b7466bbeee-r0/temp/log.do_configure.7103)
ERROR: Task (/home/rob/xilinx/petalinux/2018.3/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2987 tasks of which 2967 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  /home/rob/xilinx/petalinux/2018.3/components/yocto/source/arm/layers/meta-xilinx-tools/recipes-bsp/fsbl/fsbl_git.bb:do_configure
  /home/rob/xilinx/petalinux/2018.3/components/yocto/source/arm/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/device-tree/device-tree.bb:do_configure
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
669 Views
Registered: ‎12-04-2016

Re: petalinux - how do I debug this error

Jump to solution

Hi @m3atwad 

Yes in general its packaged in HDF

View solution in original post

0 Kudos
7 Replies
Highlighted
Moderator
Moderator
719 Views
Registered: ‎12-04-2016

Re: petalinux - how do I debug this error

Jump to solution

Hi @m3atwad 

Check the concat block going into the interrupt controller in your design, if it has an input that is floating, reimplement it without floating input 

0 Kudos
Highlighted
Voyager
Voyager
705 Views
Registered: ‎05-25-2016

Re: petalinux - how do I debug this error

Jump to solution

Hi @shabbirk ,

 

Thank you so much for the post.  That actually looked like the issue.  I've found the floating pin and removed it.  

 

Does petalinux (for a zynq 7020) only need the .hdf file to build?

0 Kudos
Highlighted
Voyager
Voyager
700 Views
Registered: ‎05-25-2016

Re: petalinux - how do I debug this error

Jump to solution

It sounds like from the documentation it doesn't need the .bit file.

0 Kudos
Highlighted
Moderator
Moderator
677 Views
Registered: ‎12-04-2016

Re: petalinux - how do I debug this error

Jump to solution

Hi @m3atwad 

While building the petalinux project, yes it does needs only an HDF. Normally we include bitfile in HDF. While creating BOOT.bin, you will need this bitfile

 

Best Regards

Shabbir

0 Kudos
Highlighted
Voyager
Voyager
671 Views
Registered: ‎05-25-2016

Re: petalinux - how do I debug this error

Jump to solution

Ok - so the bit stream (.bit file) is in the HDF package?

0 Kudos
Highlighted
Moderator
Moderator
670 Views
Registered: ‎12-04-2016

Re: petalinux - how do I debug this error

Jump to solution

Hi @m3atwad 

Yes in general its packaged in HDF

View solution in original post

0 Kudos
Highlighted
Voyager
Voyager
666 Views
Registered: ‎05-25-2016

Re: petalinux - how do I debug this error

Jump to solution

Thank you for the help!!

0 Kudos