Ubuntu16.04 安装 PetaLinux2017.4 教程

在Xilinx官网下载PetaLinux2017.4的安装文件

https://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/embedded-design-tools/2017-4.html

参考Xilinx官方ug1144-petalinux-tools-reference-guide.pdf文档

Step 1:按照UG1144文档里的要求,将所需的依赖库都先安装好。

查看P9 Table 1-3: Packages and Linux Workstation Environments里Ubuntu 16.04.1一栏的要求

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

Step 2:Ubuntu系统默认的/bin/sh是dash,而PetaLinux要求的是bash在终端中,执行如下命令。

sudo dpkg-reconfigure bash

Step 3:进入.run文件的目录,修改其执行属性。

chmod +x petalinux-v2017.4-final-installer.run

Step 4:安装PetaLinux

因为安装PetaLinux时不能用root权限,所以先在非root目录下创建一个文件夹,并且修改权限为:755

mkdir -p ~/home/petalinux
chmod 755 ~/home/petalinux

我在/home目录下创建petalinux文件夹,并且修改权限为755.

进入.run文件所在的目录,执行安装命令。

./petalinux-v2017.4-final-installer.run ~/home/petalinux

 需要一段时间等待.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 Webtalk Terms and Conditions? [y/N] > y
Do you accept Third Party End User License Agreement? [y/N] > y

Step 5:验证PetaLinux安装成功

(1)先设置环境变量

source ~/home/petalinux/settings.sh

(2)验证环境变量设置成功

echo $PETALINUX

如果出现安装路径,则表示成功。

/home/XXX/home/petalinux

Step 6:如何使用PetaLinux参照UG1144文档

猜你喜欢

转载自blog.csdn.net/weixin_37182342/article/details/81506502