Petalinux12.12EDK安装
硬件平台:sp605
电脑:双系统win7 + ubuntu14.4
在ubuntu平台下仅安装petalinuxSDK. ise安装在window平台下。
1.下载安装包文件
(1)petalinux-v12.12-final-full.tar.gz
(2)Xilinx-SP605-v12.12.bsp
(3)安装手册UG976(v2012.12) December 17,
以上文件都可以在下面的网址找到http://china.xilinx.com/support/download/index.html/content/xilinx/zh/downloadNav/petalinux.htm
2.安装petalinux-v12.12-final-full.tar.gz
将安装文件petalinux-v12.12-final-full.tar.gz拷贝到ubuntu桌面。
(1)安装:tarzxvf petalinux-v12.12-final-full.tar.gz
(2)将安装后的文件移动到合适的位置:mvpetalinux-v12.12-final-full /home/shanekong/petalinux
3.安装liscense文件
参考文档:UG798获取liscense文件
对于仅安装petalinuxSDK的情形,只需在当前用户的主目录下建一个文件夹.Xilinx,将Xilinx.lic文件放在这个文件目录下面。
Cd /home/shanekong
mkdir.Xilinx
move/home/shanekong/桌面/home/shanekong
当.Xilinx/Xilinx.lic不是放在正确的位置时,或者没有修改好.Xilinx/Xilinx.lic文件的权限时会出现下面的错误。
ERROR:No valid PetaLinux features! Typical causes for this error are
eitherthat there is no license file or that license files, which were
found,do not contain a valid license with the required feature.
4.设置petalinux的环境变量
cd/home/shanekong/petalinux
sourcesettings.sh
这时会出现一个liscenseagreement文件
按 enter键 进入, 按q退出
是否 支持agreement, y
LICENSEAGREEMENTS
PetaLinuxSDK contains software from a number of sources. Please review
thefollowing licenses and indicate your acceptance of each to continue.
Youdo not have to accept the licenses, however if you do not then youmay
notuse PetaLinux SDK.
UsePgUp/PgDn to navigate the license viewer, and press 'q' to close
PressEnter to display the license agreements
Doyou accept this license? [y/N] > y
Doyou accept this license? [y/N] > y
(1)这时会报错,提示有开发工具和库文件没有安装,参考UG976文件的最后部分:Requiredtools and libraries. 安装需要的工具和库文件。
比如:sudoapt-get install -y zlib1g-dev
(2)全部安装好后,重新设置petalinux的环境变量
5.安装BSP文件
(1)将bsp文件移动到petalinux的安装目录下:mv/home/shanekong/Xilinx-SP605-v12.12.bsp /home/shanekong/petalinux/
(2)安装bsp文件
cd/home/shanekong/petalinux/
petalinux-install-bspXilinx-SP605-v12.12.bsp
shanekong@shanekong-Precision-WorkStation-390:~/petalinux$petalinux-install-bsp Xilinx-SP605-v12.12.bsp
INFO:Processing BSP package 'Xilinx-SP605-v12.12.bsp'
INFO: BSP package contents:
*Xilinx-SP605-AXI-full-14.4
*Xilinx-SP605-AXI-lite-14.4
*Xilinx-SP605-PLB-full-14.4
*Xilinx-SP605-PLB-lite-14.4
INFO: Extracting package...
* Xilinx-SP605-AXI-full-14.4
* Xilinx-SP605-AXI-lite-14.4
* Xilinx-SP605-PLB-full-14.4
* Xilinx-SP605-PLB-lite-14.4
INFO: Updating BSP
INFO:Default BSP settings restored
INFO:Default BSP settings restored
INFO:Default BSP settings restored
INFO:Default BSP settings restored
INFO:BSP successfully installed.
参考文档:ug976