Skip to content

Petalinux installation

This software is not required.

Only students that will be using Petalinux in their project will need this. You can defer this installation.

We advise you to use version 2024.1 (Vivado/Vitis and Petalinux should always be at the same version).

It is required for all team members to use the same version. If you find a project online that is using an older version of Vivado, this might not work in 2024.1.

Windows

If you want to build a PetaLinux image on Windows there are two options, or you install it under WSL2 or you will have to use a VirtualBox with a recent version of Ubuntu.

Linux

Download the Petalinux Tools - Installer 2024.1 Full Product Installation, PetaLinux Installer (3.07 GB) from Xilinx website

Installation Steps

Whitney Knitter has an elaborate write-up on hackster.io of how to install Petalinux (you will also find extra information on installing Vivado and Vitis on that website).

Pre-downloading Cache Files

Go to the PetaLinux Downloads page at the bottom you will see PetaLinux Tools sstate-cache Artifacts - 2024.1

Download:

  • aarch64 sstate-cache (TAR/GZIP - 35.79 GB)
  • arm sstate-cache (TAR/GZIP - 12.14 GB)
  • microblaze sstate-cache (TAR/GZIP - 3.81 GB)
  • Downloads (TAR/GZIP - 53.48 GB)

By default petalinux uses sstate-cache and download mirrors from petalinux.xilinx.com

This is the info from the README:

Setting sstate cache

1) Extract the downloaded tar contents (3 first files) of sstate-cache at any location

2) run petalinux-config -> Yocto Settings ->Local sstate feeds settings ->local sstate feeds url (press Enter)

3) Provide the path of sstate-cache from above Ex: //aarch64 for Versal projects

4) Save the configurations to use the sstate-cache

Setting download mirror

1) Extract the downloaded tar contents of Downloads at any location

2) run petalinux-config -> Yocto Settings -> Add pre-mirror url -> (press Enter) Clear default value

3) Provide the path of downloads from above file:///downloads for all projects

4) Save the configurations to use the download mirrors

5) Verify the changes in build/conf/plnxtool.conf

6) petalinux-build