Hi,
here's a short udev rules file for OpenOCD which I'm using in the Debian
package. It should probably be added to svn, together with some
autotools hooking so that it gets installed somewhere upon 'make install'
(or not, and leave that step to the user).
In the Debian package it ends up as /etc/udev/rules.d/z60_openocd.rules.
The script makes plugged USB JTAG adapters belong to the 'plugdev'
group, so every user in that group can run openocd (no need to run it
as root).
So far there are three devices in the list, more could be added.
Uwe.
--
http://www.hermann-uwe.de | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org
BUS!="usb", ACTION!="add", SUBSYSTEM!=="usb_device", GOTO="openocd_rules_end"
# Olimex ARM-USB-OCD
SYSFS{idVendor}=="15ba", SYSFS{idProduct}=="0003", MODE="664", GROUP="plugdev"
# USBprog with OpenOCD firmware
SYSFS{idVendor}=="1781", SYSFS{idProduct}=="0c63", MODE="664", GROUP="plugdev"
# Amontec JTAGkey
SYSFS{idVendor}=="0403", SYSFS{idProduct}=="cff8", MODE="664", GROUP="plugdev"
LABEL="openocd_rules_end"
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development