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: 
Highlighted
Visitor ellboliang
Visitor
2,691 Views
Registered: ‎07-05-2018

how to install petalinux in ubuntu18.04

hi,

   now ,I install petalinux v2017.4/ v2018.2 in ubuntu18.04, but error:

andy@ls:~/xlnx$ source ./pl/settings.sh
PetaLinux environment set to '/opt/pkg/petalinux'
INFO: Checking free disk space
INFO: Checking installed tools
environment: 行 281: ((: 10#15~1 > 10#3: 表达式中有语法错误 (错误符号是 "~1 > 10#3")
environment: 行 285: ((: 10#15~1 < 10#3: 表达式中有语法错误 (错误符号是 "~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

 

  now, i will how to do ?

      thanks

0 Kudos
13 Replies
Moderator
Moderator
2,664 Views
Registered: ‎04-24-2017

Re: how to install petalinux in ubuntu18.04

Hi @ellboliang,

 

Current PetaLinux or Yocto is not support on Ubuntu-18.04

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Scholar vanmierlo
Scholar
2,646 Views
Registered: ‎06-10-2008

Re: how to install petalinux in ubuntu18.04

Are those 'environment' lines something you can translate? I can not. Is your ubuntu set to chinese?

 

The other lines are quite normal.

0 Kudos
Visitor ellboliang
Visitor
2,633 Views
Registered: ‎07-05-2018

Re: how to install petalinux in ubuntu18.04

hi,@vanmierlo in

 

petalinux-v2017.04, erros  :

environment: line 314: ((: 10#15~1 > 10#3: syntax error in expression (error token is "~1 > 10#3")
environment: line 318: ((: 10#15~1 < 10#3: syntax error in expression (error token is "~1 < 10#3")

 

petalinux-v2018.2,erros:

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")

 

thanks !

0 Kudos
Visitor ellboliang
Visitor
2,632 Views
Registered: ‎07-05-2018

Re: how to install petalinux in ubuntu18.04

Hi, @sandeepg

   have you plan to suport the ubuntn18.04 ?  if you have , what time ?

 

thanks!

0 Kudos
Visitor xienima
Visitor
2,582 Views
Registered: ‎07-05-2018

Re: how to install petalinux in ubuntu18.04

It seems that petalinux does not support chinese,I used to have some issue when install petalinux on ubuntu 16.04(chinese version),changing the language in system did not work,and I reinstall the system choosing enlish,petalinux install succeeded.

0 Kudos
Moderator
Moderator
2,565 Views
Registered: ‎04-24-2017

Re: how to install petalinux in ubuntu18.04

Hi @ellboliang,

 

PetaLinux aligns with Vivado tools supported OS version. 

 

Right now there is no road map for Ubuntu-18.04.

 

As we hear from from vivado/petalinux team will keep you posted.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Visitor wel
Visitor
2,556 Views
Registered: ‎07-05-2018

Re: how to install petalinux in ubuntu18.04

I also meet this problem, do you find the solution?
0 Kudos
Visitor ellboliang
Visitor
2,520 Views
Registered: ‎07-05-2018

Re: how to install petalinux in ubuntu18.04

hi,@wel

   no solution!!

 

 

   thanks!

0 Kudos
Explorer
Explorer
2,233 Views
Registered: ‎10-09-2017

Re: how to install petalinux in ubuntu18.04

Have you finished the install? except the error, what happen after then. 

I'm also install petalinux 2018.2 on ubuntu18.

I also meet such a issue, but no enough space to install and exit .

If you could not run, then I will change to ubuntu16

0 Kudos
Explorer
Explorer
1,784 Views
Registered: ‎10-09-2017

Re: how to install petalinux in ubuntu18.04

My installed result. I will continue the test and don't care of the error information.

 

liwen@ubuntu:~/Downloads$ ./p* ../petalinux
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...

LICENSE AGREEMENTS

PetaLinux SDK contains software from a number of sources. Please review
the following licenses and indicate your acceptance of each to continue.

You do not have to accept the licenses, however if you do not then you may
not use PetaLinux SDK.

Use PgUp/PgDn to navigate the license viewer, and press 'q' to close

Press Enter to display the license agreements
Do you accept Xilinx End User License Agreement? [y/N] > y
Do you accept Webtalk Terms and Conditions? [y/N] > y
Do you accept Third Party End User License Agreement? [y/N] > y
INFO: Checking installation environment requirements...
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
INFO: Installing PetaLinux...
*********************************************
WARNING: PetaLinux installation directory: ../petalinux/. is not empty!
*********************************************
Please input "y" to continue to install PetaLinux in that directory?[n]y
INFO: Checking PetaLinux installer integrity...
INFO: Installing PetaLinux SDK to "../petalinux/."
................................................................................................................................................................................................................................................................................INFO: Installing aarch64 Yocto SDK to "../petalinux/./components/yocto/source/aarch64"...
PetaLinux Extensible SDK installer version 2018.2
=================================================
The directory "/home/liwen/petalinux/components/yocto/source/aarch64" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? Y
Extracting SDK................................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /home/liwen/petalinux/components/yocto/source/aarch64/environment-setup-aarch64-xilinx-linux
INFO: Installing Yocto SDK to "../petalinux/./components/yocto/source/"...
PetaLinux Extensible SDK installer version 2018.2
=================================================
The directory "/home/liwen/petalinux/components/yocto/source" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? Y
Extracting SDK..............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-mh-div-xilinx-linux
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-ml-xilinx-linux
environment: line 277: locked_signs: bad array subscript
INFO: Installing Yocto SDK to "../petalinux/./components/yocto/source/"...
PetaLinux Extensible SDK installer version 2018.2
=================================================
The directory "/home/liwen/petalinux/components/yocto/source" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? Y
Extracting SDK.............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-mh-div-xilinx-linux
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-ml-xilinx-linux
environment: line 277: locked_signs: bad array subscript
INFO: Installing Yocto SDK to "../petalinux/./components/yocto/source/"...
PetaLinux Extensible SDK installer version 2018.2
=================================================
The directory "/home/liwen/petalinux/components/yocto/source" already contains a SDK for this architecture.
If you continue, existing files will be overwritten! Proceed[y/N]? Y
Extracting SDK.............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-mh-div-xilinx-linux
$ . /home/liwen/petalinux/components/yocto/source/environment-setup-microblazeel-v10.0-bs-cmp-re-ml-xilinx-linux
environment: line 277: locked_signs: bad array subscript
INFO: PetaLinux SDK has been installed to ../petalinux/.
liwen@ubuntu:~/Downloads$

0 Kudos
Observer andycap
Observer
1,054 Views
Registered: ‎09-18-2017

Re: how to install petalinux in ubuntu18.04

 

To get it to work just downgrade your version of bash to 4.3.30 and make it the default shell:

wget http://ftp.gnu.org/gnu/bash/bash-4.3.30.tar.gz
tar xvzf bash-4.3.30.tar.gz 
cd bash-4.3.30/
./configure 
make 
sudo cp ./bash /bin/bash
sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh

 

log off and back in.

 

Then install petalinux

You will still get the petalinux-env-check warning but petalinux will install correctly and components/yocto/source will be correct:

~/Development/petalinux/components/yocto/source$ ls -ltr
total 16
drwxr-xr-x 9   4096 Jan 19 23:45 aarch64
drwxr-xr-x 9   4096 Jan 19 23:46 arm
drwxr-xr-x 9   4096 Jan 19 23:46 microblaze_full
drwxr-xr-x 9   4096 Jan 19 23:46 microblaze_lite

 

Moderator
Moderator
1,010 Views
Registered: ‎04-24-2017

Re: how to install petalinux in ubuntu18.04

Hi @andycap,

Ubuntu-18.04 is not supported from Yocto upstream hence petalinux doesn't support it.

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

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Observer andycap
Observer
996 Views
Registered: ‎09-18-2017

Re: how to install petalinux in ubuntu18.04

Hi Sandeep,

 

It is only the version of Bash that causes a problem, change the version of Bash and it all works as per my post.

 

Thanks

 

Andy

0 Kudos