Ubuntu下quartus发现不到usb blaster的问题
wangjc@wangjc-Inspiron-3668:~$ sudo touch /etc/udev/rules.d/de1-usb-blaster.rules
wangjc@wangjc-Inspiron-3668:~$ sudo gedit /etc/udev/rules.d/de1-usb-blaster.rules
- 编辑添加blaster
# Altera USBBlaster BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6001", MODE="0666", SYMLINK+="usbblaster"
- 创建启动脚本
wangjc@wangjc-Inspiron-3668:~$ sudo touch /etc/init.d/jtagd ``wangjc@wangjc-Inspiron-3668:~$ sudo gedit /etc/init.d/jtagd
- 添加
# 把/dev/bus/usb挂载到/proc/bus/usb
mount -t usbfs /dev/bus/usb/ /proc/bus/usb/
# start jtagd,把/path/to修改为你的家目录
jtagd --config /home/wangjc/.jtag.conf
wangjc@wangjc-Inspiron-3668:~$ sudo chmod +x /etc/init.d/jtagd
- 确认是found配置好:
wangjc@wangjc-Inspiron-3668:~$ jtagconfig No JTAG hardware available
wangjc@wangjc-Inspiron-3668:~$ pkill jtagd wangjc@wangjc-Inspiron-3668:~$ touch /home/wangjc/.jtag.conf
- 发现不行。。。。。
1. 查看usb设备
wangjc@wangjc-Inspiron-3668:~$ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller Bus 001 Device 004: ID 413c:2113 Dell Computer Corp. Bus 001 Device 003: ID 413c:301a Dell Computer Corp. Bus 001 Device 006: ID 0cf3:e005 Atheros Communications, Inc. Bus 001 Device 009: ID 09fb:6810 Altera Bus 001 Device 007: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
说明 /dev/bus/usb/001/009这个文件现在就是我们的Altera Blaster设备
2. 查看usb balster使用权限
wangjc@wangjc-Inspiron-3668:~$ cd /dev/bus/usb/001/
wangjc@wangjc-Inspiron-3668:/dev/bus/usb/001$ ls -al
total 0
drwxr-xr-x 2 root root 180 Jan 17 14:24 .
drwxr-xr-x 4 root root 80 Jan 16 18:14 ..
crw-rw-r-- 1 root root 189, 0 Jan 16 18:14 001
crw-rw-r-- 1 root root 189, 2 Jan 16 18:15 003
crw-rw-r-- 1 root root 189, 3 Jan 16 18:15 004
crw-rw-r-- 1 root root 189, 4 Jan 16 18:15 005
crw-rw-r-- 1 root root 189, 5 Jan 16 18:14 006
crw-rw-r-- 1 root root 189, 6 Jan 17 11:13 007
crw-rw-r-- 1 root root 189, 8 Jan 17 14:24 009
003只有root具有权限
3. 修改权限
wangjc@wangjc-Inspiron-3668:/dev/bus/usb/001$ sudo chmod 666 ./009
[sudo] password for wangjc:
wangjc@wangjc-Inspiron-3668:/dev/bus/usb/001$ ls -al
total 0
drwxr-xr-x 2 root root 180 Jan 17 14:24 .
drwxr-xr-x 4 root root 80 Jan 16 18:14 ..
crw-rw-r-- 1 root root 189, 0 Jan 16 18:14 001
crw-rw-rw- 1 root root 189, 2 Jan 16 18:15 003
crw-rw-r-- 1 root root 189, 3 Jan 16 18:15 004
crw-rw-r-- 1 root root 189, 4 Jan 16 18:15 005
crw-rw-r-- 1 root root 189, 5 Jan 16 18:14 006
crw-rw-r-- 1 root root 189, 6 Jan 17 11:13 007
crw-rw-r-- 1 root root 189, 8 Jan 17 14:24 009
4. 为自动化,可按上文最开始的方法中的1.2.3添加文件,注意修改的地方。说明见参考文章
# Altera USBBlaster BUS=="usb", ATTRS{idVendor}=="09fb", ATTRS{idProduct}=="6810", MODE="0666", SYMLINK+="usbblaster"
5. 刚开始还是不行,重启之后最开始仍不行,重新修改权限后发现已经可以连接了。在hardware setup下可以找到,比较隐蔽。。。。
6. 发现altera的端口号变动了,,看来这里还是有点小问题呀。有点麻烦,但是能用
要注意的是,下载程序到fpga的时候要替换fpga的sof文件,而不是添加sof文件,否则会报错