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:
- Download the Petalinux 2021.1 or later version from https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools.html
- Now download “plnx-env-setup.sh” from https://support.xilinx.com/s/article/73296?language=en_US. 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.
- Open terminal and run SH script : sudo ./plnx-env-setup.sh
- 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“.
- 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 } - Now create teh TFTP directory
$sudo mkdir /tftpboot
$sudo chmod -R 777 /tftpboot
$sudo chown -R nobody /tftpboot - Restart TFTP service:
$ sudo /etc/init.d/xinetd stop
$ sudo /etc/init.d/xinetd start - 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 - Goto the Petalinux Installer directory using “cd” command.
- Now enter:
$ ./petalinux-v2018.2-final-installer.run -d /opt/petalinux - Above command will install the petalinux at “/opt/petalinux/ directory.
- Now source the petalinux for using it:
source /opt/petalinux/settings.sh - After sourcing you can see the petalinux instantiate with few messages print at terminal.
- 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 : info@logictronix.com.