Udev rules for serial devices to make names fixed

From chriesibaum wiki
Revision as of 15:11, 6 August 2025 by PTH (talk | contribs) (Created page with " To add a special device name to a serial device add the following udev rule to your system: <syntaxhighlight lang="sh"> /etc/udev/rules.d/99-custom_serial_dev_MT.rules </syntaxhighlight> <syntaxhighlight lang="sh"> # serial tty interface of a FTDI driven device SUBSYSTEM=="tty", ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="YYYY", ATTRS{serial}=="XXXXXXXXXX", SYMLINK+="ttyUSB_<my special dev name>" # USB gadget driver for serial devices / tty interface SUBSYSTEMS=="u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To add a special device name to a serial device add the following udev rule to your system:

/etc/udev/rules.d/99-custom_serial_dev_MT.rules
# serial tty interface of a FTDI driven device
SUBSYSTEM=="tty", ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="YYYY", ATTRS{serial}=="XXXXXXXXXX", SYMLINK+="ttyUSB_<my special dev name>"

# USB gadget driver for serial devices / tty interface
SUBSYSTEMS=="usb", SUBSYSTEM=="tty", ATTRS{idVendor}=="XXXX", ATTRS{idProduct}=="YYYY", SYMLINK+="ttyACM<my special dev name>"