The short version is this udev rules file, which I’ve named “99-tty-ths0.rules”, is placed in an AGX Orin’s “/etc/udev/rules.d/”, as stated in the two code lines below. The original poster is working with an Orin NX. The sym link file is to be named “mys” to be able to allow the drone to find the UART (the THS one).
# 99-tty-ths0.rules; symbolic link from Jetson file /dev/ttyTHS0 to /dev/mys
SUBSYSTEM=="tty", KERNEL=="/dev/ttyTHS0", ACTION=="add|change", SYMLINK+="mys"
The command to test this: udevadm test /dev/ttyTHS0
The error which I cannot get around:
Reading rules file: /etc/udev/rules.d/tty-ths0.rules
Failed to open device '/sys/dev/ttyTHS0': No such device
I’m asking if someone from NVDIA can find out if this error is due to a need to add some /sys code to the driver. I don’t know. Place that udev rules file in the location named, and run the test command, and it should be repeatable
Note: The trigger is running, so it isn’t a question of identifying the device. Something more is needed though before it will allow the sym link.
-p, --path=DEVPATH¶
The /sys/ path of the device to query, e.g. [/sys/]/class/block/sda. This option is an alternative to the positional argument with a /sys/ prefix. udevadm info --path=/class/block/sda is equivalent to udevadm info /sys/class/block/sda.