cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
palmercliff
Observer
Observer
1,333 Views
Registered: ‎11-09-2017

Petalinux install does not add petalinux to the path

Jump to solution

After running the Petalinux install on Ubuntu 16.04.3 64-bit workstation hosted on Virtualbox 5.1.2.2, I found that:

- The PETALINUX environment variable was not set

- no petalinux directories were added to the path

- the settings.sh script was not made executable

Can someone point out the errors I have made installing Petalinux?

Thanks

 

 

The log of the installation is below:

cliff@cliff-VirtualBox:/opt/pkg/petalinux$ ./petalinux-v2018.2-final-installer.run /opt/pkg/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

INFO: Checking installed development libraries

INFO: Checking network and other services

INFO: Installing PetaLinux...

*********************************************

WARNING: PetaLinux installation directory: /opt/pkg/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 "/opt/pkg/petalinux/."

..................................................................................................................................................................…...............................................................................................................................................................................................................................................................................................................................

..........................................................................................................INFO: Installing aarch64 Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/aarch64"...

PetaLinux Extensible SDK installer version 2018.2

=================================================

The directory "/opt/pkg/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.

$ . /opt/pkg/petalinux/components/yocto/source/aarch64/environment-setup-aarch64-xilinx-linux

INFO: Installing arm Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/arm"...

PetaLinux Extensible SDK installer version 2018.2

=================================================

The directory "/opt/pkg/petalinux/components/yocto/source/arm" 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.

$ . /opt/pkg/petalinux/components/yocto/source/arm/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi

INFO: Installing microblaze_full Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/microblaze_full"...

PetaLinux Extensible SDK installer version 2018.2

=================================================

The directory "/opt/pkg/petalinux/components/yocto/source/microblaze_full" 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.

$ . /opt/pkg/petalinux/components/yocto/source/microblaze_full/environment-setup-microblazeel-v10.0-bs-cmp-re-mh-div-xilinx-linux

INFO: Installing microblaze_lite Yocto SDK to "/opt/pkg/petalinux/./components/yocto/source/microblaze_lite"...

PetaLinux Extensible SDK installer version 2018.2

=================================================

The directory "/opt/pkg/petalinux/components/yocto/source/microblaze_lite" 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.

$ . /opt/pkg/petalinux/components/yocto/source/microblaze_lite/environment-setup-microblazeel-v10.0-bs-cmp-re-ml-xilinx-linux

INFO: PetaLinux SDK has been installed to /opt/pkg/petalinux/.

 

cliff@cliff-VirtualBox:/opt/pkg/petalinux$ echo $PETALINUX

( PETALINUX is not defined)

cliff@cliff-VirtualBox:/opt/pkg/petalinux$ ./settings.sh

bash: ./settings.sh: Permission denied

cliff@cliff-VirtualBox:/opt/pkg/petalinux$ chmod 775 settings.sh

cliff@cliff-VirtualBox:/opt/pkg/petalinux$ ./settings.sh

PetaLinux environment set to '/opt/pkg/petalinux'

INFO: Checking free disk space

INFO: Checking installed tools

INFO: Checking installed development libraries

INFO: Checking network and other services

cliff@cliff-VirtualBox:/opt/pkg/petalinux$ echo $PETALINUX

 

( PETALINUX is still not defined)

cliff@cliff-VirtualBox:/opt/pkg/petalinux$ echo $PATH

/home/cliff/bin:/home/cliff/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

(PATH does not contain any petalinux directories)

 

 

0 Kudos
1 Solution

Accepted Solutions
watari
Teacher
Teacher
1,299 Views
Registered: ‎06-16-2013

Hi @palmercliff

 

Would you try to the following command ?

 

$ source <your petalinux install directory>/settings.sh

 

Also I sugges to use bash as shell, if you use petalinux.

 

Best regards,

 

View solution in original post

4 Replies
watari
Teacher
Teacher
1,300 Views
Registered: ‎06-16-2013

Hi @palmercliff

 

Would you try to the following command ?

 

$ source <your petalinux install directory>/settings.sh

 

Also I sugges to use bash as shell, if you use petalinux.

 

Best regards,

 

View solution in original post

sandeepg
Moderator
Moderator
1,298 Views
Registered: ‎04-24-2017

This path is just an example you can install on any local storage where you have read and write permissions.

 

I would suggest follow this my recommendation is to have a version specific directories when you have multiple versions installed.

 

 

$ sudo chown -R <user>:<group> /opt
$ mkdir -p /opt/Xilinx/PetaLinux/2018.2
$ ./petalinux-v2018.2-final-installer.run /opt/Xilinx/PetaLinux/2018.2

 

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
palmercliff
Observer
Observer
1,272 Views
Registered: ‎11-09-2017

Thanks - your suggestions made the install work.

0 Kudos
palmercliff
Observer
Observer
1,270 Views
Registered: ‎11-09-2017

Thanks!

0 Kudos