Hi all,
I am having some problem assigning rules from udev.
I have 2 FTDI232 chips mounted on my board (they are totally 3 but I am interested in 2 of them right now), the kernel manages them with the drivers
ftdi_sio, names them as
ttyUS0 and
ttyUSB1 and I am applying these rules in order to name them as
usbS1 and
usbS2:
Code:
KERNELS=="1-2.1" KERNEL=="ttyUSB0" ATTR{idVendor}=="0403" ATTR{idProduct}=="6001" SUBSYSTEMS=="usb" NAME="usbS1"
KERNELS=="1-2.2" KERNEL=="ttyUSB1" ATTR{idVendor}=="0403" ATTR{idProduct}=="6001" SUBSYSTEMS=="usb" NAME="usbS2"
according to the inormation from
dmesg
Code:
[ 4.676116] usb 1-2.1: new full-speed USB device number 3 using ehci-omap
[ 4.811920] usb 1-2.1: New USB device found, idVendor=0403, idProduct=6001
[ 4.819244] usb 1-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4.826965] usb 1-2.1: Product: FT232R USB UART
[ 4.831726] usb 1-2.1: Manufacturer: FTDI
[ 4.835968] usb 1-2.1: SerialNumber: A101XRTT
[ 4.963256] usb 1-2.2: new full-speed USB device number 4 using ehci-omap
[ 5.102355] usb 1-2.2: New USB device found, idVendor=0403, idProduct=6001
[ 5.109649] usb 1-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5.117370] usb 1-2.2: Product: FT232R USB UART
[ 5.122161] usb 1-2.2: Manufacturer: FTDI
[ 5.126403] usb 1-2.2: SerialNumber: A101XRTQ
...
[ 16.839935] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 16.848327] ftdi_sio 1-2.1:1.0: FTDI USB Serial Device converter detected
[ 16.856781] usb 1-2.1: Detected FT232RL
[ 16.977935] usb 1-2.1: FTDI USB Serial Device converter now attached to ttyUSB0
[ 16.986785] ftdi_sio 1-2.2:1.0: FTDI USB Serial Device converter detected
[ 16.994720] usb 1-2.2: Detected FT232RL
[ 17.099914] usb 1-2.2: FTDI USB Serial Device converter now attached to ttyUSB1
[ 17.108581] ftdi_sio 1-2.7:1.0: FTDI USB Serial Device converter detected
[ 17.116485] usb 1-2.7: Detected FT232RL
[ 17.165710] i2c 2-005c: Driver mt9v032 requests probe deferral
[ 17.187561] twl4030_madc 48070000.i2c:twl@48:madc: clk disabled, enabling
[ 17.228759] usb 1-2.7: FTDI USB Serial Device converter now attached to ttyUSB2
But it's not working. I don't know why.
On a older system (with kernel 2.6.34) I was simply applying these rules:
Code:
KERNELS=="2-2.1" SUBSYSTEMS=="usb" NAME="usbS1"
KERNELS=="2-2.2" SUBSYSTEMS=="usb" NAME="usbS2"
which works fine on that system, but not on this one I am working on right now (of course with the KERNELS parameters changed).
What's wrong in my rules file ?
Thank you in advance for your suggestions.
Simon