2010-08-05

Digi Edgeport/8 persistent serial port assignments

Even better than patching usb-serial.ko is to use the /dev/serial/by-id links that are provided with recent versions of Udev.

In the case of Debian Lenny (5.0.4), where the version of Udev (125) is too old, patching /lib/udev/path_id as follows:

--- a/extras/path_id/path_id
+++ b/extras/path_id/path_id
@@ -515,6 +515,9 @@ handle_device () {
*/host[0-9]*/[0-9]*:[0-9]*:[0-9]*:[0-9]*)
handle_scsi "$D"
;;
+ */ttyUSB*)
+ D=${D%/ttyUSB*}
+ ;;
*/usb[0-9]*/[0-9]*/*)
handle_usb "$D"
;;
and copying /lib/udev/60-persistent-serial.rules (the latter goes to /etc/udev/rules.d) provides the capability.

No comments: