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: 
2,100 Views
Registered: ‎10-16-2014

petalinux-build err

I install Petalinux2017.4,and create a project base the zcu102bsp,I build the project,and get a err

NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:11
Checking sstate mirror object availability: 100% |###############| Time: 0:00:28
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
fsbl-2017.4+gitAUTOINC+77448ae629-r0 do_compile: NOTE: fsbl: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
ERROR: fsbl-2017.4+gitAUTOINC+77448ae629-r0 do_compile: Function failed: do_compile (log file is located at /opt/pkg/project/ZCU102_PRJ/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.4+gitAUTOINC+77448ae629-r0/temp/log.do_compile.5655)
ERROR: Logfile of failure stored in: /opt/pkg/project/ZCU102_PRJ/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.4+gitAUTOINC+77448ae629-r0/temp/log.do_compile.5655


Log data follows:
| DEBUG: Executing python function xsct_externalsrc_compile_prefunc
| NOTE: fsbl: compiling from external source tree /opt/pkg/petalinux/tools/hsm/data/embeddedsw
| DEBUG: Python function xsct_externalsrc_compile_prefunc finished
| DEBUG: Executing shell function do_compile
| Starting xsdk. This could take few seconds... Picked up _JAVA_OPTIONS: -Duser.home=/opt/pkg/project/ZCU102_PRJ/build/tmp/xsctenv
| Eclipse:
| An error has occurred. See the log file
| /opt/pkg/project/ZCU102_PRJ/components/plnx_workspace/fsbl/.metadata/.log.
| XSCTHELPER INFO: Empty WorkSpace
| Starting xsdk. This could take few seconds... Picked up _JAVA_OPTIONS: -Duser.home=/opt/pkg/project/ZCU102_PRJ/build/tmp/xsctenv
| Eclipse:
| An error has occurred. See the log file
| /opt/pkg/project/ZCU102_PRJ/components/plnx_workspace/fsbl/.metadata/.log.
| timeout while establishing a connection with SDK
| while executing
| "error "timeout while establishing a connection with SDK""
| (procedure "getsdkchan" line 111)
| invoked from within
| "getsdkchan"
| (procedure "projects" line 35)
| invoked from within
| "projects -clean -type $type -name $name"
| (procedure "clean_n_build" line 2)
| invoked from within
| "clean_n_build bsp $params(bspname)"
| invoked from within
| "if { $params(ws) ne "" } {
| #Local Work Space available
| setws $params(ws)
| if { [catch {importprojects $params(ws)} result] } {
| puts "XSCTHELPER IN..."
| (file "/opt/pkg/project/ZCU102_PRJ/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.4+gitAUTOINC+77448ae629-r0/app.tcl" line 120)
| WARNING: /opt/pkg/project/ZCU102_PRJ/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.4+gitAUTOINC+77448ae629-r0/temp/run.do_compile.5655:1 exit 1 from 'xsct /opt/pkg/project/ZCU102_PRJ/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.4+gitAUTOINC+77448ae629-r0/app.tcl -ws /opt/pkg/project/ZCU102_PRJ/build/../components/plnx_workspace/fsbl -pname fsbl -rp /opt/pkg/petalinux/tools/hsm/data/embeddedsw -do_compile 1'
| ERROR: Function failed: do_compile (log file is located at /opt/pkg/project/ZCU102_PRJ/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.4+gitAUTOINC+77448ae629-r0/temp/log.do_compile.5655)
ERROR: Task (/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/fsbl/fsbl_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2406 tasks of which 1873 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/opt/pkg/petalinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/fsbl/fsbl_git.bb:do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project

 

So,i donot know why?

0 Kudos
5 Replies
Observer trilok_4
Observer
2,019 Views
Registered: ‎05-30-2016

Re: petalinux-build err

I also faced same problem. Then I disabled First Stage Bootloader in Linux Components selection, now build was success.

 

And I noticed one thing, if create BOOT.bin using petalinux command "petalinux-package --boot --fsbl <FSBL image> --fpga <FPGA bitstream> --u-boot" and place the image on target only FPGA will program but U-boot won't boot I don't know why?. So I taken U-boot elf from image folder in Petalinux project and created BOOT.bin(FSBL.elf+u-boot.elf) using Xilinx SDK. Using this BOOT.bin u-boot is booting on board.

Please help me out to get rid of from the issue.

 

Board : Digilent Zybo

0 Kudos
Moderator
Moderator
1,992 Views
Registered: ‎12-04-2016

Re: petalinux-build err

Hi

 

See if this answer record helps you:-

https://www.xilinx.com/support/answers/69812.html

 

 

Best Regards

Shabbir

0 Kudos
Xilinx Employee
Xilinx Employee
1,743 Views
Registered: ‎10-21-2014

Re: petalinux-build err

Hi,

 

Please post the content of the file /opt/pkg/project/ZCU102_PRJ/components/plnx_workspace/fsbl/.metadata/.log

 

That will help us to find the issue.

 

Chaitanya

0 Kudos
Moderator
Moderator
1,728 Views
Registered: ‎09-12-2007

Re: petalinux-build err

The XSDK is timing out. Are you on a Virtual Machine? How many processors have you got?

I recommend just building the FSBL separately

petalinux-build -c bootloader

0 Kudos
Highlighted
Explorer
Explorer
794 Views
Registered: ‎05-14-2015

Re: petalinux-build err

Hi, @jingshuizhuxin, I'm facing the same problem. 

Is it possible to share how did you fix this issue?

0 Kudos