QuartusforLinux

The latest Altera Design Software 9.1 SP1 will work on the following operating systems and versions:

  • Red Hat Enterprise Linux 5 (32 bit & 64 bit)
  • Red Hat Enterprise Linux 4 (32 bit & 64 bit)
  • SUSE 9 Enterprise Linux
  • CentOS 5

You may find step by step guide on Linux installation and usage from Redhat's doc .

If you are new to Linux, it is suggested that you start with Centos5 i386 32bit distro. It is possible to use other Linux distros, though it might take some effort. The procedures described here work with Ubuntu 8.04, Fedora 10, CentOS 5 and Suse 10.3. (see fix below or other distro)

[to do: we should prepare a page to setup for each distro, while the main page would be RHEL5/Centos5]

Setup Dependencies / Hardware

Make sure you have tcsh isntalled, otherwise install it, as root or via sudo

On Fedora,RHEL/Centos, 
yum install tcsh 
On Suse,
zypper install tcsh 
On Debian/Ubuntu, (via sudo)
apt-get install tcsh


On Ubuntu, check if the default shell is "bash" , (the default might be "dash", which won't work with install scripts)
ls -l /bin/sh
This should give "/bin/sh -> bash",
Otherwise, change it with,
sudo rm /bin/sh
sudo ln -s bash /bin/sh

followed by a logout and log back in again.

Download Quartus

Visit the Altera website and download the embeded design suites here. An Altera account is needed in order to download the files.

Download the linux versions and you should end up with the following files 91sp1_quartus_free_linux.tar, 91sp1_modelsim_ase_linux.tar, 91_nios2eds_linux.tar, 91sp1_nios2eds_linux.tar all in one directory.  Be sure to grab the service pack files as well.  The modelsim service pack is standalone so you don't need to download the modelsim 9.1 file just the service pack.

Now extract these files as follows:

tar xvf 91sp1_quartus_free_linux.tar
tar xvf 91sp1_modelsim_ase_linux.tar
tar xvf 91_nios2eds_linux.tar
mkdir nios2eds_sp1
tar -C nios2eds_sp1 -xvf 91sp1_nios2eds_linux.tar
Install Quartus

Next install these programs all to the same base directory.  Quartus and modelsim have the sp1 service pack built in while nios2eds doesn't so for that you need to override the default directory and instead install to /opt/alter9.1sp1.  Run the commands using sudo or as root.

quartus_free/install
modelsim_ase/install_st
nios2eds/install
nios2eds_sp1/install_patch

 This will install the programs in the following default directories :

Quartus        = /opt/altera9.1sp1/quartus
IP Megacore = /opt/altera9.1sp1/ip
Nios II EDS   = /opt/altera9.1sp1/nios2eds
Modelsim      = /opt/altera9.1sp1/modelsim

(Ed., we don't need "9.1sp1" numbered for each subdir when the parent dir already spelled it. while "nios2eds" and "ip" are more officially used by Altera.)

Setup Licence
If you have a valid license file, it should be /opt/licenses/license.dat, and begin with
SERVER localhost <your nic> 1800
VENDOR alterad "/opt/altera9.1sp1/quartus/linux/alterad"
VENDOR mgcld "/opt/altera9.1sp1/modelsim/modeltech/linuxaloem/mgls/lib/mgcld"


The license server will only recognize the NIC ID (MAC address) of the interface named "eth0"
You can change the name of your interface by modifying the file: "/etc/udev/rules.d/70-persistent-net.rules" and reboot.

Even if you  don't have the license to run quartus, you can still use other tools (such as jtag download and jtag debugger) for software development. Just ignore the license manager.

Setup JTAG

For RHEL5 or Centos5,

Create a file named /etc/udev/rules.d/51-usbblaster.rules and add the following
lines to it. Take note that after #USB-Blaster, all code must be in one line.

 

# USB-Blaster
BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6001",MODE="0666", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf /proc/bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", RUN+="/bin/chmod 0666 %c"

Next, create an empty file in your home directory named “.jtag.conf ”. 

touch ~/.jtag.conf

Setup NIOS Shell

Find out your system perl path. This is because the Altera perl lib didn't have all the modules reuqired to process PTF file.
eg, 
/usr/lib/perl5/5.10.0 on Fedora10,
/usr/lib/perl5/5.8.8 on Centos5.

Login as a user. Put these lines in a script file , say "n2sdk", in ~/bin dir. remember "chmod +x n2sdk".

#!/bin/bash
# Run this for a Nios II SDK bash shell
export LM_LICENSE_FILE=1800@localhost
SOPC_KIT_NIOS2=/opt/altera9.1sp1/nios2eds
export SOPC_KIT_NIOS2
SOPC_BUILDER_PATH_91=/opt/altera9.1sp1/nios2eds
export SOPC_BUILDER_PATH_91
unset GCC_EXEC_PREFIX
QUARTUS_ROOTDIR=/opt/altera9.1sp1/quartus
export QUARTUS_ROOTDIR
export PERL5LIB=/usr/lib/perl5/5.8.8 bash --rcfile $QUARTUS_ROOTDIR/sopc_builder/bin/nios_bash
Run Software

Open a shell terminal, enter "n2sdk". This will open a Bourne-again shell (bash) with a pre-configured environment.

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

Version 9.1sp1, Built Tue Oct 28 11:01:00 PDT 2008
------------------------------------------------

------------------------------------------------
Welcome to the Nios II Embedded Design Suite
Version 9.1sp1, Built Tue Oct 28 11:27:40 PDT 2008

Example designs can be found in
    /opt/altera9.1sp1/nios2eds/examples

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

 

Now you can run quartus, just enter "quartus" in this command shell.
[NiosII EDS]$ quartus

If quartus ask you the license file for the first run, enter "1800@localhost" .

You can find more usage of command line tools on section 2-4 of  Embedded Design Handbook (highly recommended reading).

Now, you can install nios2gcc tools and uClinux-dist. Build the uClinux kernel image.

Then plug in your USB Blaster, connect to your dev board (2C35 here).
You can try out the jtag port.

[NiosII EDS]$ jtagconfig
1) USB-Blaster [USB 5-1.2]
  020B40DD   EP2C35
[NiosII EDS]nios2-configure-sof
/opt/altera9.1sp1/nios2eds/examples/verilog/niosII_cycloneII_2c35/full_featured/
NiosII_cycloneII_2c35_full_featured.sof
Info: *******************************************************************
Info: Running Quartus II Programmer
Info:
Command: quartus_pgm --no_banner --mode=jtag -o
p;/opt/altera8.0/nios2eds/examples/verilog/niosII_cycloneII_2c35/full_featured/
NiosII_cycloneII_2c35_full_featured.sof
Info: Using programming cable "USB-Blaster [USB 5-1.2]"
Info: Started Programmer operation at Fri Dec  8 11:35:01 2006
Info: Configuring device index 1
Info: Device 1 contains JTAG ID code 0x020B40DD
Info: Configuration succeeded -- 1 device(s) configured
Info: Successfully performed operation(s)
Info: Ended Programmer operation at Fri Dec  8 11:35:04 2006
Info: Quartus II Programmer was successful. 0 errors, 0 warnings
    Info: Processing ended: Fri Dec  8 11:35:04 2006
    Info: Elapsed time: 00:00:22
[NiosII EDS$ nios2-download -g ~/uClinux-dist/images/zImage
Using cable "USB-Blaster [USB 5-1.2]", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 1016KB in 16.2s (62.7KB/s)
Verified OK Starting processor at address 0x04500000
[NiosII EDS$ nios2-terminal nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster [USB 5-1.2]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) Uncompressing Linux... Ok, booting the kernel. Linux version 2.6.Uncompressing Linux... Ok, booting the kernel.
Linux version 2.6.17-uc1 (hippo@darkstar) (gcc version 3.4.6) #46
PREEMPT Thu Dec 7 15:22:06 CST 2006


You can try out flash programmer, or add flash file conversion to your build script. Or run GDB debugger.
Happy hacking.

Miscellaneous Fixes

  1. If the Nios II EDS installer does not work, edit the install script at line 143 :
         From : x=${x/~/$HOME}
         To     : ##x=${x/~/$HOME}

  2. If the modelsim installer doesnt work, edit the install.ms script :
    At line 172 :
        From    : tar xfo {$script_path}/modeltech_altera_unix.tar
        To        : tar xfo {$script_path}/modeltech_altera_unix.tar --no-same-permissions
    At line 174 :
        From    : tar xfo {$script_path}/modeltech_altera_unix.tar $file1.Z $file2.Z $file3.Z
        To        : tar xfo {$script_path}/modeltech_altera_unix.tar $file1.Z $file2.Z $file3.Z --no-same-permissions

  3. If the SOPC builder keeps giving language error (minor problem). This is an issue with Perl. To fix it, type this in a terminal :
           cd /usr/lib/locale
           cp -r en_US.utf8 en_US


  4. To fix the “Unknown Linux Processor” issue, download the file 'arch' and put it in /bin. You will need administrator access to do this.

  5. Sometimes the Licences in Quartus menu will not open. This can be solved by copying the provided file 'libX11.so.6.2' into/opt/altera7.2/quartus/linux. You will need administrator privileges. Then type this in a terminal:
         cd /opt/altera7.2/quartus/linux
         sudo ln -s libX11.so.6.2 libX11.so.6
    6.  Sometimes the compilation may hang at the completion of one step in Quartus , (which might be caused by RPC bug). You can use command lines, in a shell script or Makefile.
           quartus_map $*
           quartus_fit $*
           quartus_asm $*
           quartus_sta $*

Old Info (Outdated)

To Install Quartus 8.1 look here:  Quartus8forLinux


The version of Linux distro is important. Some latest distro use udev, and need extra hacking, see Instalation on unsupported distributions. Though it is possible to use other Linux disto or version, it might be difficult for newbies.

To install Altera Design Software 7.2 in Ubuntu Linux, follow this step by step tutorial : Altera Software Installation Tutorial for Ubuntu.pdf
This tutorial show how to install all the tools including setting up usbfs for USB blaster. It might also apply for other Linux distros based on Debian. 


Tag page

Files 4

FileSizeDateAttached by 
 Altera Software Installation Tutorial for Ubuntu.pdf
No description
219.5 kB07:27, 6 Dec 2008AdminActions
 arch
No description
21 bytes07:27, 6 Dec 2008AdminActions
 install_download
No description
41.9 kB07:27, 6 Dec 2008AdminActions
 libX11.so.6.2
No description
759.16 kB07:27, 6 Dec 2008AdminActions
Viewing 14 of 14 comments: view all
jychen150 said, 02/06/2008: I was able to install Altera Quartus7.2 for Linux into Gentoo Linux. Before installing, do the following (as root): 1. Install tcsh by 2. Create emulation command for "arch" by creating file /bin/arch, containing the following: ==== Begin Cut Here === uname -m ==== End Cut Here ==== chmod a=rx /bin/arch Before using the commands such as "nios2-config-sof", "nios2-download", do the following as a work around to change USB port permission (as root): chmod -R 777 /proc/bus/usb Then start using the Altera tools with a regular user login.
Posted 07:25, 6 Dec 2008
abbotti said, 08/20/2008: Instead of "chmod -R 777 /proc/bus/usb", just add yourself to the "usb" group.
Posted 07:25, 6 Dec 2008
I have quartus 7.2 installed on Ubuntu 8.10 ,everything seems OK, except the SOPC builder, when i opened the SOPC builder window, a blank window shows up, with nothing in it, so i just can't use it to do anything, did anyone encounter this problem before? And how to work it out? PS: I'm a linux newbie,and i'm just at wit's end. Manythanks for any suggestions. Screenshot: http://s3.amazonaws.com/jef.mindtouch.com/10056244/197/0?AWSAccessKeyId=1TDEJCXAPFCDHW56MSG2&Signature=EWpIBDzTPrXzNieTqwV7HuamRak%3d&Expires=1230253484 (This problem MAY occure on Ubuntu 8.04, 8.10 or higher version, with compiz installed) After all, i tried to run sopc builder in a terminal and got lots of error message, begin with "locking assertion failure, tracing back" and i use this clue searched on internet. Finally got the answer, can't perfectly resolve the problem but better than nothing. 1, simplist way,choose Metacity as your window manager not compiz. because i have compiz installed on my laptop, and use compiz as the window manager, then sopc builder problem described before occure. but we really wronged compiz, when you open sopc builder in a terminal, error message still shows up, except a blank window, and you can't saw this error message when you using Quartus GUI window to call sopc builder, everything seems OK. 2, prevent the error message shows up in command line mode, but some costs. downgrade the libX11-6 package(on my Ubuntu 8.10) to Gusty version(libx11-6_1.1.1-1ubuntu4_i386.deb) and lock this package to prevent it from further updating. it may affects other programs that depend on a newer libX11 version. and you can't use compiz as your window manager anymore(on my laptop). 3, the same problem " locking assertion failure" may also occure when you using java related programs such as matlab, wish my state help. edited 07:20, 26 Dec 2008
Posted 01:04, 26 Dec 2008
---------- Can't connect with license server ------ Good tutorial, thanks man. I followed in in order to install Quartus II 8.1 in Ubuntu 8.10, kernel 2.6.27-9. However, Quartus II didn't find the license file and displayed the message "Can't connect with license server", even though "1800@localhost" was written in the LM_LICENSE_FILE field in the License Setup window. So, it is necessary to find the real server name of our computer. In a terminal, type "hostname" to have this name: >hostname maverick-desktop In my case, my hostname is maverick-desktop. In the license file, change the localhost for this name: SERVER maverick-desktop 1800 VENDOR alterad "/opt/altera8.1/quartus/linux/alterad" ... And that's it, type >quartus and we're ready for designing. I also found that is good to complement this tutorial with the Quartus II 7.2 installation guide (Altera Software Installation Tutorial for Ubuntu.pdf), which is pretty much the same. Bye. edited 05:49, 29 Dec 2008
Posted 05:48, 29 Dec 2008
Still cant fix the SOPC builder problem mentioned in comment #4. Where can I find the right package? How can I install it, if the upper version is already installed?
Posted 20:28, 17 Feb 2009
This is a touch-screen MP3 player example for the Nios II Embedded Evaluation Kit (NEEK). Both hardware and software source is included. The executables are also included so you can run the player without having to build the project. The file README.TXT includes instructions for running the example. University AND Online Special Education degree AND Teaching Assistant degree Online Teaching Assistant degree AND Human Resource Management degree
Posted 09:49, 1 Mar 2010
The latest The latest Altera Design Software 9.1 is so good to use. I have a this at work and it is so good. hartford asbestos lawyers
Posted 05:46, 4 Mar 2010
Wow! This is very complex consider to newbie such as me! I love working in gym, especially the ab machine, it is my favorite. Looks like I really need to spend extra time to learn quartus forLinux.
Posted 09:51, 8 Mar 2010
louis vuitton, which began proceedings against Ebay in louis vuitton neverfull 2006, said it had asked for $917,956 in damagesFor its part, When a certain number of badly spelt words similar to burberry sale often came up in search engines, the system allowed it to fake louis vuitton pay search engines such as Yahoo and Google to how to spot a fake louis vuitton, Ebay said the words were commercial links used in search engines to redirect consumers to Ebay to buy genuine louis vuitton goods.
Posted 01:20, 9 Mar 2010
his is a brilliant information. Thanks for the post ! harley davidson bedding|mikimoto pearl necklace
Posted 16:42, 9 Mar 2010
we will do our best to provide you the products ofreplica handbags herve leger dress Gucci Handbags Burberry Handbags Swiss Watch Brand Chanel Watchesand designer handbags,your satisfaction is what we wish !
Posted 04:56, 15 Mar 2010
Balenciaga Patent Leather Lune Large Tote 084441 Black 190.40 Balenciaga Patent Leather Lune Large Tote 084441 Blue 190.40 Balenciaga Patent Leather Lune Large Tote 084441 Brown 190.40 Balenciaga Patent Leather Giant Work Bag 084824 Lightblue 207.20 Balenciaga Patent Leather Giant Round Handbag 084440 183.20 Gucci GG fabric 'babouska' evening bag 207279 192.80 Chanel Genuine Leather Sheepskin Evening Clutch Purse Bag 351178 63.20 Chanel Genuine Leather Sheepskin Evening Clutch Purse Bag 351178 63.20 Chanel Quilted Leather Paris biarritz Medium Purse C 35459 White 161.60 Gucci GG fabric Babouska Large Top Handle Bag 207285 Yellow 200.00 Gucci GG fabric Babouska Medium Boston Bag 207297 White 161.60 Gucci GG fabric Babouska Medium Boston Bag 207297Color 161.60 Gucci GG fabric Babouska Medium Boston Bag 207297 Orange 161.60 Gucci GG fabric Babouska Medium Boston Bag 207297 Coffee 161.60 Gucci GG fabric Babouska Large Top Handle Bag 207285 White 200.00 Gucci GG fabric Babouska Large Top Handle Bag 207285 Off-white 200.00 Gucci GG fabric Babouska Medium Boston Bag 207297Color 161.60 Gucci GG fabric Babouska Medium Boston Bag 207297 Coffee 161.60 Gucci GG fabric Babouska Large Top Handle Bag 207285 White 200.00 Gucci GG fabric Babouska Large Top Handle Bag 207285 Red 200.00 Gucci GG fabric Babouska Medium Boston Bag 207297Color 161.60 Gucci GG fabric Babouska Medium Boston Bag 207297 Orange 161.60 Gucci GG fabric Babouska Medium Boston Bag 207297 Coffee 161.60 Gucci GG fabric Babouska Large Top Handle Bag 207285 White 200.00 Gucci GG fabric Embossed Leather Small Shoulder Bag 211964 Yello 159.20 Gucci GG fabric 'Jolie' Medium Tote Bag 211971 Coffee 135.20 Gucci GG fabric Embossed Shoulder Bag 211963 Black 157.60 Gucci GG fabric Embossed Leather Small Shoulder Bag 211964 Black 159.20
Posted 05:22, 15 Mar 2010
Thanks for sharing.. OFDM upconverter and downconverter . How to make USB
Posted 07:01, 19 Mar 2010
Wholesale air jordans, Women's MBT Shoes, nike shox, air max 90, youth NFL jerseys, nfl jerseys, boots, jordan sneakers from our online store, free shipping and accept paypal! Welcome customers to negotiate business and establish long-term friendly cooperation relationships with us in the near future.
Posted 05:48, 22 Mar 2010
Viewing 14 of 14 comments: view all
You must login to post a comment.
SourceForge.net