Update PetaLinux Tools Installation authored by jesseg64's avatar jesseg64
[<< Previous Chapter](Petalinux-Ubuntu-Development-Environment) | [Home](Home) | [Next Chapter >>](Vivado-and-Vitis-Install)
[[_TOC_]]
# Prerequisites
- This guide assumes you are installing petalinux tools version 2020.1 on the [Ubuntu 18.04.4 development environment](https://git.ece.iastate.edu/sd/sdmay23-47/-/wikis/Petalinux-Ubuntu-Development-Environment). If you are installing it elsewhere, consult the [Petalinux Tools Reference Guide](https://docs.xilinx.com/r/en-US/ug1144-petalinux-tools-reference-guide) and make sure you have the correct version selected.
# Install
- Download petalinux tools installer from [the Xilinx Download page](https://www.xilinx.com/support/download.html). [Here](https://www.xilinx.com/member/forms/download/xef.html?filename=petalinux-v2020.1-final-installer.run) is the one we picked.
> It should be named something like "petalinux-v2020.1-final-installer.run"
> Note: You might need to create a free Xilinx/AMD account to download it.
- enable i386 architecture packages
```bash
sudo dpkg --add-architecture i386
```
```bash
sudo apt-get update
```
- Disable dash. Run the following and select `no`
```bash
sudo dpkg-reconfigure dash
```
- Install dependencies
```bash
sudo apt install iproute2 gcc g++ net-tools libncurses5-dev zlib1g:i386 libssl-dev flex bison libselinux1 xterm autoconf libtool texinfo zlib1g-dev gcc-multilib build-essential screen pax gawk python3 python3-pexpect python3-pip python3-git python3-jinja2 -y
```
- Make the install directory location
```bash
sudo mkdir -p /opt/pkg/petalinux/2020.1
```
- Make the install directory accessible
```bash
sudo chmod -R u=rwx,g=rwx,o=rwx /opt/pkg/petalinux/2020.1/
```
```bash
sudo chown -R <user> /opt/pkg/petalinux/2020.1/
```
> Note: petalinux tool installer can only be installed by a non-root user
- Navigate to the installer and add execution privilege.
```bash
chmod +x petalinux-v2020.1-final-installer.run
```
- Run the installer - Follow the instructions to accept the license agreements.
```bash
./petalinux-v2020.1-final-installer.run -d /opt/pkg/petalinux/2020.1
```
> Note: "WARNING: This is not a supported OS" can be ignored.
> Note: "WARNING: No tftp server found - please refer to "UG1144 PetaLinux Tools Documentation Reference Guide" for its impact and solution" can be ignored if you are not using a tftp server.
- Source the petalinux tools
```bash
source /opt/pkg/petalinux/2020.1/settings.sh
```
> Note: This last command needs to be ran every time you start a console session. It also allows you to run multiple petalinux tools versions and switch between them if you want.
[<< Previous Chapter](Petalinux-Ubuntu-Development-Environment) | [Home](Home) | [Next Chapter >>](Vivado-and-Vitis-Install)t
\ No newline at end of file