(8)安装usb blaster
step1:
Tell Ubuntu to let normal users use the USB blaster
1) Create a new file at sudo udevadm control --reload-rules
------------------------------------------------
sudo touch /etc/udev/rules.d/51-usbblaster.rules
sudo gedit /etc/udev/rules.d/51-usbblaster.rules
------------------------------------------------
2) Put this in it:
---------------------------------------------------------------------------------------------------------------------------------------------------------
# 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"
------------------------------------------------------------------------------------------------------------------------------------------------------------
3) Save and close.
4) Run "sudo udevadm control --reload-rules".
---------------------------------------
sudo udevadm control --reload-rules
--------------------------------------
5)and in your home folder create an empty file named .jtag.conf and plug in the USB Blaster cable
-----------------------
touch /root/.jtag.conf
----------------------
step2:
Should the SYMLINK created by udev not be picked up, then you may try this method:
--------------------------------------------------
sudo mount -t usbfs /dev/bus/usb/ /proc/bus/usb/
killall jtagd
sudo <quartus install path>/bin/jtagd
jtagconfig
-----------------------------------------------------
step3:
Set-up "usbfs" emulation (see Ubuntu bug #156085 for the history behind this, if you're curious)
1) Open /etc/init.d/mountdevsubfs.sh as root ("sudo gedit /etc/init.d/mountdevsubfs.sh" from a terminal)
2) Scroll down to the part that reads "domount devpts ..."
3) Add this after that line:
--------------------------------------------------------------------------------------------------------------
#
# Magic to make /proc/bus/usb work
#
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -sf .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/us
-------------------------------------------------------------------------------------------------------------
4) Save and close.
5) Run "sudo /etc/init.d/mountdevsubfs.sh start"
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.