Install Petalinux 2021.1 or later

This document will guide you on “Installing Petalinux 2021.1” or later version. This tutorial can be followed for Ubuntu 18.04 or alter as well as corresponding version of CentOS/RedHat Linux. For installing Petalinux you need to have some 30GB around of memory space while for creating project you may need another 60GB of memory space on your PC. For installing lets follow these steps:

  1. Download the Petalinux 2021.1 or later version from
  2. Now download “” from This script setup all the necessary packages and dependencies at your Linux PC. So you dont need to install every packages yourself. This script supports after Petalinux 2020.1 version.
  3. Open terminal and run SH script : sudo ./
  4. For steps afterwards, you can also follow our “PDF tutorial on installing Petalinux(older version) in Ubuntu/CentOS following steps are same from the PDF document: Link“.
  5. Now create the TFTP server by following commands: ~$ sudo gedit /etc/xinetd.d/tftp and write following config on it and save it:
    service tftp
    { protocol = udp port = 69
    socket_type = dgram
    wait = yes
    user = nobody
    server = /usr/sbin/in.tftpd
    server_args = /tftpboot disable = no }
  6. Now create teh TFTP directory
    $sudo mkdir /tftpboot
    $sudo chmod -R 777 /tftpboot
    $sudo chown -R nobody /tftpboot
  7. Restart TFTP service:
    $ sudo /etc/init.d/xinetd stop
    $ sudo /etc/init.d/xinetd start
  8. Now installing the Petalinux, first create directory where you want to install Petalinux, here we are installing at “/opt/petalinux” you can install at other directory to:
    $ mkdir –p /opt/petalinux
    $ chmod 755 /opt/petalinux
  9. Goto the Petalinux Installer directory using “cd” command.
  10. Now enter:
    $ ./ -d /opt/petalinux
  11. Above command will install the petalinux at “/opt/petalinux/ directory.
  12. Now source the petalinux for using it:
    source /opt/petalinux/
  13. After sourcing you can see the petalinux instantiate with few messages print at terminal.
  14. Now you can create the petalinux project using BSP or Empty project command. For this you can also follow UG1144.

Thanks for following this tutorial! For any queries you can also write us at :