cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Advisor
Advisor
4,078 Views
Registered: ‎04-26-2015

petalinux-config failing on Ubuntu 18.04 - help?

Jump to solution

Hello everyone,

 

I'm trying to get the Petalinux tools 2018.2 working on Ubuntu 18.04, and I'm not having very much luck. Initial install is fine, and I'm putting it in /opt/pkg/petalinux just like UG1144 says (I also tried installing it in ~/Xilinx/Petalinux-2018.2, with the same result). From there:

 

>> source /opt/pkg/petalinux/settings.sh

PetaLinux environment set to '/opt/pkg/petalinux'
INFO: Checking free disk space
INFO: Checking installed tools
environment: line 281: ((: 10#15~1 > 10#3: syntax error in expression (error token is "~1 > 10#3")
environment: line 285: ((: 10#15~1 < 10#3: syntax error in expression (error token is "~1 < 10#3")
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution

>> . /opt/pkg/petalinux/components/yocto/source/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
SDK environment now set up; additionally you may now run devtool to perform development tasks.
Run devtool --help for further details.

>> cd ~/Xilinx
>> petalinux-create -t project --template zynq --name test
INFO: Create project: test
INFO: New project successfully created in /home/u4223374/Xilinx/test

>> petalinux-config --get-hw-description=../export/
INFO: Getting hardware description...
INFO: Rename design_1_wrapper.hdf to system.hdf
[INFO] generating Kconfig for project
                                                                                                                                                                                                                                              
[INFO] menuconfig project
/home/u4223374/Xilinx/test/build/misc/config/Kconfig.syshw:30:warning: defaults for choice values not supported
/home/u4223374/Xilinx/test/build/misc/config/Kconfig:597:warning: config symbol defined without type
configuration written to /home/u4223374/Xilinx/test/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
ERROR: Failed to config project.
ERROR: Get hw description Failed!.

Bitbake definitely exists in the Petalinux folder:

 

>> /opt/pkg/petalinux$ find . -name bitbake
./components/yocto/source/layers/core/bitbake
./components/yocto/source/layers/core/bitbake/bin/bitbake
./components/yocto/source/aarch64/layers/core/bitbake
./components/yocto/source/aarch64/layers/core/bitbake/bin/bitbake

I tried to see what commands Xilinx was using to source that, but couldn't find anything.

 

I expect that the problem is something simple for anyone experienced with Linux, but that does not include me. I've read a bunch of other reports of similar problems that seem to be either unresolved or resolved with a reinstall (tried) or a restart (tried).

 

Any ideas?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Moderator
Moderator
4,123 Views
Registered: ‎04-24-2017

Hi @u4223374,

 

Yocto Rocko release doesn't support Ubuntu-18.04 please refer yocto documentation 

 

https://www.yoctoproject.org/docs/2.4.1/mega-manual/mega-manual.html#detailed-supported-distros 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

8 Replies
Highlighted
Moderator
Moderator
4,054 Views
Registered: ‎04-24-2017

Hi @u4223374,

 

Ubuntu 18.04 is not support for 2018.x release.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Highlighted
Advisor
Advisor
4,042 Views
Registered: ‎04-26-2015

@sandeepg Well, that's annoying. This PC isn't happy on anything other than 18.04 (and even then the audio drivers are less than perfect), and I'm reluctant to run a 16.04 virtual machine just to get PetaLinux working.

 

If anyone else has ideas, I'd love to hear them. Otherwise I guess I'll be waiting for Xilinx to support 18.04...

 

 

0 Kudos
Highlighted
Moderator
Moderator
4,124 Views
Registered: ‎04-24-2017

Hi @u4223374,

 

Yocto Rocko release doesn't support Ubuntu-18.04 please refer yocto documentation 

 

https://www.yoctoproject.org/docs/2.4.1/mega-manual/mega-manual.html#detailed-supported-distros 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------

View solution in original post

Highlighted
Advisor
Advisor
4,012 Views
Registered: ‎04-26-2015

Hi @sandeepg, thanks for the information. I guess I'll be waiting for Yocto to support 18.04 then, or maybe I should invest more time in getting 16.04 working properly on this laptop.

 

Other people seem to have had success on 18.04 (eg. Peta Linux 2018 install on ubuntu 18.04LTS For ultra96 board | Ray's Personal website) but it's not working in my case.

0 Kudos
Highlighted
Advisor
Advisor
3,950 Views
Registered: ‎04-26-2015

@sandeepg Fixed it, but I've got no idea how it ever worked on any system.

 

The problem is that Petalinux installs its ARM (ie for Zynq 7000) tools in here:

 

./components/yocto/source/

Then, during the petalinux-config, it goes looking for the tools here:

 

./components/yocto/source/arm/

Note that these two paths are not the same. The aarch64 (ie Zynq UltraScale+) tools are installed correctly in:

./components/yocto/source/aarch64

MicroBlaze ones also don't get a dedicated folder; I don't know whether they're meant to or not.

 

Creating the "arm" folder and moving all the relevant files to there results in a happily-working Petalinux.

Highlighted
Observer
Observer
3,658 Views
Registered: ‎09-03-2018

@u4223374thank you for the work around. Tomorrow I will try to apply it, it is actually the only one I found on the web so far. Do you know which are the relevant files? Otherwise I can copy the entire source folder (~3GB) into the arm one created by me.

 

 

0 Kudos
Highlighted
Advisor
Advisor
3,644 Views
Registered: ‎04-26-2015

@abet It's been a while, but I think I basically moved everything that had "ARM" instead of "Microblaze" in the name.

 

0 Kudos
Highlighted
Visitor
Visitor
2,591 Views
Registered: ‎07-22-2018

In Linux, I cd into the petalinux2018.2/components/yocto/source directory and create a symbolic link using "ln -s . arm".

resulting in no copying needed