红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Ubuntu

[疑问]ubuntu 安装quartus II 9.1

发布时间:2011-10-05 14:44:30来源:红联作者:waltt33
[i=s] 本帖最后由 waltt33 于 2011-10-5 14:46 编辑 [/i]

根据网上的教程在ubuntu10.10 上安装了quartus II 9.1sp2,安装破解完成后无法正常启动,但是和它一起安装的nios2eds可以正常启动。
以下是安装教程:
1. Prepare
Install tcsh and gcc:
In terminal as root:
sudo apt-get install tcsh gcc

2. Extract files and Install
Copy/download .tar files to some dir (e.g.: ~/altera_setups):
In terminal as user:
cd ~/altera_setups
tar -xvf 91_quartus_linux.tar
tar -xvf 91_modelsim_ae_linux.tar
tar -xvf 91_nios2eds_linux.tar
mkdir quartus_sp1
tar -C quartus_sp1 -xvf 91sp1_quartus_linux.tar
mkdir nios2_sp1
tar -C nios2_sp1 -xvf 91sp1_nios2eds_linux.tar
mkdir quartus_sp2
tar -C quartus_sp2 -xvf 91sp2_quartus_linux.tar
mkdir nios2_sp2
tar -C nios2_sp2 -xvf 91sp2_nios2eds_linux.tar

Install:
In terminal as root:
./quartus/install
./modelsim_ae/install
./nios2eds/install
./quartus_sp1/install_patch
./nios2_sp1/install_patch
./quartus_sp2/install_patch
./nios2_sp2/install_patch
When any of them ask you install path, specify
/opt/altera
Installation will take a long time, especially for quartus and quartus_sp1, sp2.

The programs will be installed in the following directories:
Quartus = /opt/altera/quartus
IP Megacore = /opt/altera/ip
Nios II EDS = /opt/altera/nios2eds
Modelsim = /opt/altera/modelsim

After installation, .tar and extracted dir can be deleted.
Or, you can
copy/download, extract, delete .tar, install, delete extracted dir, one by one,
for saving disk space. In this case, 14GB freespace is needed.

3. Crack
Do things as described in crack.txt.
rename the two license files to "license_quartus.dat" and "license_modelsim.dat",
copy the two license files to "/opt/altera".

4. Setup JTAG
The jtag port USB Blaster needs usbfs to work.
add/edit the following line in the file /etc/fstab:
usbfs /proc/bus/usb usbfs devmode=0666 0 0
This will automatically mount the usbfs to the location/proc/bus/usb on startup.
The mode will be set to 0666 which means that everyone can read/write the files that are created there.
Reboot needed, or you can mount it manually for this time:
In terminal as root:
mount /proc/bus/usb

Setup JTAG server:
In terminal as root:
mkdir /etc/jtagd
cp /opt/altera/quartus/linux/pgm_parts.txt /etc/jtagd/jtagd.pgm_parts
Add these lines to /etc/rc.local to start jtag server:
echo 356 40000 32 32000 > /proc/sys/kernel/sem
/opt/altera/quartus/bin/jtagd
Reboot needed, or you can start it manually for this time:
In terminal as root:
echo 356 40000 32 32000 > /proc/sys/kernel/sem
/opt/altera/quartus/bin/jtagd

Next, create an empty file in your home directory named ".jtag.conf".
In terminal as user:
touch ~/.jtag.conf

5. Setup NIOS Shell
create an executable script "altera" in "~/bin":
In terminal as user:
cd ~/bin
touch altera
chmod +x altera
then put these lines in "altera":
#!/bin/bash
# Run this for a Nios II SDK bash shell
export LM_LICENSE_FILE=/opt/altera/license_modelsim.dat
SOPC_KIT_NIOS2=/opt/altera/nios2eds
export SOPC_KIT_NIOS2
SOPC_BUILDER_PATH_91=/opt/altera/nios2eds
export SOPC_BUILDER_PATH_91
unset GCC_EXEC_PREFIX
QUARTUS_ROOTDIR=/opt/altera/quartus
export QUARTUS_ROOTDIR
export PERL5LIB=/usr/lib/perl/5.10.1
bash --rcfile $QUARTUS_ROOTDIR/sopc_builder/bin/nios_bash

6. Run
In terminal as user:
altera
This will open a Bourne-again shell (bash) with a pre-configured environment.

------------------------------------------------
Welcome To Altera SOPC Builder

Version 9.1, Built Mon Jan 25 21:50:57 PST 2010
------------------------------------------------

------------------------------------------------
Welcome to the Nios II Embedded Design Suite
Version 9.1, Built Mon Jan 25 23:46:37 PST 2010

Example designs can be found in
/opt/altera/nios2eds/examples

------------------------------------------------
(You may add a startup script: /opt/altera/nios2eds/user.bashrc)
~
[NiosII EDS]$

Now you can run quartus:
[NiosII EDS]$ quartus

Run nios2 IDE:
[NiosII EDS]$ nios2-ide

Or Run Eclipse for Nios2:
[NiosII EDS]$ eclipse-nios2

If quartus ask you the license file for the first run, specify existed file "license_quartus.dat".

7. Other

Quartus may crash before tooltip showing, altera has released patch "quartus_patch_9.1_0.46",
Use "Tooltip crash patch.tar.bz2" instead.

If modelsim can not automatically launch from quartus:
In quartus Tools - Options - General - EDA Tools Options
Change ModelSim-Altera's Loaction to "/opt/altera/modelsim_ae/linuxaloem"

You can find more usage of command line tools on section 2-4 of
Embedded Design Handbook(http://altera.com/literature/hb/nios2/edh_ed_handbook.pdf)
(highly recommended reading).

下面是quartus的启动画面:
[attach]36020[/attach]
另外一条错误信息是:
error while loading shared libraries: libccl_gen_sched_rh3_32bit.so: cannot open shared object file: No such file or directory
--
有什么好的解决方法吗,除了换发行版 :)
文章评论

共有 0 条评论