# $Id: 92-retro-usb-persistent.rules 1205 2020-04-19 08:24:55Z mueller $ # SPDX-License-Identifier: GPL-3.0-or-later # Copyright 2017-2020 by Walter F.J. Mueller # # udev rules to create persistent names for Digilent FT2232C style FPGA boards # # copy into /etc/udev/rules.d # # Notes: # - the FT2232C has two interfaces, 1st: JTAG, 2nd: UART # - the persistent name points to the 2nd, the USB UART # - the rule uses ENV{} and not ATTRS{} because The serial number and the # interface number are properties of different device layers and multiple # ATTRS{} must match in one layer # # !!------------------------------------------------------------------------!! # !! NOTE: this is an example, using the SERIAL_SHORT of the authors boards !! # !! adopt ID_SERIAL_SHORT to your needs, use !! # !! udevadm info -q all -n /dev/ttyUSB1 # change USB1 to needs !! # !!------------------------------------------------------------------------!! # # - Digilent nexys4 board ------------------------------------------------ SUBSYSTEM=="tty", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{ID_MODEL}=="Digilent_USB_Device", ENV{ID_SERIAL_SHORT}=="210274628291", SYMLINK="fpga_n4" # # - Digilent nexys a7 board ---------------------------------------------- SUBSYSTEM=="tty", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{ID_MODEL}=="Digilent_USB_Device", ENV{ID_SERIAL_SHORT}=="210292AA799F", SYMLINK="fpga_n4d" # # - Digilent basys3 board ------------------------------------------------ SUBSYSTEM=="tty", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{ID_MODEL}=="Digilent_USB_Device", ENV{ID_SERIAL_SHORT}=="210183638100", SYMLINK="fpga_b3" # # - Digilent arty board -------------------------------------------------- SUBSYSTEM=="tty", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{ID_MODEL}=="Digilent_USB_Device", ENV{ID_SERIAL_SHORT}=="210319788597", SYMLINK="fpga_arty" # # - Digilent cmod a7 board ----------------------------------------------- SUBSYSTEM=="tty", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{ID_MODEL}=="Digilent_Adept_USB_Device", ENV{ID_SERIAL_SHORT}=="210328A414AD", SYMLINK="fpga_c7"