Centos7.5安装PetaLinux2018.2

在Centos7.5上安装Petalinux-v2018.2,具体安装包为:
petalinux-v2018.2-final-installer.run
按照官方用户手册UG1144中如下命令执行安装:

mkdir -p /opt/pkg/petalinux
./petalinux-v2018.2-final-installer.run /opt/pkg/petalinux

则会报如下错误:
Centos7.5安装PetaLinux2018.2_第1张图片
安装依赖包:

sudo yum install -y gcc git make net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg wget diffstat chrpath socat xterm autoconf libtool tar unzip texinfo zlib1g-dev gcc-multilib build-essential libsdl1.2- dev libglib2.0-dev zlib1g: i386 screen pax gzip
sudo yum install glib2-devel
sudo yum install patch
sudo yum install openssl-devel
sudo yum install openssl-devel
sudo yum install gawk Xvfb

注意Xvfb中X要大写,否则无法安装。
glib2、openssl、openssl其后都要加上-devel,否则仍会提示缺少相应依赖包。

不能以root权限或sudo权限运行如下命令,否则报错:

./petalinux-v2018.2-final-installer.run /opt/pkg/petalinux

若以root权限或sudo权限运行则报如下错误:

ERROR: Exiting Installer: Cannot install as root user !

依赖包安装完成后执行上述安装命令会报如下错误:

ERROR: Access Denied: No access permissions to the directory : /opt/pkg/petalinux

通过如下命令修改权限:

sudo chmod -R 777 /opt/pkg/petalinux

然后继续执行petalinux安装命令后报如下错误:

INFO: Installing PetaLinux SDK to “/opt/pkg/petalinux/.”
…>…tar: .:无法utime:不允许的操作
tar:.:无法将模式改为 rwxr-xr-x:不允许的操作
tar:由于前次错误,将以上次的错误状态退出


ERROR: Failed to install PetaLinux SDK into “/opt/pkg/petalinux/.”


Please refer to the PetaLinux Tools Installation Guide.

将petalinux安装在一般文件路径下,如/home/XXX/soft/petalinux,即执行如下安装命令后成功:

./petalinux-v2018.2-final-installer.run /home/XXX/soft/petalinux

安装成功,如下图所示:
Centos7.5安装PetaLinux2018.2_第2张图片
安装完成后每次运行petalinux前执行如下脚本,即可启动petalinux

source /home/XXX/soft/petalinux/settings.sh

你可能感兴趣的:(FPGA基础,Petalinux)