1,安装Petalinux插件:将所需的依赖库都先安装(参考UG1144文档要求)
sudo apt-get install tofrodos iproute2 gawk
sudo apt-get install gcc git make
sudo apt-get install xvfb
sudo apt-get install net-tools libncurses5-dev tftpd
sudo apt-get install zlib1g-dev zlib1g-dev:i386 libssl-dev flex bison libselinux1
sudo apt-get install gnupg wget diffstat chrpath socat xterm
sudo apt-get install autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2-dev libglib2.0-dev
sudo apt-get install screen pax gzip tar
sudo apt-get install openssl
2,Ubuntu系统默认的/bin/sh是dash,而PetaLinux要求的是bash在终端中,执行:sudo dpkg-reconfigure bash
3,进入.run文件的目录,修改其执行属性:chmod +x petalinux-v2020.2-final-installer.run
4,安装PetaLinux
因为安装PetaLinux时不能用root权限,所以先在非root目录下创建一个文件夹,并且修改权限为:755
mkdir -p /home/alinx/linux-xlnx-xilinx-v2020.2
chmod 755 /home/alinx/linux-xlnx-xilinx-v2020.2
在/home目录下创建petalinux文件夹,并且修改权限为755.
进入.run文件所在的目录,执行安装命令。
./petalinux-v2020.2-final-installer.run /home/alinx/linux-xlnx-xilinx-v2020.2
等待一段时间.run安装包的校验、提取,然后出现许可文件的阅读,按Enter回车键阅读,按Q键退出,按Y键接受许可,需要操作3次,然后等待PetaLinux安装结束。
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...
LICENSE AGREEMENTS
PetaLinux SDK contains software from a number of sources. Please review
the following licenses and indicate your acceptance of each to continue.
You do not have to accept the licenses, however if you do not then you may
not use PetaLinux SDK.
Use PgUp/PgDn to navigate the license viewer, and press 'q' to close
Press Enter to display the license agreements
Do you accept Xilinx End User License Agreement? [y/N] > y
Do you accept We