Translate

Monday, 26 November 2018

How to install PetaLinux



Hi !

In the previous post we installed Xilinx Vivado 2018.2 for FPGA generation and Xilinx SDK 2018.2 for software developements.

Now in this post we are going to install Xilinx PetaLinux 2018.2.

PetaLinux is provided by Xilinx and you can find all the relative information here : Xilinx PetaLinux page


Read This !

This post describes procedures that manipulate a big installation file (6.5GB) in a virtual environment !

So some steps provided in this post may be quite long, depending on your computer configuration !!

If you don't want to lose too much time I encourage you to follow the steps in the provided order.



Here are the main sections of this post for a quick jump :







Step 1 : Download installation files


The first thing to do is to get the installation files for the PetaLinux 2018.2 version.


Stage 1


You must go the to Xilinx's website : Xilinx WebSite : PetaLinux 2018.2 Download

You're in the Embedded Development Section, then scroll down to the PetaLinux - Installation Files - 2018.2

Finally click on the PetaLinux 2018.2 Installer.

The file is 6.5GB !




Stage 2


This will launch the download, but first you have to login to your Xilinx account.

Fill Username, Password and then click on Sign In.




Confirm your personnal data and press Sign In for the download to begin.


Stage 3


You will be requested to provide the destination folder where the installation file will be stored.

As it will be launched in the VM under Ubuntu, you need to store the installer in the shared folder we created.

This will let us access the installer file from Ubuntu.








Step 2 : Creating the installation folder for the Xilinx PetaLinux Tool


Ok, now it's time to switch to Ubuntu.

So open your Virtual Machine and log in to Ubuntu.


Stage 1


First we need to create the destination installation folder as follow :

sudo mkdir /opt/petalinux-v2018.2-final


Then, as we did for the /opt folder, we are going to give the rights to the installation folders.

Reminder: The following table gives an explanation of a change mod command using letters.




So the chmod command for the Xilinx PetaLinux tool installation folder will be :


sudo chmod -R ugo+w /opt/petalinux-v2018.2-final


you may need to create the group with the following command


sudo addgroup mtvl


and then


sudo chown -R mtvl:mtvl /opt/petalinux-v2018.2-final


Which recursively gives to the Mtvl user group the write permission to this repository.




As you can see on the previous screenshot the Xilinx Tools folder does not have all the expected rights!

To correct this we give the same rights with :

sudo chmod -R ugo+w /opt/Xilinx


Now we have :




Ok, now everything is set up.






Step 3 : Install the Xilinx PetaLinux Tool



MANDATORY !

Before going further in the installation process you have to apply the following steps otherwise the installation will FAIL !

- First, set the BASH shell : Follow the steps of this post :
Set Ubuntu shell for Xilinx PetaLinux

- Second, automatically set up the PetaLinux environment with the steps of this post :
How to automatically configure the PetaLinux environment

- Third, customize Ubuntu to provide everything needed by PetaLinux with the steps of this post :
How to customize Ubuntu for Xilinx PetaLinux


Stage 1


The first thing to do is to copy the installer file from the shared folder to a folder where we have permissions. This is because the installer file will be extracted and we have to write in that folder.

As the destination installation folder is placed in /opt, I propose to move the installer file there.




Ok, then we can launch the installation process with the following command :

cd /opt

./petalinux-v2018.2-final-installer.run /opt/petalinux-v2018.2-final



In a first step the installer will check the integrity of the file, which takes several minutes (7 minutes on my computer).

Then it will extract the file (6 minutes on my computer).




Stage 2


Then comes the license agreement steps.




So as it says, press Enter.


Stage 3


A first License text is displayed.




To read the whole text use your mouse or page up/down.

When finished press q.

Which leads you to this license approval request.




Just press y then Enter.

You will be requested to accept two more licences texts like this one.

Use the same procedure, read the text, press y and Enter.


Stage 4


Then the installation procedure starts, expect to spend some time waiting in front of your computer !!!

Here is the log where you can check steps

mtvl@mtvl-VirtualBox:/opt$ ./petalinux-v2018.2-final-installer.run ./petalinux-v2018.2-final/

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

WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution

INFO: Installing PetaLinux...

INFO: Checking PetaLinux installer integrity...

INFO: Installing PetaLinux SDK to "./petalinux-v2018.2-final//."

................................................................................................................................................................................................................................................................................INFO: Installing aarch64 Yocto SDK to "./petalinux-v2018.2-final//./components/yocto/source/aarch64"...

PetaLinux Extensible SDK installer version 2018.2

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

You are about to install the SDK to "/opt/petalinux-v2018.2-final/components/yocto/source/aarch64". 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/petalinux-v2018.2-final/components/yocto/source/aarch64/environment-setup-aarch64-xilinx-linux

INFO: Installing arm Yocto SDK to "./petalinux-v2018.2-final//./components/yocto/source/arm"...

PetaLinux Extensible SDK installer version 2018.2

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

You are about to install the SDK to "/opt/petalinux-v2018.2-final/components/yocto/source/arm". 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/petalinux-v2018.2-final/components/yocto/source/arm/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi

INFO: Installing microblaze_full Yocto SDK to "./petalinux-v2018.2-final//./components/yocto/source/microblaze_full"...

PetaLinux Extensible SDK installer version 2018.2

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

You are about to install the SDK to "/opt/petalinux-v2018.2-final/components/yocto/source/microblaze_full". 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/petalinux-v2018.2-final/components/yocto/source/microblaze_full/environment-setup-microblazeel-v10.0-bs-cmp-re-mh-div-xilinx-linux

INFO: Installing microblaze_lite Yocto SDK to "./petalinux-v2018.2-final//./components/yocto/source/microblaze_lite"...

PetaLinux Extensible SDK installer version 2018.2

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

You are about to install the SDK to "/opt/petalinux-v2018.2-final/components/yocto/source/microblaze_lite". 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/petalinux-v2018.2-final/components/yocto/source/microblaze_lite/environment-setup-microblazeel-v10.0-bs-cmp-re-ml-xilinx-linux

INFO: PetaLinux SDK has been installed to ./petalinux-v2018.2-final//.

mtvl@mtvl-VirtualBox:/opt$






Stage 7


Ok, the Xilinx PetaLinux tool is installed.

To check that every thing is set up let's try to launch a create command.




Ok fine !

The command is recognized and launched. As the command has no arguments, PetaLinux displays the help of the command.

Well, now all the tools are ready, we can start designing !





Post Conclusion

Now we have :

- Prepared the system to enable the PetaLinux tool installation.
- Installed the PetaLinux tool.

No comments:

Post a Comment