Tuesday, June 7, 2016

Petalinux commands not found, errors

After a fresh install of Petalinux v2016.1 via the installer (http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2015-4.html)

Make the file executable by typing in the terminal in the directory of the installer download: 'sudo chmod +x filename.run'. Then, begin the install by typing: './filename.run' (where filename.run is the actual name of the file downloaded. For me it was petalinux-v2016.1-final-installer.run).

If the install requires additional tools and packages to properly download, download them. How to do this can be found online pretty easily.

After the install is complete, you may experience errors that may tell you certain commands are not found when you try and execute them. To avoid this inconvenience, in the terminal type:

IMPORTANT NOTE - YOU MUST RUN THE SETTINGS SCRIPT EACH TIME YOU OPEN A NEW TERMINAL OR SHELL. THE PETALINUX TOOLS WILL FAIL OTHERWISE.

'source <path to installation of petalinux>/ settings.sh'
'echo $PETALINUX'
'/opt/Xilinx/petalinux-v201X.x-final'


So for example in my circumstance I executed:

'source /opt/Xilinx/petalinux-v2016.1-final/ settings.sh'
'echo $PETALINUX'
'/opt/Xilinx/petalinux-v2016.1-final'

Now commands such as create and others should work fine.

Reference the full Petalinux Tools user guide below:

http://www.xilinx.com/support/documentation/sw_manuals/petalinux2014_2/ug977-petalinux-getting-started.pdf

No comments:

Post a Comment