petalinux 17.2安装流程-基于Ubuntu系统

1. #安装petalinux时出现警告,提示No tftp server found - please refer to "PetaLinux SDK Installation Guide" 

  for its impact and solution,需要安装下面3个库:apt-get install tftpd tftp openbsd-inetd

 gedit /etc/inetd.conf
 #在文件中增加以下内容
 tftp        dgram    udp    wait    nobody    /usr/sbin/tcpd    /usr/sbin/in.tftpd /tftproot
 #保存并退出
 mkdir /tftproot
 chmod 777 /tftproot
 /etc/init.d/openbsd-inetd restart
 netstat -an | more grep udp
 #看到有如下输出,即表示tftp安装成功
 #udp        0      0 0.0.0.0:69              0.0.0.0:*


2. 报不能再root或sudo下安装SDK,所以必须切换到普通用户进行操作
PetaLinux Extensible SDK installer version 2017.2
=================================================
ERROR: The extensible sdk cannot be installed as root.
*********************************************
ERROR: Failed to install Yocto SDK for zynqMP.
*********************************************

解决办法:
work@ubuntu: mkdir /home/work/petalinux
work@ubuntu:chmod 777 /home/work/petalinux
将petalinux-v2017.2-final-installer.run 文件拷贝到/home/work/petalinux目录下
work@ubuntu:~/petalinux$./petalinux-v2017.2-final-installer.run   不指定目录的话,默认在当前目录
INFO: Checking installer checksum...
INFO: Extracting PetaLinux installer...
INFO: Installing PetaLinux...
*********************************************
WARNING: You haven't specified the installation location.
*********************************************
*********************************************
WARNING: By default, it will be installed in your working directory: /home/work/petalinux
*********************************************
Please input "y" to proceed the installation, exit otherwise
:y
INFO: Checking PetaLinux installer integrity...
*********************************************
WARNING: PetaLinux installation directory: /home/work/petalinux/. is not empty!
*********************************************
Please input "y" to continue to install PetaLinux in that directory?[n]y
INFO: Extracting Installation files...


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
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: Installing PetaLinux SDK to "/home/work/petalinux/."
INFO: Installing PetaLinux zynqMP Yocto SDK to "/home/work/petalinux/./components/yocto/source/aarch64"...
PetaLinux Extensible SDK installer version 2017.2
=================================================
You are about to install the SDK to "/home/work/petalinux/components/yocto/source/aarch64". Proceed[Y/n]? Y
Extracting SDK.............................................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /home/work/petalinux/components/yocto/source/aarch64/environment-setup-aarch64-xilinx-linux
INFO: PetaLinux Yocto SDK for zynqMP has been successfully installed.
INFO: Installing PetaLinux zynq Yocto SDK to "/home/work/petalinux/./components/yocto/source/arm"...
PetaLinux Extensible SDK installer version 2017.2
=================================================
You are about to install the SDK to "/home/work/petalinux/components/yocto/source/arm". Proceed[Y/n]? Y
Extracting SDK.........................................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /home/work/petalinux/components/yocto/source/arm/environment-setup-cortexa9hf-neon-xilinx-linux-gnueabi
INFO: PetaLinux Yocto SDK for zynq has been successfully installed.
INFO: Installing PetaLinux microblaze (Full) Yocto SDK to "/home/work/petalinux/./components/yocto/
source/microblaze_full"...
PetaLinux Extensible SDK installer version 2017.2
=================================================
You are about to install the SDK to "/home/work/petalinux/components/yocto/source/microblaze_full". Proceed[Y/n]? Y
Extracting SDK.............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /home/work/petalinux/components/yocto/source/microblaze_full/
 environment-setup-microblazeel-v10.0-bs-cmp-mh-div-xilinx-linux
INFO: Installing PetaLinux microblaze (Lite) Yocto SDK to "/home/work/petalinux/./components/yocto/source/microblaze_lite"...
PetaLinux Extensible SDK installer version 2017.2
=================================================
You are about to install the SDK to "/home/work/petalinux/components/yocto/source/microblaze_lite". Proceed[Y/n]? Y
Extracting SDK.............................done
Setting it up...
Extracting buildtools...
done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
 $ . /home/work/petalinux/components/yocto/source/microblaze_lite/
  environment-setup-microblazeel-v10.0-bs-cmp-ml-xilinx-linux
INFO: PetaLinux Yocto SDK for microblaze has been successfully installed.
INFO: PetaLinux SDK has been installed to /home/work/petalinux/.


至此整个安装完成,中间等待过程比较长,所依赖的库按照xilinx的手册UG114提前安装好或在安装时提示缺少什么库在去安装。

work@ubuntu:~/petalinux$sudo dpkg-reconfigure dash  解决shell 没有更改成bash
[sudo] password for work: 
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'


work@ubuntu:~/petalinux$source settings.sh   
PetaLinux environment set to '/home/work/petalinux'
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services   ------>安装成功了,不容易啊.........



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值