blob: 11e4d03836429f1f6bcf31e2c188ff5947db03bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# replacement /usr/local/etc/devd/mspfet.conf file that allows
# unprivileged users in the 'operator' group to rw the MSP FETs
# Warning: Only a single instance of each FET product is supported
# while using mspdebug with the tilib interface
attach 20 {
device-name "umodem[0-9]+";
match "vendor" "0x2047"; # TI MSPBSL_STANDARD_USB_VID
match "product" "0x001(0|3|4)"; # UIF eZ-FET MSP-FET
match "interface" "0"; # JTAG interface
action "cd /dev; p=$product; dn=$device-name; \
un=$(sysctl -n dev.umodem.${dn#umodem}.ttyname); \
chgrp operator cua${un}; chmod 660 cua${un}; \
ln -sf cua${un} mspfet${p#0x}";
};
attach 20 {
device-name "umodem[0-9]+";
match "vendor" "0x2047";
match "product" "0x001(0|3|4)";
match "interface" "2"; # back-channel uart interface
action "cd /dev; p=$product; dn=$device-name; \
un=$(sysctl -n dev.umodem.${dn#umodem}.ttyname); \
chgrp operator tty${un}; chmod 660 tty${un}";
};
notify 20 {
match "system" "USB";
match "subsystem" "INTERFACE";
match "type" "DETACH";
match "vendor" "0x2047";
match "product" "0x001(0|3|4)";
match "interface" "0"; # JTAG interface
action "p=$product; rm /dev/mspfet${p#0x}";
};
notify 100 {
match "system" "USB";
match "subsystem" "INTERFACE";
match "type" "ATTACH";
match "vendor" "0x2047";
match "product" "0x001(0|3|4)";
action "chgrp operator /dev/$cdev; chmod 660 /dev/$cdev";
};
notify 100 {
match "system" "USB";
match "subsystem" "INTERFACE";
match "type" "ATTACH";
match "vendor" "0x15ba"; # OLIMEX LTD
match "product" "0x0100"; # MSP430 JTAGISO ver.2
action "chgrp operator /dev/$cdev; chmod 660 /dev/$cdev";
};
|