1
0
mirror of https://github.com/wfjm/w11.git synced 2026-01-27 20:57:31 +00:00
Files
wfjm.w11/tools/sys/92-retro-usb-persistent.rules
2019-07-26 18:06:36 +02:00

30 lines
1.6 KiB
Plaintext

# $Id: 92-retro-usb-persistent.rules 1194 2019-07-20 07:43:21Z mueller $
# SPDX-License-Identifier: GPL-3.0-or-later
# Copyright 2017- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de>
#
# 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, adopt ID_SERIAL_SHORT to your needs, use
# udevadm info -q all -n /dev/ttyUSB2 # change USB2 to need
#
# - 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 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 arty board --------------------------------------------------
SUBSYSTEM=="tty", ENV{ID_USB_INTERFACE_NUM}=="01", ENV{ID_MODEL}=="Digilent_Adept_USB_Device", ENV{ID_SERIAL_SHORT}=="210328A414AD", SYMLINK="fpga_c7"