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 edwinz
Visitor
1,589 Views
Registered: ‎12-11-2017

ZCU102 TRD 2017.2 DM1 Petalinux issue

Jump to solution

I'm following http://www.wiki.xilinx.com/Zynq+UltraScale+MPSoC+Base+TRD+2017.2#tutorials 

to try ZCU102 TRD 2017.2 DM1. Had failure during petalinux build. Log files are attached.

 

Help needed. Thanks.

 

----- 

$ petalinux-build


[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Parsing recipes: 100% |########################################| Time: 0:01:22
Parsing of 2448 .bb files complete (0 cached, 2448 parsed). 3238 targets, 224 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#####################################| Time: 0:00:47
Checking sstate mirror object availability: 100% |#############| Time: 0:01:33
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
fsbl-2017.2+gitAUTOINC+122565ec40-r0 do_compile: NOTE: fsbl: compiling from external source tree /home/edwin/petalinux201702/tools/hsm/data/embeddedsw
ERROR: fsbl-2017.2+gitAUTOINC+122565ec40-r0 do_compile: Function failed: do_compile (log file is located at /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_compile.94799)
ERROR: Logfile of failure stored in: /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_compile.94799
Log data follows:
| DEBUG: Executing python function xsct_externalsrc_compile_prefunc
| NOTE: fsbl: compiling from external source tree /home/edwin/petalinux201702/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... Eclipse:
| An error has occurred. See the log file
| /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/components/plnx_workspace/.metadata/.log.
| XSCTHELPER INFO: Empty WorkSpace
| Starting xsdk. This could take few seconds... Job found still running after platform shutdown. Jobs should be canceled by the plugin that scheduled them during shutdown: org.eclipse.core.internal.refresh.RefreshJob
| Eclipse:
| An error has occurred. See the log file
| /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/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 "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 "/home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-..." line 120)
| WARNING: /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/temp/run.do_compile.94799:1 exit 1 from 'eval xsct /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/app.tcl -ws /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/../components/plnx_workspace -pname fsbl -rp /home/edwin/petalinux201702/tools/hsm/data/embeddedsw -do_compile 1'
| ERROR: Function failed: do_compile (log file is located at /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/fsbl/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_compile.94799)
ERROR: Task (/home/edwin/petalinux201702/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 6073 tasks of which 4916 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/edwin/petalinux201702/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

 

0 Kudos
1 Solution

Accepted Solutions
Visitor edwinz
Visitor
2,243 Views
Registered: ‎12-11-2017

Re: ZCU102 TRD 2017.2 DM1 Petalinux issue

Jump to solution

This problem is solved. It is true that you have to have a 8-core (even faked with i7's hyperthreading)  processor CPU to run the petalinux build for the TRD. 

0 Kudos
5 Replies
Moderator
Moderator
1,563 Views
Registered: ‎12-04-2016

Re: ZCU102 TRD 2017.2 DM1 Petalinux issue

Jump to solution

Hi

 

This is a known issue. Please refer this answer record to fix the issue:-

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

 

Best Regards

Shabbir

0 Kudos
Visitor edwinz
Visitor
1,556 Views
Registered: ‎12-11-2017

Re: ZCU102 TRD 2017.2 DM1 Petalinux issue

Jump to solution

Hi Shabbir,

 

Thanks for your quick reply.

 

I followed what you suggested work-around per https://www.xilinx.com/support/answers/69812.html

Rebuild DM1. But got the same error message.

 

Per the log message, the cause seems to be related to being unable to start the XSDK. Could this error  be related to the installation of my 2017.2 XSDK?

( Notes: I installed SDK 2017.2 under the default directory: /opt/Xlinx. Also installed SDx 2017.2 under /opt/Xilinx201702.

My CPU is i7-6700HQ, 4 core. Successfully used this PC for your tools 2016.3, 2016.4 for device driver build in the past. Do I have to upgrade to an 8-core CPU to run ZCU102 TRD 2017.2? )

 

--here are my steps and erro msgs

cd ~/home

use: sudo gedit .xsdbrc
added: configparams-sdk-launch-timeout 180

clean-up:
edwin@ubuntu:/home$ rm -rf ~/.Xil
edwin@ubuntu:/home$ sudo rm -rf ~/.Xilinx

re-run DM1 build
edwin@ubuntu:/home$ cd ~/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/project-spec/meta-user/recipes-bsp/device-tree/files
edwin@ubuntu:~/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/project-spec/meta-user/recipes-bsp/device-tree/files$ petalinux-build

--

[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Parsing recipes: 100% |########################################| Time: 0:01:24
Parsing of 2448 .bb files complete (0 cached, 2448 parsed). 3238 targets, 224 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#####################################| Time: 0:00:34
Checking sstate mirror object availability: 100% |#############| Time: 0:00:16
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
fsbl-2017.2+gitAUTOINC+122565ec40-r0 do_compile: NOTE: fsbl: compiling from external source tree /home/edwin/petalinux201702/tools/hsm/data/embeddedsw
ERROR: pmu-firmware-2017.2+gitAUTOINC+122565ec40-r0 do_configure: Function failed: do_configure (log file is located at /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_configure.128324)
ERROR: Logfile of failure stored in: /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_configure.128324
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| MISC_ARG is -yamlconf /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/pmu-firmware.yaml
| APP_ARG is -app "ZynqMP PMU Firmware"
| cmd is: xsct /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/app.tcl -ws /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/../components/plnx_workspace -pname pmu-firmware -rp /home/edwin/petalinux201702/tools/hsm/data/embeddedsw -processor psu_pmu_0 -hdf /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/deploy/images/plnx_aarch64/Xilinx-plnx_aarch64.hdf -arch 32 -app "ZynqMP PMU Firmware" -yamlconf /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/pmu-firmware.yaml
| Starting xsdk. This could take few seconds... Eclipse:
| An error has occurred. See the log file
| /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/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/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/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 "/home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122..." line 120)
| WARNING: /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/run.do_configure.128324:1 exit 1 from 'eval xsct /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/app.tcl -ws /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/../components/plnx_workspace -pname pmu-firmware -rp /home/edwin/petalinux201702/tools/hsm/data/embeddedsw -processor psu_pmu_0 -hdf /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/deploy/images/plnx_aarch64/Xilinx-plnx_aarch64.hdf -arch 32 ${APP_ARG} ${MISC_ARG}'
| ERROR: Function failed: do_configure (log file is located at /home/edwin/Downloads/rdf0429-zcu102-es2-base-trd-2017-2/apu/petalinux_bsp/build/tmp/work/plnx_aarch64-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_configure.128324)
ERROR: Task (/home/edwin/petalinux201702/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu/pmu-firmware_git.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6141 tasks of which 6075 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/edwin/petalinux201702/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu/pmu-firmware_git.bb:do_configure
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project

 

 

0 Kudos
Visitor edwinz
Visitor
1,539 Views
Registered: ‎12-11-2017

Re: ZCU102 TRD 2017.2 DM1 Petalinux issue

Jump to solution

Xilinx gurus, please help...

0 Kudos
Visitor edwinz
Visitor
2,244 Views
Registered: ‎12-11-2017

Re: ZCU102 TRD 2017.2 DM1 Petalinux issue

Jump to solution

This problem is solved. It is true that you have to have a 8-core (even faked with i7's hyperthreading)  processor CPU to run the petalinux build for the TRD. 

0 Kudos
Visitor shcho0708
Visitor
383 Views
Registered: ‎09-03-2018

Re: ZCU102 TRD 2017.2 DM1 Petalinux issue

Jump to solution

I experienced a problem while building zcu106 bsp. And in my experience this problem may not be a CPU core issue. If you encounter a problem during the deploy phase, you also need to check the configure and compile processes.

 

This is My Error Message.

ERROR: pmu-firmware-2017.2+gitAUTOINC+122565ec40-r0 do_deploy: Function failed: do_deploy (log file is located at /home/gpm/workspace/rel-v2017.2/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_deploy.13723)
ERROR: Logfile of failure stored in: /home/gpm/workspace/rel-v2017.2/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_deploy.13723
Log data follows:
| DEBUG: Executing python function sstate_task_prefunc
| DEBUG: Python function sstate_task_prefunc finished
| DEBUG: Executing shell function do_deploy
| install: cannot stat '/home/gpm/workspace/rel-v2017.2/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/build/pmu-firmware/Release/pmu-firmware.elf': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_deploy (log file is located at /home/gpm/workspace/rel-v2017.2/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_deploy.13723)
ERROR: Task (/home/gpm/workspace/rel-v2017.2/sources/core/../meta-xilinx-tools/recipes-bsp/pmu/pmu-firmware_git.bb:do_deploy) failed with exit code '1'
NOTE: Tasks Summary: Attempted 446 tasks of which 445 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/gpm/workspace/rel-v2017.2/sources/core/../meta-xilinx-tools/recipes-bsp/pmu/pmu-firmware_git.bb:do_deploy

Checking only the Error Message seems to be a problem with the deploy process, but there was an error when checking log.do_compile.

/workspace/rel-v2017.2/build/tmp/work/zcu106_zynqmp-xilinx-linux/pmu-firmware/2017.2+gitAUTOINC+122565ec40-r0/temp/log.do_compile

/opt/Xilinx/SDK/2017.2/gnu/microblaze/lin/bin/../lib/gcc/microblaze-xilinx-elf/6.2.0/../../../../microblaze-xilinx-elf/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Makefile:25: recipe for target 'xipipsu_g.o' failed
make[1]: *** [xipipsu_g.o] Error 1
/opt/Xilinx/SDK/2017.2/gnu/microblaze/lin/bin/../lib/gcc/microblaze-xilinx-elf/6.2.0/../../../../microblaze-xilinx-elf/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
make[1]: *** [xipipsu_sinit.o] Error 1
Makefile:25: recipe for target 'xipipsu_sinit.o' failed
/opt/Xilinx/SDK/2017.2/gnu/microblaze/lin/bin/../lib/gcc/microblaze-xilinx-elf/6.2.0/../../../../microblaze-xilinx-elf/bin/as: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
Makefile:25: recipe for target 'xipipsu.o' failed
make[1]: *** [xipipsu.o] Error 1
make[1]: Target 'libs' not remade because of errors.


The solution to the problem can be found at the following link.

https://askubuntu.com/questions/659697/error-while-loading-shared-library-libz-so-1-while-cross-compiling-for-arm-linux

In conclusion, if you build with bitbake, you will need to check the log files for the configuration and compile phases, even if you have problems during the deploy phase.

0 Kudos