Running Quartus on RedHat 9.0


 Andre Gompel (agompel AT premierhitech.com) is a consultant in the San Jose, California area.
 He is specialised in real time applications (ARM, TriCore, etc...), BSP, RTOS ports, low level...
 

 

October 2003: Altera's Quartus II (QII), for Linux is at this time only supported on RedHat 7, however it runs fine on RedHat 9 (RH9), this article provides the information for this, and should allow writing an automated script to install QII on RH9.

  1.  RH9 does not include the "uncompress utility", let's create a link for uncompress (as root/superuser):

        ln -s /bin/gunzip /bin/uncompress

  2.  Insert the Quartus II Version 3.0 for Linux Workstations CD In the CD reader
            

  3.  Mount CD on /mnt/cdrom (as root/superuser):

    This assumes that the file fstab is properly setup.

     mount /dev/cdrom 
            

  4.  cd to the proper directory

    cd /mnt/cdrom/unix
            

  5. Now run the Quartus install script. In this example, I installed QII on "/lico/quartus".

      ./install
            

  6.  Download the proper flexlm file for RedHat 9.0
    two files from www.macrovision.com
    lmgrd.Z  and lmutil.Z

    Uncompress them and install them (as root/su):

    gunzip lmgrd.Z
    gunzip lmutil.Z
    cp -v lmgrd  /bin
    cp -v lmutil /bin
            

  7.  After you got your license file from Altera.
     
    Line #1 : I modified the hostname ( command echo $HOSTNAME to get it).
    Line #2 : I added the alterad and its path.
    That's all, here is the file with my Ip Hardware address modified (for privacy).

    -----  FILE BEGIN ---------
    SERVER localhost.localdomain 00376540EB639 
    VENDOR alterad "/lico/quartus/linux/alterad"
    USE_SERVER
    FEATURE maxplus2 alterad 2003.11 28-nov-2003 1 60E28B1DFBD5 \
    SIGN="0EEB 7679 8A5C 1988 2098 082A 37BB 7CD2 E6D6 8E01 AF90 \
    4B09 4C4D 8213 CD10 1D0B 8073 7DB7 0748 73CE 4302 75D1 92DF \
    7278 2393 97E2 496F 3808 1552 360C"
    FEATURE quartus alterad 2003.11 28-nov-2003 1 A9A94242672F SIGN="0EB4 \
    81AC 0E35 235A EB5E 8117 D47D 882A E9A9 E206 B771 119B 612C \
    439D F887 194F 6091 8A16 D05A 04D1 F616 EE57 E5FC 71E9 AC67 \
    DEAD 9441 283E EB3C FD9C"
    FEATURE maxplus2verilog alterad 2003.11 28-nov-2003 1 4D2530F9DC9E \
    SIGN="08F5 38AD 1065 FF7B 9217 F672 68E5 3FFD B068 9AA7 2D41 \
    A078 FCC7 8CDE 8AC2 1AEC 9DED 0A37 35A1 AF7B 207D F208 9042 \
    8F89 C4C6 20F3 92CC 6C27 EAC8 E7F2"
    FEATURE maxplus2vhdl alterad 2003.11 28-nov-2003 1 7FAB461A8601 \
    SIGN="0B54 D34D 28F3 901B AB9D 9781 6134 EF01 56AF C48A 7849 \
    241D BFA5 C7E4 617B 0FE9 FCB2 F53D 5E52 802A E125 D39D 8DF0 \
    F002 C1DA 387F 56C8 32B2 58F1 9DA3"
    FEATURE altera_mainwin_lnx alterad 2003.11 28-nov-2003 1 4B9BDE63E31F \
    SIGN="1ACA 4EE0 1397 5DAC 96AC 604E D9B5 FCBB 42C5 8B3D 2F64 \
    95FB A3FD 6B3E 96B0 1DC5 C4C3 7A37 0E9E 4D89 88FD 899E DC09 \
    95F2 DA38 F9D5 7726 07D2 8B8D F680"
    ------  END OF FILE -------
            

  8.  Copy your license file as /usr/local/flexlm/licenses/license.lic
            

  9.  Create (as root) the file  /bin/quartus

    #!/bin/bash
    LD_ASSUME_KERNEL=2.2.5 /lico/quartus/bin/quartus $*
            

  10.  Make is executable. (still as root).
    chhmod +x  /bin/quartus
            

  11.  Start the licence manager daemon as user (avoid being logged as root):

    lmgrd -c -L /usr/local/flexlm/licenses/license.lic

    You will get a lot of lines and also an error message ("Incorrectly built
    binary which accesses errno, h_errno or _res directly. Needs to be fixed.").

    At the end you will see the servers started.
    -------- FEEDBACK BEGIN (I deleted some blank & comment lines) -----------
    17:15:15 (lmgrd) -----------------------------------------------
    17:15:15 (lmgrd)   Please Note:
    17:15:15 (lmgrd)   This log is intended for debug purposes only.
    17:15:15 (lmgrd)   There are many details in licensing policies
    17:15:15 (lmgrd)   that are not reported in the information logged
    17:15:15 (lmgrd)   here, so if you use this log file for any kind
    17:15:15 (lmgrd)   of usage reporting you will generally produce
    17:15:15 (lmgrd)   incorrect results.
    17:15:15 (lmgrd) -----------------------------------------------
    17:15:15 (lmgrd)
    17:15:15 (lmgrd) FLEXlm (v9.2 ) started on localhost.localdomain (linux) (10/14/2003)
    17:15:15 (lmgrd) Copyright (c) 1988-2003 by Macrovision Corporation. All rights reserved.
    17:15:15 (lmgrd) US Patents 5,390,297 and 5,671,412.
    17:15:15 (lmgrd) World Wide Web:  http://www.macrovision.com
    17:15:15 (lmgrd) License file(s): /usr/local/flexlm/licenses/license.dat
    17:15:15 (lmgrd) lmgrd tcp-port 27000
    17:15:15 (lmgrd) Starting vendor daemons ...
    Incorrectly built binary which accesses errno, h_errno or _res directly. 
    Needs to be fixed.
    17:15:15 (alterad) FLEXlm version 8.2a
    17:15:15 (lmgrd) Started alterad (internet tcp_port 34800 pid 8258)
    localhost.localdomain:andre:/home/andre %4
    17:15:15 (alterad) lmgrd version 9.2, alterad version 8.2
    17:15:15 (alterad) Server started on localhost.localdomain for: maxplus2
    17:15:15 (alterad) quartus              maxplus2verilog maxplus2vhdl
    17:15:15 (alterad) altera_mainwin_lnx
    ----------  END OF FEEDBACK -------------

    The error message indicates moslikely that the file "alterad" needs to be
    recompiled with the latest libraries, but it does not seem to preven running
    quartus.
            

  12.  Verify that everything is and the daemon is running:
        This assume that HOSTNAME is set (normally the case).

    lmutil lmstat -a -c $HOSTNAME

    ---- FEEDBACK BEGIN   (I deleted most blank lines) --------
    lmutil - Copyright (c) 1989-2003 by Macrovision Corporation. All rights reserved.
    Flexible License Manager status on Tue 10/14/2003 17:22
    License server status: 27000@localhost.localdomain
        License file(s) on localhost.localdomain:
    /usr/local/flexlm/licenses/license.dat:
    localhost.localdomain: license server UP (MASTER) v9.2
    Vendor daemon status (on localhost.localdomain):
       alterad: UP v8.2
    Feature usage info:
    Users of maxplus2:  (Total of 1 license issued;  Total of 0 licenses in use)
    Users of quartus:  (Total of 1 license issued;  Total of 0 licenses in use)
    Users of maxplus2verilog:  (Total of 1 license issued;  Total of 0 licenses in use)
    Users of maxplus2vhdl:  (Total of 1 license issued;  Total of 0 licenses in use)
    Users of altera_mainwin_lnx:  (Total of 1 license issued;  Total of 0 licenses in use
    ---- FEEDBACK END ---------
            

  13.  If everything works ok, then add the following line at the end of file /etc/rc.local 
        to run the license manager daemon at boot time:

    lmgrd -c -L /usr/local/flexlm/licenses/license.lic
            

  14.  Now you may  run quartus.

    quartus

    The splash screen and the rest then should come, and the real work only start.
            

  15.  Notes:

    a) With this procedure, there is no need to setup the LM_LICENSE_FILE
    environment variable.

    b) To check that the lmgrd daemon is running you may use ps/grep as:

    ps -ax | grep -i lmgrd

    c) To verify your hostname is valid, you may just ping it:

    ping $HOSTNAME

    d) To know you NIC (ethernet card/chip) address:

    /sbin/ifconfig eth0