driver/udev: Created a set of rules for group uucp systems

This commit is contained in:
dragonmux 2022-06-06 01:52:52 -04:00 committed by Piotr Esden-Tempski
parent d938f2b839
commit 6ae884741f
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# Black Magic Probe
# there are two connections, one for GDB and one for UART debugging
# copy this to /etc/udev/rules.d/99-blackmagic.rules
# and run sudo udevadm control -R
SUBSYSTEM=="tty", ACTION=="add", ATTRS{interface}=="Black Magic GDB Server", SYMLINK+="ttyBmpGdb"
SUBSYSTEM=="tty", ACTION=="add", ATTRS{interface}=="Black Magic UART Port", SYMLINK+="ttyBmpTarg"
SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="6017", MODE="0666", GROUP="uucd", TAG+=uaccess
SUBSYSTEM=="usb", ATTR{idVendor}=="1d50", ATTR{idProduct}=="6018", MODE="0666", GROUP="uucd", TAG+=uaccess