Skip to content

Commit 89ea165

Browse files
committed
feat: Add udev rules with symlink
1 parent f427e47 commit 89ea165

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copy this file to /etc/udev/rules.d/
2+
# If rules fail to reload automatically, you can refresh udev rules
3+
# with the command "udevadm control --reload"
4+
5+
# This rules are based on the udev rules from the OpenOCD project, with unsupported probes removed.
6+
# See http://openocd.org/ for more details.
7+
#
8+
# This file is available under the GNU General Public License v2.0
9+
10+
ACTION!="add|change", GOTO="espflash_rules_end"
11+
12+
SUBSYSTEM=="gpio", MODE="0660", GROUP="plugdev", TAG+="uaccess"
13+
14+
SUBSYSTEM!="usb|tty|hidraw", GOTO="espflash_rules_end"
15+
16+
# Please keep this list sorted by VID:PID
17+
18+
# Espressif USB JTAG/serial debug unit and USB Bridge
19+
# SUBSYSTEMS=="usb", ATTRS{idVendor}=="303a", ATTRS{idProduct}=="00??", GROUP="plugdev", MODE="660", TAG+="uaccess", SYMLINK+="serial_ports/usb"
20+
ATTRS{idVendor}=="303a", ATTRS{idProduct}=="1001", MODE="660", GROUP="plugdev", TAG+="uaccess", SYMLINK+="serial_ports/usb"
21+
ATTRS{idVendor}=="303a", ATTRS{idProduct}=="1002", MODE="660", GROUP="plugdev", TAG+="uaccess", SYMLINK+="serial_ports/usb"
22+
# Silicon Labs CP210x UART Bridge
23+
ATTRS{idVendor}=="10c4", ATTRS{idProduct}=="ea60", GROUP="plugdev", MODE="660", TAG+="uaccess", SYMLINK+="serial_ports/uart"
24+
25+
LABEL="espflash_rules_end"

0 commit comments

Comments
 (0)