world leader in high performance signal processing
Trace: » non_root_usb

Use USB JTAG without root Privilege

This takes gnICE as an example.

Debian

  1. Add group usb.
  2. Add root and users who want to use the USB JTAG cable to usb group.
  3. Add the following lines to a new file /etc/udev/rules.d/gnice.rules:
# gnICE & gnICE+
ATTRS{idVendor}=="0456", ATTRS{idProduct}=="f000", GROUP="usb"
ATTRS{idVendor}=="0456", ATTRS{idProduct}=="f001", GROUP="usb"
# All other ADI ICEs
ATTRS{idVendor}=="064b", GROUP="usb"

If you don't want group control and just allow every one to access it, you may just add the following line to a new file /etc/udev/rules.d/gnice.rules:

# gnICE & gnICE+
ATTRS{idVendor}=="0456", ATTRS{idProduct}=="f000", MODE="0666"
ATTRS{idVendor}=="0456", ATTRS{idProduct}=="f001", MODE="0666"
# All other ADI ICEs
ATTRS{idVendor}=="064b", MODE="0666"

Depending on your distribution - you may have to unplug the gnICE, restart udev, and then plug back in the gnICE after making this change.

After that you should be able to check things with something like:

adipcadmin@ubuntu-l01:~$ lsusb | grep Analog
Bus 001 Device 006: ID 0456:f001 Analog Devices, Inc.irectory
adipcadmin@ubuntu-l01:~$ ls -l /dev/bus/usb/001/006
crw-rw-rw- 1 root root 189, 5 2010-01-22 05:08 /dev/bus/usb/001/006

And the permissions, or the group should be set properly.