Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12689 Discussions

Help with USB Blaster using linux SUSE 11.3

Altera_Forum
Honored Contributor II
1,057 Views

I am using SUSE 11.3 and trying to get the Quartus II programmer to recognize the USB Blaster. 

 

Currently, the programmer does not recognize the USB Blaster under Hardware Setup. 

 

I have tried the following procedure without success with my board powered up and usbblaster connected to the board and the usb port on linux machine: 

 

1. Added the following lines to the file "51-usbblaster.rules" file under /etc/udev/rules.d: 

 

BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6001", MODE="0666", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf /proc/bus/usb/%%03i/%%03i$${K%%%%.*} $${K#*.}'", RUN+="/bin/chmod 0666 %c" 

BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6002", MODE="0666", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf /proc/bus/usb/%%03i/%%03i$${K%%%%.*} $${K#*.}'", RUN+="/bin/chmod 0666 %c" 

BUS=="usb", SYSFS{idVendor}=="09fb", SYSFS{idProduct}=="6003", MODE="0666", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf /proc/bus/usb/%%03i/%%03i$${K%%%%.*} $${K#*.}'", RUN+="/bin/chmod 0666 %c" 

 

2. Added following line in /etc/init.d/boot.local 

/home/bin/altera/10.1/quartus/bin/jtagd 

 

3. mkdir /etc/jtagd 

 

4. cp /home/bin/altera/10.1/quartus/linux/pgm_parts.txt /etc/jtagd/jtagd.pgm_parts 

 

5. touch /etc/jtagd/jtagd.conf 

 

6. /home/bin/altera/10.1/quartus/bin/jtagconfig 

 

The result: No JTAG hardware available 

 

Any help would be appreciated.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
355 Views

The following helped me to get the USB Blaster running on Ubuntu 10.04, it might help you too. Also there are quite a few threads about similar problems on various distributions here in the forum, so you might want to try a search. 

 

I needed to remount the /dev/bus "filesystem" to /proc/bus as the Altera jtag tools seem to have the paths in /proc/bus/usb hardcoded. 

 

I put the following in my /etc/rc.local so it gets exectuted on every boot, don't know whether it works the same on SuSE, but there surely is an option to run commands on boot there too: 

 

mount --bind /dev/bus /proc/bus ln -s /sys/kernel/debug/usb/devices /proc/bus/usb/devices  

 

HTH
0 Kudos
Altera_Forum
Honored Contributor II
355 Views

I found a solution to my problem: 

 

mkdir -p /dev/bus/usb/.usbfs 

 

mount -n -t usbfs usbfs /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644 

 

ln -sf /dev/bus/usb/.usbfs/devices /dev/bus/usb/devices 

 

mount --rbind /dev/bus/usb /proc/bus/usb
0 Kudos
Altera_Forum
Honored Contributor II
355 Views

Thanks tklauser

0 Kudos
Reply