Usually when make no progress in solving problems in study, I may play games like League of Legends or Age of Empires. The total time spent on those things in the past few months is so much. Therefore I use Ubuntu 12.04 instead of Windows 7 as often as possible to reduce the opportunity to touch the games. Here record the steps needed for installing Altera Quartus 12.1.
- Download the software from https://www.altera.com/download/software/quartus-ii-se. Note that two or more files are needed. One is the Quartus software, and the others are device support files. Since the FPGA used is Cyclone II, only two files are needed for me.
- Extract the files from the archives.
tar zxvf 12.1_quartus_linux.tar.gz tar zxvf 12.1_devices_cyclone_max_legacy_linux.tar.gz
- Start the installer
sudo ./12.1_quartus_linux/altera_installer/bin/altera_installer_gui --gui
- The installer will ask locations twice. The first one is the location of the files used by the installer, whose folder can be removed after the installation, and the other is the destination. The device file is similar, but the destination must be the same as the previous one.
- After finishing the installation, it is time to set the USB-Blaster. Create a file at
/etc/udev/rules.d/
called51-usbblaster.rules
. Copy the following, paste, and save.# Altera USB-Blaster rule to set mode to 666. SUBSYSTEM=="usb",\ ENV{DEVTYPE}=="usb_device",\ ATTR{idVendor}=="09fb",\ ATTR{idProduct}=="6001",\ MODE="0666",\ NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}",\ RUN+="/bin/chmod 0666 %c"
- Run the command.
sudo udevadm control --reload-rules
To test whether the installation is success or not, you can use the Control Panel application. Here shows the steps for DE2.
- Set the RUN/PROG switch of FPGA to the RUN position.
- Select Tools > Programmer. Click on Add File and select the DE2_USB_API.sof file. Next, check the Program/Configure box.
- Click Start to download the configuration file into the FPGA.
If the installation is success, the progress bar should display 100%.
WARNING
The above steps may disable your operating system. Please consider carefully in advance.
Pingback: Install Altera Quartus 12.0 in Ubuntu 12.04 | chehsunliu
Seems like there was a typo in the lines:
ATTR{idVendor}==”09fb”,
ATTR{idProduct}==”6001″,
Made my Ubuntu hang upon restart.
Changing ‘ATTR{‘ to ‘ATTRS{‘ fixed this for me.
Thanks for the tutorial,
I tried this on Mint Nadia 14 64bit laptop with ATTRS instead of ATTR and it worked until I restarted. On restart I found that my keyboard and trackpad no longer work at the log in screen. I’ve posted the issue on the Mint forums:
http://forums.linuxmint.com/viewtopic.php?f=49&t=131324
Hopefully someone will suggest a solution there!
That implies that there is still a format error in the file. It’s most unfortunate that it breaks the ability to log on.
One thing that’s not obvious from the description above is that the setting (from SUBSYSTEM= to the final %c”) needs to be all on one line – I guess it appears above as multiple lines because this blog software is auto-wrapping?
I was able to edit the file by using the recovery boot option in grub (hold the space key down while rebooting).
That was indeed the error – it must be all on one line. I’ve posted the solution steps on the same Mint Forum thread here:
http://forums.linuxmint.com/viewtopic.php?f=49&t=131324
Basically: boot into recovery, mount rw, fix the error reboot. done.
Login is fixed and Quartus is working fine!
I’m sorry for such bad things. I didn’t know this action would disable the system.
No harm done! Solved the problem and Quartus works great now. Thanks for the tutorial 🙂
I can download .sof file successfully, but nios2 eds can’t detect usb-blaster. Why?
Plz help me
I got this problem sometimes, but fix it by restarting Nios II.
Pingback: USB Blaster Driver for Linux Mint and Quartus II WebEdition 13.1 | engineering league
Magnificent website. Lots of useful info here. I’m sending it
to some pals ans also sharing in delicious. And obviously, thank you to your
sweat!