AR# 69812

2016.4-2017.2 PetaLinux: Build failed due to "error "timeout while establishing a connection with SDK"'

描述

PetaLinux build can fail with the following timeout error in XSCT:

DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: Executing shell function do_configure
MISC_ARG is  -yamlconf /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/fsbl.yaml
APP_ARG is  -app "Zynq MP FSBL"
cmd is: xsct /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/app.tcl -ws /home/bryanloz/ZCU102_4PES/4x10GE-Switch/Petalinux/4x10GE/build/../components/plnx_workspace -pname fsbl -rp /proj/petalinux/released/Petalinux-v2017.2/petalinux-v2017.2_0619_1/tools/hsm/data/embeddedsw -processor psu_cortexa53_0 -hdf /tmp/4x10GE-2017.09.12-16.17.33/deploy/images/plnx_aarch64/Xilinx-plnx_aarch64.hdf -arch 64  -app "Zynq MP FSBL"  -yamlconf /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/fsbl.yaml
Starting xsdk. This could take few seconds... Eclipse:
An error has occurred. See the log file
/home/bryanloz/ZCU102_4PES/4x10GE-Switch/Petalinux/4x10GE/components/plnx_workspace/.metadata/.log.
XSCTHELPER INFO: Empty WorkSpace
Starting xsdk. This could take few seconds... Eclipse:
An error has occurred. See the log file
/home/bryanloz/ZCU102_4PES/4x10GE-Switch/Petalinux/4x10GE/components/plnx_workspace/.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 "::sdk::set_user_repo_path_sdk" line 16)
    invoked from within
"::sdk::set_user_repo_path_sdk $params(set)"
    (procedure "repo" line 27)
    invoked from within
"repo -set $path"
    invoked from within
"if { $params(ws) ne "" } {
 #Local Work Space available
 setws $params(ws)
 if { [catch {importprojects $params(ws)} result] } {
  puts "XSCTHELPER IN..."
    (file "/tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/app.tcl" line 120)
WARNING: /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/temp/run.do_configure.22432:1 exit 1 from 'eval xsct /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/app.tcl -ws /home/bryanloz/ZCU102_4PES/4x10GE-Switch/Petalinux/4x10GE/build/../components/plnx_workspace -pname fsbl -rp /proj/petalinux/released/Petalinux-v2017.2/petalinux-v2017.2_0619_1/tools/hsm/data/embeddedsw -processor psu_cortexa53_0 -hdf /tmp/4x10GE-2017.09.12-16.17.33/deploy/images/plnx_aarch64/Xilinx-plnx_aarch64.hdf -arch 64 ${APP_ARG} ${MISC_ARG}'
ERROR: Function failed: do_configure (log file is located at /tmp/4x10GE-2017.09.12-16.17.33/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_configure.22432)

解决方案

The following work-arounds can be used to overcome this issue:

1) Increase the timeout in XSCT.

  • Create a file with name .xsdbrc in the $HOME directory
  • Add the line below in the .xsdbrc file

configparams -sdk-launch-timeout 180

2) Clean up using the following commands:

 rm -rf ~/.Xil
rm -rf ~/.Xilinx

Note: This error could be due to a resource constraint on the PC.

The minimum configuration required for PetaLinux tool installation is 8 cores and 8GB RAM (This is not corrected in 2016.4-2017.2 (UG1144) documentation).

Ideally one project should be built at a time.

If you want to run projects in parallel, set parallel threads and configure execution in petalinux-config->Yocto Settings to lower values which match your system configuration.

 

附件

文件名 文件大小 File Type
temp.txt 2 KB TXT
AR# 69812
日期 09/11/2019
状态 Active
Type 综合文章
器件
Tools