Created
September 16, 2020 11:47
-
-
Save herzig/1087d84c2532d77b3f72b23b3c4135a9 to your computer and use it in GitHub Desktop.
udev rules for teensy, create symlinks with serial numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# UDEV Rules for Teensy boards, http://www.pjrc.com/teensy/ | |
# | |
# The latest version of this file may be found at: | |
# http://www.pjrc.com/teensy/49-teensy.rules | |
# | |
# This file must be placed at: | |
# | |
# /etc/udev/rules.d/49-teensy.rules (preferred location) | |
# or | |
# /lib/udev/rules.d/49-teensy.rules (req'd on some broken systems) | |
# | |
# To install, type this command in a terminal: | |
# sudo cp 49-teensy.rules /etc/udev/rules.d/49-teensy.rules | |
# | |
# After this file is installed, physically unplug and reconnect Teensy. | |
# | |
# | |
# Added Symlinks with serial number (ref: https://forum.pjrc.com/threads/17416-Differenciating-in-udev-rules-a-Teensy-2-from-a-Teensy-3) | |
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1", ENV{ID_MM_PORT_IGNORE}="1" | |
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1" | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666" | |
KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666" \ | |
, SYMLINK+="cu.teensy.p$attr{idProduct} cu.teensy.s$attr{serial}" | |
# | |
# If you share your linux system with other users, or just don't like the | |
# idea of write permission for everybody, you can replace MODE:="0666" with | |
# OWNER:="yourusername" to create the device owned by you, or with | |
# GROUP:="somegroupname" and mange access using standard unix groups. | |
# | |
# ModemManager tends to interfere with USB Serial devices like Teensy. | |
# Problems manifest as the Arduino Serial Monitor missing some incoming | |
# data, and "Unable to open /dev/ttyACM0 for reboot request" when | |
# uploading. If you experience these problems, disable or remove | |
# ModemManager from your system. If you must use a modem, perhaps | |
# try disabling the "MM_FILTER_RULE_TTY_ACM_INTERFACE" ModemManager | |
# rule. Changing ModemManager's filter policy from "strict" to "default" | |
# may also help. But if you don't use a modem, completely removing | |
# the troublesome ModemManager is the most effective solution. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment