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: 
Scholar wzab
Scholar
7,471 Views
Registered: ‎08-24-2011

Petalinux 2016.4 on Ubuntu 16.04 LTS - xilproxy segfaults after "ERROR: Failed to source bitbake"

Jump to solution

When I try to import the HW description from my Vivado project, I get segfault:

 

wzab@isw:~/petalinux/multi_eth1$ petalinux-config --get-hw-description=/home/wzab/test16.4/Xilinx-ZCU102-2016.2/Xilinx-ZCU102-2016.2.sdk/design_1_wrapper_hw_platform_0
INFO: Getting hardware description...
[INFO] generating Kconfig for project
                                                                                                                                           
[INFO] menuconfig project
/home/wzab/petalinux/multi_eth1/build/misc/config/Kconfig.syshw:30:warning: defaults for choice values not supported
/home/wzab/petalinux/multi_eth1/build/misc/config/Kconfig:546:warning: config symbol defined without type
configuration written to /home/wzab/petalinux/multi_eth1/project-spec/configs/config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

[INFO] sourcing bitbake
ERROR: Failed to source bitbake
webtalk failed:Invalid tool in the statistics file:petalinux-yocto!
webtalk failed:Failed to get PetaLinux usage statistics!
ERROR: Failed to config project.
ERROR: Get hw description Failed!.
sh: line 1: 25922 Segmentation fault      (core dumped) /home/xl/petalinux-2016.4/tools/webtalk/bin/unwrapped/lnx64.o/xilproxy > /home/wzab/petalinux/multi_eth1/.Xil/Webtalk-25918-isw/webtalk/xilproxy.log 2>&1

An attempt to analize the core file with gdb does not provide any useful information:

$ gdb --corefile=core 
gdb: unrecognized option '--corefile=core'
Use `gdb --help' for a complete list of options.
wzab@isw:~/petalinux/multi_eth1$ gdb --core=core 
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
[New LWP 25922]
Core was generated by `/home/xl/petalinux-2016.4/tools/webtalk/bin/unwrapped/lnx64.o/xilproxy'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0000000000000000 in ?? ()
(gdb) bt
#0  0x0000000000000000 in ?? ()
#1  0x00007ff033950a1e in ?? ()
#2  0x00000000ac9f08a7 in ?? ()
#3  0x0000000000000000 in ?? ()
(gdb) 
#0  0x0000000000000000 in ?? ()
#1  0x00007ff033950a1e in ?? ()
#2  0x00000000ac9f08a7 in ?? ()
#3  0x0000000000000000 in ?? ()
(gdb) 

Is there any solution known for that problem? Maybe the main problem is "ERROR: Failed to source bitbake"?

How to resolve that?

TIA & Regards,

Wojtek

0 Kudos
1 Solution

Accepted Solutions
Scholar wzab
Scholar
13,160 Views
Registered: ‎08-24-2011

Re: Petalinux 2016.4 on Ubuntu 16.04 LTS - xilproxy segfaults after "ERROR: Failed to source bitbake"

Jump to solution

OK. It's my fault. I have attempted to install Petalinux for all users as root, and I have missed the following error message:

INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
INFO: Installing PetaLinux SDK to "/home/xl/petalinux-v2016.4/."
INFO: Installing PetaLinux zynqMP Yocto SDK to "/home/xl/petalinux-v2016.4/./components/yocto/source/aarch64"...
PetaLinux Extensible SDK installer version 2016.4
=================================================
ERROR: The extensible sdk cannot be installed as root.
*********************************************
ERROR: Failed to install Yocto SDK for zynqMP.
*********************************************

Please refer to the PetaLinux Tools Installation Guide.

Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:
   /home/wzab/Downloads/petalinux_installation_log

 I have reinstalled PetaLinux as a normal user, and it has solved the problem!

 

Regards,

Wojtek

View solution in original post

0 Kudos
4 Replies
Scholar wzab
Scholar
13,161 Views
Registered: ‎08-24-2011

Re: Petalinux 2016.4 on Ubuntu 16.04 LTS - xilproxy segfaults after "ERROR: Failed to source bitbake"

Jump to solution

OK. It's my fault. I have attempted to install Petalinux for all users as root, and I have missed the following error message:

INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
INFO: Installing PetaLinux SDK to "/home/xl/petalinux-v2016.4/."
INFO: Installing PetaLinux zynqMP Yocto SDK to "/home/xl/petalinux-v2016.4/./components/yocto/source/aarch64"...
PetaLinux Extensible SDK installer version 2016.4
=================================================
ERROR: The extensible sdk cannot be installed as root.
*********************************************
ERROR: Failed to install Yocto SDK for zynqMP.
*********************************************

Please refer to the PetaLinux Tools Installation Guide.

Check the troubleshooting guide at the end of that manual, and if you are
unable to resolve the issue please contact customer support with file:
   /home/wzab/Downloads/petalinux_installation_log

 I have reinstalled PetaLinux as a normal user, and it has solved the problem!

 

Regards,

Wojtek

View solution in original post

0 Kudos
Scholar wzab
Scholar
7,421 Views
Registered: ‎08-24-2011

Re: Petalinux 2016.4 on Ubuntu 16.04 LTS - xilproxy segfaults after "ERROR: Failed to source bitbake"

Jump to solution

Hmmm, in fact xilproxy still fails:

[INFO] generating petalinux-user-image.bb
Generate petalinux-user-image  bb file
webtalk failed:Invalid tool in the statistics file:petalinux-yocto!
webtalk failed:Failed to get PetaLinux usage statistics!
sh: line 1: 15808 Segmentation fault      (core dumped) /home/xl/petalinux-v2016.4/tools/webtalk/bin/unwrapped/lnx64.o/xilproxy > /home/wzab/petalinux/multi_eth1/.Xil/Webtalk-15804-isw/webtalk/xilproxy.log 2>&1

 petalinux-yocto is available in tools/common/petalinux/utils , but it is not added to the PATH by sourcing of "settings.sh".

I have added it afterwards with:

 export PATH=/home/xl/petalinux-v2016.4/tools/common/petalinux/utils:$PATH

The above eliminates complaints about "petalinux-yocto", but xilproxy still segfaults:

[INFO] generating petalinux-user-image.bb
sh: line 1: 27703 Segmentation fault      (core dumped) /home/xl/petalinux-v2016.4/tools/webtalk/bin/unwrapped/lnx64.o/xilproxy > /home/wzab/petalinux/multi_eth1/.Xil/Webtalk-27699-isw/webtalk/xilproxy.log 2>&1
[INFO] successfully configured rootfs

However, I can configure the system with different modes of "petalinux-config" and build the image with "petalinux-build", so I do not consider it to be an important problem.

 

Regards,

Wojtek

0 Kudos
Observer pogccfe
Observer
5,993 Views
Registered: ‎06-15-2016

Re: Petalinux 2016.4 on Ubuntu 16.04 LTS - xilproxy segfaults after "ERROR: Failed to source bitbake"

Jump to solution

Could you explan what other modes you used? Thank you

0 Kudos
Highlighted
Contributor
Contributor
5,177 Views
Registered: ‎06-05-2017

Re: Petalinux 2016.4 on Ubuntu 16.04 LTS - xilproxy segfaults after "ERROR: Failed to source bitbake"

Jump to solution

The segfault is being caused by webtalk. You can turn it off in your project by using the command:

 

petalinux-util --webtalk off