Difference between revisions of "Quartus II Installation"

From MCEWiki
Line 1: Line 1:
This page describes the proceedure for installing the latest version of Quartus II and the version of ModelSim AE that is available along with it.
+
If you are planning to use Altera-supplied hardware (e.g. USB-Blaster) to upgrade the MCE firmware, you need to install "'''Quartus Programmer'''" on either a Windows or Linux PC.
  
= Requirements =
 
https://www.altera.com/support/software/download/sof-download_center.html
 
  
= Quartus II for Windows=
+
See the OS requirements here: http://www.altera.com/download/os-support/oss-index.html <br>
* You may download a Linux or Windows-based Quartus programmer [[https://www.altera.com/download/programming/quartus2/pq2-index.jsp here]]
+
Download Quartus here: https://www.altera.com/download/programming/quartus2/pq2-index.jsp
* Alternatively:
 
** In a web browser, browse to ftp://ftp.altera.com/outgoing/release/
 
** Filenames to look for are of the form "91sp1_quartus_free.exe" if you don't have a license, or "91sp1_quartus_windows.exe" if you have a license.
 
* Double click on 'XX_quartus_windows.exe' and follow the extraction and installation instructions.
 
  
 +
Note that the installer needs direct access to Quartus website. In case you are behind a firewall, you may need to setup a proxy server.
 +
 +
= Quartus II for Windows =
 +
The installation is straight forward. After installation is complete, plug in the USB-Blaster and the driver is typically found under altera/10.0/quartus/driver.
 
= Quartus II for Linux =
 
= Quartus II for Linux =
A linux version of Quartus programmer is now available by Altera: [[https://www.altera.com/download/programming/quartus2/pq2-index.jsp here]]
+
As usual, only RedHat and Seuse are officially supported and you are on your own if you install it on any other Linux distribution. Here are few tips for installing Quartus on an Ubuntu machine:
Altera claims only to support Redhat/Suse but I think we can fool it. There were two major problems encountered:
 
  
=== Installation ===
+
== Ubuntu Installation tips ==
* The installer couldn't communicate with the Quartus web site
+
The installer couldn't find a few commands that typically exist on Fedora systems, notably ''arch'' and ''rpm''. You can create a fake version of these and copy them under /usr/bin.
** This was solved by setting up a stupid proxy relayer.  I don't know why it was necessary and I don't know why it worked.  The relay program is here:
+
* Create a script called ''arch'' that contains:  
  http://e-mode.phas.ubc.ca/~mhasse/mce/quartus_linux/prox.py
+
uname -m
* The installer couldn't find a few commands that typically exist on Fedora systems, notably "arch" and "rpm". Fake versions of these, suitable for tricking the Quartus installer, can be found here (put them in /usr/bin and make them executable):
+
* Create a script called ''rpm'' that contains:
  http://e-mode.phas.ubc.ca/~mhasse/mce/quartus_linux/rpm
+
#!/bin/bash
  http://e-mode.phas.ubc.ca/~mhasse/mce/quartus_linux/arch
+
OUT=/home/mce/rpm_cmd.txt
 
+
date >> $OUT
Once the installation completes, make a script to launch it (this is instead of giving into Quartus's whole path and environment configuration things...).  Create and make executable a script in the path, e.g.
+
echo $@ >> $OUT
 +
Make sure the permissions are set to executable.  
  
 +
Once the installation is complete, make a script to launch Quartus:
 
  sudo touch /usr/local/bin/quartus
 
  sudo touch /usr/local/bin/quartus
 
  sudo chmod a+x /usr/local/bin/quartus
 
  sudo chmod a+x /usr/local/bin/quartus
  
And fill it with:
+
and it should contain:
 
 
 
  #!/bin/bash
 
  #!/bin/bash
 
  XPWD=`pwd`
 
  XPWD=`pwd`
Line 38: Line 36:
 
Now you should be able to launch quartus just by typing "quartus" from a terminal.
 
Now you should be able to launch quartus just by typing "quartus" from a terminal.
  
=== License Manager ===
+
== License Manager ==
 +
If you have only installed Quartus Programmer, the following section does NOT apply to you. However, if you have installed the "Quartus Subscription Edition", then continue reading.
  
The license file that Altera sent us was incomplete. Change the top few lines from e.g.
+
You need to have a license file from Altera. The license file needs to be modified as follows. Change the top few lines from:
 
  SERVER <hostname> 001e90151053 <port number>
 
  SERVER <hostname> 001e90151053 <port number>
 
  VENDOR alterad <path to daemon executable>
 
  VENDOR alterad <path to daemon executable>
Line 51: Line 50:
 
  USE_SERVER
 
  USE_SERVER
  
Put the file in /opt/licenses/quartus_001e90151053.dat or something.
+
Copy the license file in /opt/licenses/quartus_001e90151053.dat  
  
In order to get a license manager going, I installed IDL.  This is overkill of some kind but it works.  The good thing is you don't need an IDL license to get the license manager to work.  After installing IDL, the license manager can be invoked as
+
The license manager can be invoked by:
  sudo /usr/local/rsi/idl71/bin/bin.linux.x86_64/lmgrd -c /opt/licenses/quartus_001e90151053.dat
+
  sudo /opt/altera10.0sp1/quartus/linux/lmgrd -c /opt/licenses/quartus_001e90151053.dat
  
You can put that line (without the sudo) into /etc/rc.local to get it to start whenever the computer boots.
+
You can add this line (without the sudo) into /etc/rc.local to get it to start whenever the computer boots.
  
 
When this works, it should spit out messages like this:
 
When this works, it should spit out messages like this:

Revision as of 16:07, 6 December 2010

If you are planning to use Altera-supplied hardware (e.g. USB-Blaster) to upgrade the MCE firmware, you need to install "Quartus Programmer" on either a Windows or Linux PC.


See the OS requirements here: http://www.altera.com/download/os-support/oss-index.html
Download Quartus here: https://www.altera.com/download/programming/quartus2/pq2-index.jsp

Note that the installer needs direct access to Quartus website. In case you are behind a firewall, you may need to setup a proxy server.

Quartus II for Windows

The installation is straight forward. After installation is complete, plug in the USB-Blaster and the driver is typically found under altera/10.0/quartus/driver.

Quartus II for Linux

As usual, only RedHat and Seuse are officially supported and you are on your own if you install it on any other Linux distribution. Here are few tips for installing Quartus on an Ubuntu machine:

Ubuntu Installation tips

The installer couldn't find a few commands that typically exist on Fedora systems, notably arch and rpm. You can create a fake version of these and copy them under /usr/bin.

  • Create a script called arch that contains:
uname -m
  • Create a script called rpm that contains:
#!/bin/bash
OUT=/home/mce/rpm_cmd.txt
date >> $OUT
echo $@ >> $OUT

Make sure the permissions are set to executable.

Once the installation is complete, make a script to launch Quartus:

sudo touch /usr/local/bin/quartus
sudo chmod a+x /usr/local/bin/quartus

and it should contain:

#!/bin/bash
XPWD=`pwd`
cd /opt/altera91/quartus/bin/
./quartus
cd $XPWD

Now you should be able to launch quartus just by typing "quartus" from a terminal.

License Manager

If you have only installed Quartus Programmer, the following section does NOT apply to you. However, if you have installed the "Quartus Subscription Edition", then continue reading.

You need to have a license file from Altera. The license file needs to be modified as follows. Change the top few lines from:

SERVER <hostname> 001e90151053 <port number>
VENDOR alterad <path to daemon executable>
VENDOR mgcld <path to daemon executable>
USE_SERVER

to

SERVER mce-ubc-2 001e90151053 1700
DAEMON alterad /opt/altera91/quartus/linux64/alterad
DAEMON mgcld /opt/altera91/modelsim_ase/linux/mgls/lib/mgcld
USE_SERVER

Copy the license file in /opt/licenses/quartus_001e90151053.dat

The license manager can be invoked by:

sudo /opt/altera10.0sp1/quartus/linux/lmgrd -c /opt/licenses/quartus_001e90151053.dat

You can add this line (without the sudo) into /etc/rc.local to get it to start whenever the computer boots.

When this works, it should spit out messages like this:

8:38:25 (lmgrd) Started alterad (internet tcp_port 52255 pid 28888)
8:38:25 (lmgrd) Started mgcld (internet tcp_port 54712 pid 28889)
8:38:25 (alterad) FLEXlm version 9.50
8:38:25 (alterad) lmgrd version 11.4, alterad version 9.5

8:38:25 (mgcld) FLEXnet Licensing version v10.8.5.0 build 31891 i86_r6
8:38:25 (mgcld) lmgrd version 11.4, mgcld version 10.8

8:38:25 (mgcld) Server started on mce-ubc-2 for:	alteramtivsim	
8:38:25 (mgcld) 
8:38:25 (mgcld) Licenses are case sensitive for mgcld
8:38:25 (mgcld) 
8:38:25 (mgcld) EXTERNAL FILTERS are OFF
8:38:25 (lmgrd) mgcld using TCP-port 54712
8:38:25 (alterad) Server started on mce-ubc-2 for:	maxplus2	
8:38:25 (alterad) quartus		6AF7_0012	6AF7_0014	
8:38:25 (alterad) 6AF7_0055	6AF7_00A7	6AF7_00A8	
8:38:25 (alterad) 6AF7_00A4	6AF7_0034	6AF7_00AC	
8:38:25 (alterad) 6AF7_00AD	6AF7_00BE	6AF7_00BF	
8:38:25 (alterad) 6AF7_00C2	maxplus2verilog maxplus2vhdl	
8:38:25 (alterad) altera_mainwin_lnx altera_mainwin	6AF8_00A2	
8:38:25 (alterad) 6AF7_00A2