安装必要运行库:
sudo apt-get install iproute2 gawk python3 python
sudo apt-get install build-essential gcc git make net-tools libncurses5-dev tftpd
sudo apt-get install zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget git-core diffstat
sudo apt-get install chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib
sudo apt-get install automake zlib1g:i386 screen pax gzip cpio python3-pip python3-pexpect xz-utils debianutils
sudo apt-get install iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3
sudo apt-get install tftpd-hpa
下载的petalinux-v2022.2-10141622-installer.run运行文件至ubuntu目录下,运行命令:
./petalinux-v2022.2-10141622-installer.run --dir /home/zynq/petalinux/
一,离线编译配置:下载sstate-cache和downloads,在官网PetaLinux找到对应版本下载页面: