【Linux软件安装】Ubuntu12.04: Xilinx ISE 14.6

http://blog.csdn.net/yunz1994/article/details/12350071

这个讲的很好!


1、从官网下载ISE


到官网注册,然后下载linux版本的ISE14.7。
链接:http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/design-tools.html
到官网注册,然后下载linux版本的ISE。
链接:http://www.xilinx.com/support/download/index.html/content/xilinx/en/downloadNav/design-tools.html

2、解压


一定要在linux下解压

[python] view plain copy print ?
  1. $ sudo tar xvf Xilinx_ISE_DS_Lin_14.6_P.68d_3.tar  
  2. [sudo] password for yunz:  
  3. #unpakging...... 
  4. $ cd Xilinx_ISE_DS_Lin_14.6_P.68d_3
  5. $ ls 
  6. bin     data  idata  labtools  msg        planahead_wp  webpack  xsetup 
  7. common  edk   ise    lib       planahead  sysgen        xinfo 
  8. $ sudo chmod +x xsetup     //用这种方法反复安装都不对,最后采用另外一个xsetup文件就可以了(bin目录下的32位安装)。
  9. $ ./xsetup 
$ sudo tar xvf Xilinx_ISE_DS_Lin_14.6_P.68d_3.tar 
[sudo] password for yunz: 
#unpakging......
$ cd Xilinx_ISE_DS_Lin_14.6_P.68d_3/
$ ls
bin     data  idata  labtools  msg        planahead_wp  webpack  xsetup
common  edk   ise    lib       planahead  sysgen        xinfo
$ sudo chmod +x xsetup
$ ./xsetup

3、安装


下面就是图形界面安装了,和windows下没什么不同

【Linux软件安装】Ubuntu12.04: Xilinx ISE 14.6_第1张图片

但要注意到这里的时候

【Linux软件安装】Ubuntu12.04: Xilinx ISE 14.6_第2张图片

不要点选

[python] view plain copy print ?
  1. Install cable drivers 
Install cable drivers

直接点Next

记下Install summary

[plain] view plain copy print ?
  1. Install Location(s): 
  2. /usr/14.6/ISE_DS 
  3. Edition : ISE Design Suite System Edition 
  4. Option: Acquire or Manage a License Key 
  5.  
  6. ISE DS Common 
  7. Install Location: /usr/14.6/ISE_DS/common 
  8. Module: ISE DS Common 
  9.  
  10. EDK 
  11. Install Location: /usr/14.6/ISE_DS/EDK 
  12. Module: EDK 
  13.  
  14. PlanAhead Analysis Tool 
  15. Install Location: /usr/14.6/ISE_DS/PlanAhead 
  16. Module: PlanAhead Common Files 
  17. Option: setupEnv.sh 
  18.  
  19. ISE 
  20. Install Location: /usr/14.6/ISE_DS/ISE 
  21. Module: Design Environment Tools 
  22. Module: WebPACK Devices 
  23. Module: Edition Devices 
  24. Option: Ensure Linux System Generator Symlinks 
  25. Option: Install Linux System Generator Info XML 
  26. Option: Configure WebTalk 
  27. Option: Enable WebTalk to send software, IP and device usage statistics to Xilinx (Always enabled for WebPACK license) 
  28.  
  29. System Generator 
  30. Install Location: /usr/14.6/ISE_DS/SysGen 
  31. Module: System Generator 
  32. Option: Version Equalizer 
Install Location(s):
/usr/14.6/ISE_DS
Edition : ISE Design Suite System Edition
Option: Acquire or Manage a License Key

ISE DS Common
Install Location: /usr/14.6/ISE_DS/common
Module: ISE DS Common

EDK
Install Location: /usr/14.6/ISE_DS/EDK
Module: EDK

PlanAhead Analysis Tool
Install Location: /usr/14.6/ISE_DS/PlanAhead
Module: PlanAhead Common Files
Option: setupEnv.sh

ISE
Install Location: /usr/14.6/ISE_DS/ISE
Module: Design Environment Tools
Module: WebPACK Devices
Module: Edition Devices
Option: Ensure Linux System Generator Symlinks
Option: Install Linux System Generator Info XML
Option: Configure WebTalk
Option: Enable WebTalk to send software, IP and device usage statistics to Xilinx (Always enabled for WebPACK license)

System Generator
Install Location: /usr/14.6/ISE_DS/SysGen
Module: System Generator
Option: Version Equalizer

4、注册Xilinx帐号,申请licence


      licence会自动发到注册邮箱里,下载下来,记住路径。


5、打开ISE,要先运行一个shell

[plain] view plain copy print ?
  1. $ cd ~/Xilinx_ISE_14_6/14.6/ISE_DS 
  2. $ ls 
  3. common  EDK  ISE  PlanAhead  settings32.csh  settings32.sh  SysGen 
  4. $ source settings32.sh 
  5. . /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/common/.settings32.sh /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/common 
  6. . /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/EDK/.settings32.sh /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/EDK 
  7. . /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/PlanAhead/.settings32.sh /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/PlanAhead 
  8. . /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/ISE/.settings32.sh /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/ISE 
  9. $ ise 
$ cd ~/Xilinx_ISE_14_6/14.6/ISE_DS
$ ls
common  EDK  ISE  PlanAhead  settings32.csh  settings32.sh  SysGen
$ source settings32.sh
. /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/common/.settings32.sh /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/common
. /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/EDK/.settings32.sh /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/EDK
. /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/PlanAhead/.settings32.sh /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/PlanAhead
. /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/ISE/.settings32.sh /home/yunz/Xilinx_ISE_14_6/14.6/ISE_DS/ISE
$ ise

(忽略出现的关于 licence 的 error。)


6、导入licence


Help >> Manage License >> Manage Xilinx License >> Load License   我安装14.2的时候,在该对话框中会显示添加该license的路径,要添加到它提示的路径中才可以,linux系统添加到usr/local中即可,提示的是添加到usr/local/flexlm,flexlm文件没找到,我直接添加到上一路径,经验证,可用。

还有一个问题,我的ISE HELP中的命令都用不了,总是达不到license添加的对话框,最后在ISE_DS\COMMON\BIN\..\xlcm 中打开了license添加的对话框。

把刚才下好的 licence 导入。

至此,ISE 安装就告一段落。

(4、5步的顺序可以随机应变,也可以先打开ISE 然后根据 license 的提示 先 获取(acq)再管理(man)导入(load))


7、可能出现的错误及其他问题


1)运行 ./setup 时可能出现以下问题:

[plain] view plain copy print ?
  1. $ cd Downloads/  
  2. $ ls  
  3. TLF-SOFT-Mathworks.Matlab.R2010a.UNIX.ISO-TBE.iso   Xilinx_ISE_DS_Lin_14.6_P.68d_3  
  4. $ cd Xilinx_ISE_DS_Lin_14.6_P.68d_3/  
  5. $ ls  
  6. bin data idata labtools msg planahead_wp webpack xsetup common edk ise lib planahead sysgen xinfo  
  7. $ ./xsetup  
  8. ./xsetup: 30: ./xsetup: ./bin/lin/xsetup: Permission denied  
$ cd Downloads/ 
$ ls 
TLF-SOFT-Mathworks.Matlab.R2010a.UNIX.ISO-TBE.iso   Xilinx_ISE_DS_Lin_14.6_P.68d_3 
$ cd Xilinx_ISE_DS_Lin_14.6_P.68d_3/ 
$ ls 
bin data idata labtools msg planahead_wp webpack xsetup common edk ise lib planahead sysgen xinfo 
$ ./xsetup 
./xsetup: 30: ./xsetup: ./bin/lin/xsetup: Permission denied 

以下是从Xilinx社区找到的

[plain] view plain copy print ?
  1. Q: 
  2. Hi all 
  3. I made all procedure mentioned by acleone, but it dosenot work. 
  4. Here is my script as mentioned in this post: 
  5.  
  6. cd Xilinx_ISE_DS_Lin_12.1_M.53d.0.4/ 
  7. sudo ./xsetup 
  8. sudo: ./xsetup: command not found 
  9.  
  10. Then I tried: 
  11.  
  12. sudo bash xsetup 
  13. xsetup: line 25: ./bin/lin/xsetup: Permission denied 
  14.  
  15. And also tried: 
  16.  
  17. sudo dash xsetup 
  18. xsetup: 32: ./bin/lin/xsetup: Permission denied 
  19.  
  20. I am using Ubuntu 10.04 LTS on 32-bit machine.can anyone help me? 
Q:
Hi all
I made all procedure mentioned by acleone, but it dosenot work.
Here is my script as mentioned in this post:

cd Xilinx_ISE_DS_Lin_12.1_M.53d.0.4/
sudo ./xsetup
sudo: ./xsetup: command not found

Then I tried:

sudo bash xsetup
xsetup: line 25: ./bin/lin/xsetup: Permission denied

And also tried:

sudo dash xsetup
xsetup: 32: ./bin/lin/xsetup: Permission denied

I am using Ubuntu 10.04 LTS on 32-bit machine.can anyone help me?
[plain] view plain copy print ?
  1. A1:Are you doing this from a section of your drive where you have write permission?  
  2. The Xilinx setup software needs to be able to write to wherever it  
  3. is being launch from. This makes for a hard time installing from the CD directly :) If that's what you were trying to do, copy the contents of the  
  4. CD/DVD to your hard drive first. 
A1:Are you doing this from a section of your drive where you have write permission? 
The Xilinx setup software needs to be able to write to wherever it 
is being launch from. This makes for a hard time installing from the CD directly :) If that's what you were trying to do, copy the contents of the 
CD/DVD to your hard drive first.
[plain] view plain copy print ?
  1. A2(他自己找到了原因和方法): 
A2(他自己找到了原因和方法):
[plain] view plain copy print ?
  1. Thank you  jonathan.ross. 
  2. I've found the error finally. 
  3.  
  4.  
  5. I had to extract the tar file "Xilinx_ISE_DS_Lin_12.1_M.53d.0.4.tar" in the linux platform in order to keep all files properties and permissions, then  
  6. setup the ISE. 
  7. Instead, I extracted it using winrar in Windows platform and then tried to setup the ISE (but the Wimdows did not keep the files' special permissions a 
  8. nd properties used by linux systems),so I was not able to setup the ISE. 
Thank you  jonathan.ross.
I've found the error finally.


I had to extract the tar file "Xilinx_ISE_DS_Lin_12.1_M.53d.0.4.tar" in the linux platform in order to keep all files properties and permissions, then 
setup the ISE.
Instead, I extracted it using winrar in Windows platform and then tried to setup the ISE (but the Wimdows did not keep the files' special permissions a
nd properties used by linux systems),so I was not able to setup the ISE.

2)如果在安装时选了 Install cable driver 会报错

[plain] view plain copy print ?
  1. #Driver installation failed. Please check the /.xinstall/install.log file for 
#Driver installation failed. Please check the /.xinstall/install.log file for

原因如下:

[plain] view plain copy print ?
  1. ISE在很多其他版本的LINUX上的安装和运行其实是毫无问题的,唯一的问题就是下载线的驱动在有些LINUX上无法工作。继续深入研究,发现,下载线的驱动在某些linux下不工作的唯一原因是:目前,下载线的驱动依赖于一个叫windrvr的文件。 而该文件目前只有linux 内核2.4的二进制版本,因此遇到2.6内核的linux发布版,如高版本的CentOS或高版本的ubuntu, 就不工作了。  
  2.  
  3.  
  4. 好在一个叫Michael Gernoth的德国人,大公无私地写了一个windrvr的替代版本,并且开放源码,这样,无论碰到什么版本的内核, 
  5. 现场编译一个驱动并安装, 就能解决linux内核版本匹配的问题。 源代码包在这里: git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver  
  6. 解开压缩包,编译的时候,只需要make就行了,当然,第一次make八成是不过的,因为一般人都不会在ubuntu上预装usb开发包, 
  7. 需要装一下,只需要这样就可以了: sudo apt-get install libusb-dev make完了以后,应该看到libusb-driver.so被生成了。  
  8. 当然,编译完还需要设环境量, 命令是,export LD_PRELOAD=/你的路径/libusb-driver.so ,为简单起见, 
  9. 可以把这个命令加你的.bashrc里,这样,下一次开一个终端时,就不用手工设了。 你的linux用户需要进入lp组以便有权限, 
  10. 最简单的方法是编辑/etc/group, 把你的用户名加到lp组后面就可以了。 这样,在纯ubuntu上跑xilinx 的问题基本宣告解决。  
ISE在很多其他版本的LINUX上的安装和运行其实是毫无问题的,唯一的问题就是下载线的驱动在有些LINUX上无法工作。继续深入研究,发现,下载线的驱动在某些linux下不工作的唯一原因是:目前,下载线的驱动依赖于一个叫windrvr的文件。 而该文件目前只有linux 内核2.4的二进制版本,因此遇到2.6内核的linux发布版,如高版本的CentOS或高版本的ubuntu, 就不工作了。 


好在一个叫Michael Gernoth的德国人,大公无私地写了一个windrvr的替代版本,并且开放源码,这样,无论碰到什么版本的内核,
现场编译一个驱动并安装, 就能解决linux内核版本匹配的问题。 源代码包在这里: git.zerfleddert.de/cgi-bin/gitweb.cgi/usb-driver 
解开压缩包,编译的时候,只需要make就行了,当然,第一次make八成是不过的,因为一般人都不会在ubuntu上预装usb开发包,
需要装一下,只需要这样就可以了: sudo apt-get install libusb-dev make完了以后,应该看到libusb-driver.so被生成了。 
当然,编译完还需要设环境量, 命令是,export LD_PRELOAD=/你的路径/libusb-driver.so ,为简单起见,
可以把这个命令加你的.bashrc里,这样,下一次开一个终端时,就不用手工设了。 你的linux用户需要进入lp组以便有权限,
最简单的方法是编辑/etc/group, 把你的用户名加到lp组后面就可以了。 这样,在纯ubuntu上跑xilinx 的问题基本宣告解决。 

Installing Cable Drivers


1、Install the prerequisite


[plain] view plain copy print ?
  1. On 32-bit 
  2. $ sudo apt-get install gitk git-gui libusb-dev build-essential libc6-dev fxload 
  3. On 64-bit 
  4. $ sudo apt-get install gitk git-gui libusb-dev build-essential libc6-dev-i386 fxload 
On 32-bit
$ sudo apt-get install gitk git-gui libusb-dev build-essential libc6-dev fxload
On 64-bit
$ sudo apt-get install gitk git-gui libusb-dev build-essential libc6-dev-i386 fxload

2、Download the driver source and install

[plain] view plain copy print ?
  1. $ cd ~/Xilinx_ISE_14_6 
  2. $ sudo sudo git clone git://git.zerfleddert.de/usb-driver 
  3. Cloning into 'usb-driver'... 
  4. $ cd cd usb-driver/ 
  5. $ sudo make 
$ cd ~/Xilinx_ISE_14_6
$ sudo sudo git clone git://git.zerfleddert.de/usb-driver
Cloning into 'usb-driver'...
$ cd cd usb-driver/
$ sudo make


......
(未完待续)




参考:                  终于搞定ISE在虚拟机Virtualbox上ubuntu的下载线XILINX Platform Cable USB II的驱动

                             Linux操作系统下三种配置环境变量的方法

                             linux-fpga系列文章之——如何在ubuntu下安装FPGA usb cable的驱动

                             Xilinx ISE WebPack 12.2 on Ubuntu 10.04 LTS

                             Ubuntu下运行XILINX ISE

                             ubuntu上安装xilinx 14.1及注意事项

                             Ubuntu 12 下面安装Xilinx ISE 14.1

                             在Ubuntu 11.04 上安装Xilinx ISE 13.1指南,附出错的改正方法

                             Ubuntu 12.04下给xilinx ISE 12.04加了个launcher

                             Ubuntu上跑XILINX的ISE/EDK以及petalinux的总结

                             Ubuntu 12 下面安装Xilinx ISE 14.1

                             Install Xilinx ISE on the Ubuntu

你可能感兴趣的:(linux,xilinx,FPGA)