Altera_Forum
Honored Contributor
16 years agoHOWTO: Setting up the USB blaster on Ubuntu 9.04 (Jaunty Jackalope)
edit: as of quartus ii 11.0, altera finally supports /dev/bus/usb out-of-the-box and does not rely on usbfs. the original version of this post described how to "fake" usbfs support in ubuntu, but this is no longer easy to do and is not necessary with quartus ii 11.0+, so i have removed that part of the instructions. hence, this guide will only work with quartus ii 11.0 or newer.
I just spent a couple hours figuring this out, so I thought I'd post it here for everyone else. To use the USB blaster to program Altera parts on Linux, you need to do a bit of work to configure your machine to give Quartus access to it. Unfortunately though, Altera does not provide instructions for how to do this for Ubuntu. So I've put together instructions. 1) Create a new file at /etc/udev/rules.d/51-usbblaster.rules ("sudo gedit /etc/udev/rules.d/51-usbblaster.rules") 2) Put this in it: ubuntu 9.04+# 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" ubuntu 12.10+ # Altera USB-Blaster rule to set mode to 666.
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6001", MODE="0666" 3) Save and close. 4) Run "sudo udevadm control --reload-rules". It's now configured! Connect your USB blaster (or remove and reconnect if it's already in) and then launch Quartus. It should now be selectable in Tools -> Programmer -> Hardware Setup.