Table of contents
Switch Bash
sudo dpkg-reconfigure dash
Enter the command, select "No" in the Configuring dash, and press Enter to confirm
Install library files
sudo apt install build-essential vim tofrodos
sudo apt install iproute2 gawk gcc git make net-tools zlib1g-dev
sudo apt install libssl-dev flex bison libselinux1 libncurses5-dev
sudo apt install tftpd lib32z1 lib32ncurses5-dev libbz2-1.0:i386
sudo apt install lib32stdc++6 xvfb chrpath socat autoconf libtool
sudo apt install texinfo gcc-multilib libsdl1.2-dev libglib2.0-dev zlib1g:i386
sudo apt install wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential zlib1g:i386 screen pax gzip
sudo apt install python-is-python3
Create an installation directory
mkdir -p /opt/pkg/petalinux/2019.1
Add write permissions
sudo chmod -R 777 /opt/pkg/petalinux/2019.1
Install
./petalinux-v2019.1-final-installer.run /opt/pkg/petalinux/2019.1
Check the information, 20.04 is not supported, you need to change to the 18.04 version;
References: Installation of petalinux 2018.2 under ubuntu 16 https://blog.csdn.net/leon_zeng0/article/details/82766472