- Zach Pfeffer
Download and Install Xilinx's 2017.4 PetaLinux Tools
This post shows how to download and install Xilinx's 2017.4 PetaLinux Tools on Ubuntu 16.04.1 (available here, if you need help downloading and installing it click here). I wrote it because there is no document named Installing PetaLinux Tools 2017.4 posted at Xilinx.com (the instructions are in the UG1144 (v2017.4) PetaLinux Tools Reference Guide).
Note: the whole process took me about 3 hours on a 40 Gbps download link. Most of the time is spent waiting for 7.8 GB's to download.
Looking for PetaLinux help? Email firstname.lastname@example.org today to schedule a 30-min consult for $99.00
1. Get a Xilinx Account (update: you may be able to directly download PetaLinux Tools 2017.4 here).
Before starting, ensure you have a xilinx.com account. If you need one create it here.
2. Ensure you have the following packages by running:
PetaLinux Tools 2017.4 requires the following components:
A Google Sheet version of this table is at link.
You also need to install libtool-bin and zlib1g:i386
3. Install Make 3.81
Note: This was run after getting all of the packages listed above.
I'm fairly sure PetaLinux Tools relies on Make 3.81. To install a local copy do the following:
4. Change your shell to bash with:
5. Before you run any commands in petalinux run:
Download and Install
1. Go to: https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html
2. Scroll down and click on PetaLinux 2017.4 Installer or click this link: https://www.xilinx.com/member/forms/download/xef.html?filename=petalinux-v2017.4-final-installer.run&akdm=1
3. After logging in to Xilinx.com, your 7.8 GB download will start.
4. Once the download completes execute:
You'll see this for a few minutes:
Then this for a little less time:
5. At the following output:
Press Enter to scroll through the license agreement. Press down to the end (or just press 'q'). Press q (if you haven't). Then press y:
6. Again, press Enter to scroll through the license agreement. Press down to the end (or just press 'q'). Press q (if you haven't). Then press y:
7. Again, press Enter to scroll through the license agreement. Press down to the end (or just press 'q'). Press q (if you haven't). Then press y:
You should see the following for a few minutes:
A full listing is available at link (and below).
If you see the following output, the install succeeded:
Possible Errors and Mitigation
If you see an error about a missing package, install the package and then rerun the command you used before (listed here again). Keep running through this loop until all packages have been installed.
8. Make sure /bin/sh points to bash
If you see the following:
Run the following to ensure /bin/sh points to bash:
Note: to reverse this type:
Bugs I saw
The 2017.4 PetaLinux Tools Reference Guide references 2017.3 everywhere. For instance the installation instructions reference 2017.3:
This guide was tested with the 2017.4 version so everything should be okay.
You need to chmod +x the petalinux-v2017.4-final-installer.run file that was downloaded. This has been added to these instructions.
This note on page 6 is not accurate because the install doesn't take care of the package and command dependencies:
"Note: The reader of this document is assumed to have basic Linux knowledge, such as how to run Linux commands. The reader should also be aware of OS and Host system features such as OS bit version, Linux Distribution and Security Privileges."
The PetaLinux tools installer complains about libtool when it has been installed.
You need to install: libtool-bin
Comments and Suggestions to Xilinx
Because PetaLinux Tools requires a very specific set of components it would be good if it set it self up in a chroot.
If the install errors out, and the user has already accepted the licenses, don't make them accept them again.
The latest installation instructions I can find are in ug1144-petalinux-tools-reference-guide.pdf.
I used Free Online OCR to convert the Table 1-3: Packages and Linux Workstation Environments to an Excel spreadsheet which I then converted into an HTML table by using the No-Cruft Excel to HTML Table Converter + a little styling help.
Tux from link (found via Google image search).
This install was actually done on a Linux Mint 18.2 Sonya (GNU/Linux 4.13.0-31-generic x86_64) which is based on the Ubuntu 16.04 package base. See link.
Full PetaLinux Install Log