cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

Quartus for Debian Wheezy

Quartus for Debian Wheezy



Installation of Quartus on Debian Wheezy amd64 (Testing) from 13.12.2011

1. Install used library’s and tools

aptitude install ia32-libs ia32-libs-gtk libxerces-c28 zsh

2. Extract Quartus

./11.1sp1_216_quartus_free_linux.sh --noexec

3. Edit setup file

Edit first line of ./11.1sp1_216_quartus_free_linux/setup.sh

#! /bin/zsh

4. Add missing locales

dpkg-reconfigure locales -> Select all en_US

5. Setup Quartus

cd ./11.1sp1_216_quartus_free_linux/

./setup.sh

6. Stupid hack because altera forgot some libraries...

cd altera/11.1sp1/quartus/

cp /usr/lib/libxerces-c.so.28.0 linux64/libaxerces-c.so.26

cp /usr/lib/libxerces-c.so.28.0 linux64/libaxerces-c.so

cp /usr/lib/libicudata.so.48 linux64/libicudata.so.34

cp /usr/lib/libicuuc.so.48.1.1 linux64/libicuuc.so.34

7. Add group blaster and add user to group

addgroup blaster

adduser username blaster

8. Setup udev for USB-Blaster

-> http://www.altera.com/download/drivers/dri-usb_b-lnx.html (Changed for use of group / new udev)

Add the following lines to the /etc/udev/rules.d/51-usbblaster.rules file:

# USB-Blaster

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6001", GROUP="blaster"

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6002", GROUP="blaster"

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6003", GROUP="blaster"


# USB-Blaster II

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6010", GROUP="blaster"

SUBSYSTEM=="usb", ATTR{idVendor}=="09fb", ATTR{idProduct}=="6810", GROUP="blaster"


# BeMicro

SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="a4a0", GROUP="blaster"

9. (Optional) BeMicro Driver

Download driver from: http://www.arroweurope.com/markets-solutions/solutions/bemicro/bemicro.html -> Download Reference Design

Direct link: http://www.arroweurope.com/contact-us/bemicro-reg-thank-you.html

Extract the Archive and copy the driver:

cp driver/linux-x86_64/libjtag_hw_arrow.so altera/11.1sp1/quartus/linux64/

10. Paths

Add the folowing lines to your ~/.profile:

export QUARTUS_ROOTDIR="$HOME/altera/11.1sp1/quartus"

export QUARTUS_ROOTDIR_OVERRIDE="$QUARTUS_ROOTDIR"

export PATH=$PATH:"$HOME/altera/11.1sp1/quartus/bin"

export PATH=$PATH:"$HOME/altera/11.1sp1/nios2eds/bin"

export PATH=$PATH:"$HOME/altera/11.1sp1/modelsim_ase/bin"

Now you should log out and log in again. Then you can call all commands from a terminal. It is also possible to add the programs to the menue of Gnome. quartus and eclipse-nios2 works but vsim has to be called this way:

xterm -e vsim

11. GTK_PATH

If you get errors like:

Gtk-Message: Failed to load module "canberra-gtk-module": /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so: wrong ELF class: ELFCLASS64

GTK_PATH has to be set for the 32-Bit librarys. But this doesn't work global in .profile because then 64-Bit programs have problems. So the best way is to create startup scripts for quartus and eclipse-nios2 in ~/bin/:

#! /bin/sh

export GTK_PATH=/usr/lib32/gtk-2.0

~/altera/11.1sp1/quartus/bin/quartus

#! /bin/sh

export GTK_PATH=/usr/lib32/gtk-2.0

~/altera/11.1sp1/nios2eds/bin/eclipse-nios2


12. Fix for sof2flash, elf2flash, elf2hex, bin2flash

These scripts are not compatible with dash, so modify the first line from #!/bin/sh to #!/bin/bash in the folowing files:

sof2flash elf2flash elf2hex bin2flash sh_jar.sh


Version history
Last update:
‎06-27-2019 12:46 AM
Updated by:
Contributors