aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorLuca Bruno <lucab@debian.org>2011-09-13 15:11:01 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2011-09-16 10:03:34 +0200
commit8d40b03ba3c127bc908388ea06f069a8f6eaff37 (patch)
tree08f26ef7410d5cefcfe703e79abad11862a3589a /contrib
parent5c91551ea75ca168e734afaa70009963d7c3069b (diff)
downloadriscv-openocd-8d40b03ba3c127bc908388ea06f069a8f6eaff37.zip
riscv-openocd-8d40b03ba3c127bc908388ea06f069a8f6eaff37.tar.gz
riscv-openocd-8d40b03ba3c127bc908388ea06f069a8f6eaff37.tar.bz2
contrib: fix udev rules for tty based adaptors
Most serial adaptors are identified by udev with SUBSYSTEM=tty and without DEVTYPE. This patch fix udev rules to work with any listed tty-based adaptor. It has been tested with a FTDI-based Bus Pirate. Signed-off-by: Luca Bruno <lucab@debian.org>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/openocd.udev4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/openocd.udev b/contrib/openocd.udev
index 34a819c..c239072 100644
--- a/contrib/openocd.udev
+++ b/contrib/openocd.udev
@@ -1,6 +1,5 @@
ACTION!="add|change", GOTO="openocd_rules_end"
-SUBSYSTEM!="usb", GOTO="openocd_rules_end"
-ENV{DEVTYPE}!="usb_device", GOTO="openocd_rules_end"
+SUBSYSTEM!="usb|tty", GOTO="openocd_rules_end"
# Olimex ARM-USB-OCD
ATTRS{idVendor}=="15ba", ATTRS{idProduct}=="0003", MODE="664", GROUP="plugdev"
@@ -31,6 +30,7 @@ ATTRS{idVendor}=="0fbb", ATTRS{idProduct}=="1000", MODE="664", GROUP="plugdev"
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6010", MODE="664", GROUP="plugdev"
# Calao Systems USB-A9260-C02
+# Bus Pirate
ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", MODE="664", GROUP="plugdev"
# IAR J-Link USB