Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Quartus 10.0 on Lucid

This are only quick instructions and have not been tested on a clean system:

What works:

- quartus

- sopc builder

- programmer

- eclipse-nios2

What does not work yet:

- programming elf files from eclipse-nios2, I get:

"nios2-download: error: wrapper script can only download one file at a time"

and

Unable to find full path for "nios2-elf-g++"

Unable to find full path for "nios2-elf-gcc"

This are the steps I already did for version 9.1sp2:


$ sudo vi /etc/rc.local
#  Altera Quartus II usbfs support
mount --bind /dev/bus /proc/bus
ln -s /sys/kernel/debug/usb/devices /proc/bus/usb/devices
$ sudo vi /etc/udev/rules.d/51-usbblaster.rules
#  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"
$ sudo udevadm control --reload-rules

And this is what I had to do this time:


$ cd Downloads
$ sudo ln -sf /usr/lib/libXi.so.6.0.0 /usr/lib/libXi.so.6
$ sudo ln -sf bash /bin/sh
$ sudo bash 10.0_quartus_free_linux.sh
$ sudo bash 10.0_nios2eds_linux.sh
$ sudo bash 10.0_modelsim_ase_linux.sh
$ sudo ln -sf dash /bin/sh
$ sudo ln -sf /usr/lib/libXi.so.6.1.0 /usr/lib/libXi.so.6
export QUARTUS_ROOTDIR=/opt/altera/10.0/quartus
export SOPC_KIT_NIOS2=/opt/altera/10.0/nios2eds
export SOPC_BUILDER_PATH_100=/opt/altera/10.0/nios2eds
$ /opt/altera/10.0/quartus/bin/quartus
$ /opt/altera/10.0/nios2eds/bin/eclipse-nios2

The install script does not execute properly if /bin/sh is not bash (tchs would probably work too). I am not sure using the older libXi is necessary (you can find it somewhere on this forum)

Regards,

Iztok Jeras

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    is it necessary to change the /bin/sh link and also run bash <installer>.sh? doesn't running bash <installer>.sh override the shell on the hashbang?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks for the install tips, installed fine but am getting segment violation when running quartus_sh from versions 9.1 and 10. Suspect it's a libc issue. Currently running archlinux with

    bash$ /lib/libc.so.6 --version

    GNU C Library stable release version 2.12.1, by Roland McGrath et al.

    QIIv9.1 used to run fine, still does on another system with

    GNU C Library stable release version 2.3.2, by Roland McGrath et al.

    Copyright (C) 2003 Free Software Foundation, Inc.

    Anyone else hit this problem/got any suggestions?

    bty. I noticed from strace that quartus looks for /etc/redhat-release, /etc/Suse-release or /etc/fedora-release, hmm.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Quartus II 10.0 working on Fedora 13, and my libc is almost as new:

    $ /lib/libc.so.6 --version
    GNU C Library stable release version 2.12, by Roland McGrath et al.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Fixed the segment violation by creating /etc/fedora-release with suitable contents eg

    Fedora Core release 3 (Heidelberg)

    seems to have done the trick on ArchLinux.