Michael Adler edited this page Mar 3, 2015 · 1 revision


Installing JTAG programming cable on Ubuntu/Debian

A convenient way to program an FPGA is to use the JTAG cable. This is trivial to install the cable on Windows machines because of the excellent driver supports. However, it is not the case for Linux which is required by AWB. The followings is a way that works for us (we find the fix from the following [http://www.alteraforum.com/forum/showthread.php?t=5893]

Step 1: Create the correct structure /proc/bus/usb

For Ubuntu (different solution depending on kernel version, following listed a solution works for kernel newer than 2.6.31-20):

1) Add (as root) the following lines to /etc/rc.local. This will create the right structure at machine start up

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

2) Reboot the machine

For Debian:

1) Add the following to your /etc/fstab file.

usbfs /proc/bus/usb usbfs devmode=0666 0 0

2. Unless you decide to reboot your machine (not necessary), you’ll have to make sure the usbfs is actually mounted. Do a…

sudo mount -a

Step 2: Give permission to users to access the cable

1) Create (as root) a new file name “/etc/udev/rules.d/51-usbblaster.rules” as follows:

  1. 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”

2) Run “sudo udevadm control —reload_rules”

If successful, one should be able to see something similar to the following with command “jtagconfig -n”

1) USB-Blaster [USB 4-1.2]
  025030DD   EP2AGX125
    Node 19104600
    Node 0C006E00

If you see the followings instead, that means the permission is not set up properly! Try running jtagd at root permission. The invocation of jtagd should probably occur at init time.

1) USB-Blaster [USB 4-1.2]
  025030DD   EP2AGX125

Now, you can download the bit-file using “nios2-configure-sof”!

Other Systems

The above instructions are known to work on

  • SuSE 11.1
  • Ubuntu 12.04


Excellent documentation on integrating the Altera tools with linux can be found here

The following are golden bitfiles for various platforms:

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.