最低电脑配置
Minimum workstation requirements:
° 8 GB RAM (recommended minimum for Xilinx tools)
° 2 GHz CPU clock or equivalent (minimum of 8 cores)
° 100 GB free HDD space
° Supported OS:
- Red Hat Enterprise Workstation/Server 7.2, 7.3, 7.4 (64-bit)
- CentOS 7.2, 7.3, 7.4 (64-bit)
- Ubuntu Linux 16.04.3 (64-bit)
petalinux不支持ubuntu18.04版本,所以选择16.04版本安装
一般都选择虚拟机安装,从官网上下载petalinux-v2018.3-final-installer.run
下载ubuntu-16.04.6-server-amd64
magnet:?xt=urn:btih:EE55335F2ACDE309FA645FAB11C04750D7E45FA1
安装的时候硬盘选择100G
并安装OPENSSH
把虚拟机后台后用SSH登录
安装好后,更改dash
sudo dpkg-reconfigure dash
选择 否
安装vmtools
共享windows文件夹到 /mnt/hgfs/tmp/
把下载好的文件放到这个文件夹里面
安装UG1144手册中的库文件
sudo apt-get install -y gcc git make net-tools libncurses5-dev tftpd zlib1g-dev libssl-dev flex bison libselinux1 gnupg
sudo apt-get install -y 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 apt-get install -y gawk xvfb
另外还要安装tftp
sudo apt-get install tftpd tftp
sudo apt-get install openbsd-inetd
vi /etc/inetd.conf
增加
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /home/tftpboot
然后
/etc/init.d/openbsd-inetd restart
否则在安装过程中会提示tftp服务没有
都装成功后再
sudo apt-get update
sudo apt-get upgrage
然后在opt 下新建UG1144中建议的文件夹
sudo chmod 777 /opt
这样普通用户在opt里面新建文件就不会提示权限问题了
/opt/pkg/petalinux/201803$
由于手册上说不要用root,
work@localhost:/opt/pkg/petalinux/201803$ /mnt/hgfs/tmp/petalinux-v2018.3-final-installer.run /opt/pkg/petalinux/201803/
INFO: Checking installation environment requirements...
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...LICENSE AGREEMENTSPetaLinux 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 closePress 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
INFO: Installing PetaLinux...
*********************************************
WARNING: PetaLinux installation directory: /opt/pkg/petalinux/201803//. is not empty!
*********************************************
Please input "y" to continue to install PetaLinux in that directory?[n]y
INFO: Checking PetaLinux installer integrity...
INFO: Installing PetaLinux SDK to "/opt/pkg/petalinux/201803//."
INFO: Installing aarch64 Yocto SDK to "/opt/pkg/petalinux/201803//./components/yocto/source/aarch64"...
INFO: Installing arm Yocto SDK to "/opt/pkg/petalinux/201803//./components/yocto/source/arm"...
INFO: Installing microblaze_full Yocto SDK to "/opt/pkg/petalinux/201803//./components/yocto/source/microblaze_full"...
INFO: Installing microblaze_lite Yocto SDK to "/opt/pkg/petalinux/201803//./components/yocto/source/microblaze_lite"...
INFO: PetaLinux SDK has been installed to /opt/pkg/petalinux/201803//.
work@localhost:/opt/pkg/petalinux/201803$ ls
components doc etc petalinux_installation_log settings.csh settings.sh tools
work@localhost:/opt/pkg/petalinux/201803$
work@localhost:/opt/pkg/petalinux/201803$
work@localhost:/opt/pkg/petalinux/201803$ source settings.s
-bash: settings.s: No such file or directory
work@localhost:/opt/pkg/petalinux/201803$ source settings.sh
PetaLinux environment set to '/opt/pkg/petalinux/201803'
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
不如意外的话按上面提示安装就可以成功,
Verify that the working environment has been set:
$ echo $PETALINUX
/opt/pkg/petalinux
安装成功了,不要把系统升级到18.04,不支持