Quartus 90 for linux 在Ubuntu9.04上安装指南

(1)Altera 官方网站上下载quartus9.0 installer

https://www.altera.com/support/software/download/altera_design/quartus_sub/dnl-quartus_sub.jsp

(2)安装tcsh
---------------
sudo apt-get install tcsh
---------------

(3)切换用户权限至root
---------------
su root
---------------

(4)运行下载,安装向导
-----------------------
bash 90_altera_webinstall.sh
-----------------------------
(5)根据安装向导进行下载和安装
默认安装目录为/opt/altera90/quartus
(6)导入license,将license放在quartus安装目录下或者调用服务器上的license
(7)修改环境变量
修改/etc/下 bash.bashrc文件,将以下内容添加进去。
-------------------------------------------------------------------
## Altera Quartus environment variables

QUARTUS_64BIT=0
MWOS=linux
MWARCH=i86
QUARTUS_MWWM=allwm
export LM_LICENSE_FILE=<license存放目录>/license.dat
export QUARTUS_ROOTDIR=/opt/altera9.0/quartus
source /opt/altera9.0/nios2eds/env.sh
export PATH=$PATH:$QUARTUS_ROOTDIR/bin:$QUESTA_HOME/questasim/linux
export PATH=$PATH:$SOPC_KIT_NIOS2/bin:$SOPC_KIT_NIOS2/bin/nios2-gnutools/H-i686-pc-linux-gnu/bin
-------------------------------------------------------------------

修改完成之后
-------------------------------
source bash.bashrc
------------------------------
(7)运行quartus
------------------------------------------------------
cd /opt/altera90/quartus
./quartus
------------------------------------------------------

(8)安装usb blaster
step1:

Tell Ubuntu to let normal users use the USB blaster

1) Create a new file at sudo udevadm control --reload-rules
------------------------------------------------
sudo touch /etc/udev/rules.d/51-usbblaster.rules
sudo gedit /etc/udev/rules.d/51-usbblaster.rules
------------------------------------------------

2) Put this in it:
---------------------------------------------------------------------------------------------------------------------------------------------------------
# Altera USB-Blaster rule to set mode to 666.
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6001", MODE="0666", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", RUN+="/bin/chmod 0666 %c"
------------------------------------------------------------------------------------------------------------------------------------------------------------

3) Save and close.
4) Run "sudo udevadm control --reload-rules".
---------------------------------------
sudo udevadm control --reload-rules
--------------------------------------
5)and in your home folder create an empty file named .jtag.conf and plug in the USB Blaster cable
-----------------------
touch /root/.jtag.conf
----------------------


step2:
Should the SYMLINK created by udev not be picked up, then you may try this method:
--------------------------------------------------
sudo mount -t usbfs /dev/bus/usb/ /proc/bus/usb/
killall jtagd
sudo <quartus install path>/bin/jtagd
jtagconfig
-----------------------------------------------------

step3:
 Set-up "usbfs" emulation (see Ubuntu bug #156085 for the history behind this, if you're curious)

1) Open /etc/init.d/mountdevsubfs.sh as root ("sudo gedit /etc/init.d/mountdevsubfs.sh" from a terminal)
2) Scroll down to the part that reads "domount devpts ..."
3) Add this after that line:
--------------------------------------------------------------------------------------------------------------
#
        # Magic to make /proc/bus/usb work
        #
        mkdir -p /dev/bus/usb/.usbfs
        domount usbfs "" /dev/bus/usb/.usbfs usbfs -obusmode=0700,devmode=0600,listmode=0644
        ln -sf .usbfs/devices /dev/bus/usb/devices
        mount --rbind /dev/bus/usb /proc/bus/us
-------------------------------------------------------------------------------------------------------------
4) Save and close.
5) Run "sudo /etc/init.d/mountdevsubfs.sh start"


It's now configured! Connect your USB blaster (or remove and reconnect if it's already in) and then launch Quartus. It should now be selectable in Tools -> Programmer -> Hardware Setup.

/Files/zhangzhi/Qurar.rar

posted on 2009-09-19 10:00  Homography Matrix  阅读(2067)  评论(0编辑  收藏  举报

导航