From: Luca Bruno Date: Tue, 13 Sep 2011 13:11:01 +0000 (+0200) Subject: contrib: fix udev rules for tty based adaptors X-Git-Tag: v0.6.0-rc1~573 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d40b03ba3c127bc908388ea06f069a8f6eaff37;p=openocd 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 --- diff --git a/contrib/openocd.udev b/contrib/openocd.udev index 34a819c3..c2390725 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