Skip to content

Commit

Permalink
udev rule enhancements
Browse files Browse the repository at this point in the history
- Add symlinks for device serial ports
- Add Jetson Xavier systems

Signed-off-by: Stephen Warren <swarren@nvidia.com>
  • Loading branch information
nvswarren committed Jul 27, 2018
1 parent 5fedd05 commit 3e54566
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion udev/swarren-lx1/99-ubtest.rules
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,44 @@

# Jetson TK1 (PM375)
# Serial console
ACTION=="add", KERNELS=="ttyS0", ENV{UBTEST_DEVICE}="1"
ACTION=="add", KERNELS=="ttyS0", ENV{UBTEST_DEVICE}="1", SYMLINK+="console-jetson-tk1"
# Phidgets control board
ACTION=="add", SUBSYSTEMS=="usb", DRIVER=="usb", KERNELS=="3-2.7", ENV{UBTEST_DEVICE}="1", SYMLINK+="phidgets-jetson-tk1"
# Device-mode port
ACTION=="add", SUBSYSTEMS=="usb", KERNELS=="3-2.3", ENV{UBTEST_DEVICE}="1", SYMLINK+="usbdev-jetson-tk1"

# Jetson TX1 (P2371-2180)
# Serial console
ACTION=="add", SUBSYSTEM=="tty", KERNELS=="3-6:1.2", ENV{UBTEST_DEVICE}="1", SYMLINK+="console-p2371-2180"
# PM342 debug board
ACTION=="add", SUBSYSTEMS=="usb", KERNELS=="3-6", ENV{UBTEST_DEVICE}="1"
# Device-mode port
ACTION=="add", SUBSYSTEMS=="usb", KERNELS=="3-13", ENV{UBTEST_DEVICE}="1", SYMLINK+="usbdev-p2371-2180"

# Jetson TX2 (P2771-0000)
# Serial console
ACTION=="add", SUBSYSTEM=="tty", KERNELS=="3-14:1.2", ENV{UBTEST_DEVICE}="1", SYMLINK+="console-p2771-0000"
# PM342 debug board
ACTION=="add", SUBSYSTEMS=="usb", KERNELS=="3-14", ENV{UBTEST_DEVICE}="1"
# Device-mode port
ACTION=="add", SUBSYSTEMS=="usb", KERNELS=="3-1", ENV{UBTEST_DEVICE}="1", SYMLINK+="usbdev-p2771-0000"

# Jetson Xavier (B)
# Serial console
ACTION=="add", SUBSYSTEM=="tty", KERNELS=="3-2.6:1.3", ENV{UBTEST_DEVICE}="1", SYMLINK+="console-xavier-b"
# FTDI port
ACTION=="add", SUBSYSTEMS=="usb", KERNELS=="3-2.6", ENV{UBTEST_DEVICE}="1"
# Device-mode port
ACTION=="add", SUBSYSTEMS=="usb", KERNELS=="3-2.5", ENV{UBTEST_DEVICE}="1", SYMLINK+="usbdev-xavier-b"

# Jetson Xavier (C)
# Serial console
ACTION=="add", SUBSYSTEM=="tty", KERNELS=="3-2.4:1.3", ENV{UBTEST_DEVICE}="1", SYMLINK+="console-xavier-c"
# FTDI port
ACTION=="add", SUBSYSTEMS=="usb", KERNELS=="3-2.4", ENV{UBTEST_DEVICE}="1"
# Device-mode port
ACTION=="add", SUBSYSTEMS=="usb", KERNELS=="3-2.2", ENV{UBTEST_DEVICE}="1", SYMLINK+="usbdev-xavier-c"

# NVIDIA's PM342 control scripts search for devices with matching USB vendor
# and device ID, then check each to verify if it matches the requested serial
# number. If a USB device node isn't r/w for the user running the script,
Expand Down

0 comments on commit 3e54566

Please sign in to comment.