Hi!
Anybody an idea why my Rule isn't working?
This is how i try to make my Mobile work:
Quote:
linux:/etc/udev/rules.d # cat 12-mobile.rules
KERNEL=="ttyUSB[0-4]", SUBSYSTEM=="tty", BUS=="usb-serial", ID=="ttyUSB[0-4]", DRIVER=="cp2101", SYSFS{idVendor}=="10ab", SYSFS{idProduct}=="10c5", NAME="mobile", MODE="666", GROUP="uucp"
|
This has been working once and never again.
System is 2.6.15.6 with OpenSuSE 10.0.
Mobile is Siemens C60.
What do i have to type in for "KERNEL="fuse""?
Maybe "KERNEL="event*""?
i dont know.
Quote:
linux: # udevmonitor
UEVENT[1143529620] add@/devices/pci0000:00/0000:00:09.2/usb5/5-4/5-4.4
UEVENT[1143529620] add@/devices/pci0000:00/0000:00:09.2/usb5/5-4/5-4.4/5-4.4:1.0
UEVENT[1143529620] add@/devices/pci0000:00/0000:00:09.2/usb5/5-4/5-4.4/5-4.4:1.0/ttyUSB0
UEVENT[1143529620] add@/class/tty/ttyUSB0
UEVENT[1143529620] add@/class/usb_device/usbdev5.15
UDEV [1143529621] add@/devices/pci0000:00/0000:00:09.2/usb5/5-4/5-4.4
UDEV [1143529621] add@/devices/pci0000:00/0000:00:09.2/usb5/5-4/5-4.4/5-4.4:1.0
UDEV [1143529621] add@/devices/pci0000:00/0000:00:09.2/usb5/5-4/5-4.4/5-4.4:1.0/ttyUSB0
UDEV [1143529621] add@/class/tty/ttyUSB0
UDEV [1143529621] add@/class/usb_device/usbdev5.15
|
/etc/fstab
Quote:
/dev/mobile /media/mobile siefs user,auto,fs=siefs 0 0
|
At the Moment, Communication-Port for this Device sometimes is ttyUSB0, sometimes ttyUSB1 or ttyUSB2.
The Device at /dev/mobile at every Connection would be nice.
Quote:
linux:/dev # udevinfo -a -p /class/tty/ttyUSB0
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
device '/sys/class/tty/ttyUSB0' has major:minor 188:0
looking at class device '/sys/class/tty/ttyUSB0':
KERNEL=="ttyUSB0"
SUBSYSTEM=="tty"
SYSFS{dev}=="188:0"
follow the "device"-link to the physical device:
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5/5-4/5-4.3/5-4.3:1.0/ttyUSB0':
BUS=="usb-serial"
ID=="ttyUSB0"
DRIVER=="cp2101"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5/5-4/5-4.3/5-4.3:1.0':
BUS=="usb"
ID=="5-4.3:1.0"
DRIVER=="cp2101"
SYSFS{bAlternateSetting}==" 0"
SYSFS{bInterfaceClass}=="ff"
SYSFS{bInterfaceNumber}=="00"
SYSFS{bInterfaceProtocol}=="00"
SYSFS{bInterfaceSubClass}=="00"
SYSFS{bNumEndpoints}=="02"
SYSFS{interface}=="usb data cable"
SYSFS{modalias}=="usb:v10ABp10C5d0100dc00dsc00dp00icFFisc00ip00"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5/5-4/5-4.3':
BUS=="usb"
ID=="5-4.3"
DRIVER=="usb"
SYSFS{bConfigurationValue}=="1"
SYSFS{bDeviceClass}=="00"
SYSFS{bDeviceProtocol}=="00"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bMaxPower}=="100mA"
SYSFS{bNumConfigurations}=="1"
SYSFS{bNumInterfaces}==" 1"
SYSFS{bcdDevice}=="0100"
SYSFS{bmAttributes}=="80"
SYSFS{configuration}==""
SYSFS{devnum}=="16"
SYSFS{idProduct}=="10c5"
SYSFS{idVendor}=="10ab"
SYSFS{manufacturer}=="Silicon Labs"
SYSFS{maxchild}=="0"
SYSFS{product}=="usb data cable"
SYSFS{serial}=="0001"
SYSFS{speed}=="12"
SYSFS{version}==" 1.10"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5/5-4':
BUS=="usb"
ID=="5-4"
DRIVER=="usb"
SYSFS{bConfigurationValue}=="1"
SYSFS{bDeviceClass}=="09"
SYSFS{bDeviceProtocol}=="02"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bMaxPower}=="100mA"
SYSFS{bNumConfigurations}=="1"
SYSFS{bNumInterfaces}==" 1"
SYSFS{bcdDevice}=="0008"
SYSFS{bmAttributes}=="e0"
SYSFS{configuration}==""
SYSFS{devnum}=="5"
SYSFS{idProduct}=="6560"
SYSFS{idVendor}=="04b4"
SYSFS{maxchild}=="4"
SYSFS{speed}=="480"
SYSFS{version}==" 2.00"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2/usb5':
BUS=="usb"
ID=="usb5"
DRIVER=="usb"
SYSFS{bConfigurationValue}=="1"
SYSFS{bDeviceClass}=="09"
SYSFS{bDeviceProtocol}=="01"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bMaxPower}==" 0mA"
SYSFS{bNumConfigurations}=="1"
SYSFS{bNumInterfaces}==" 1"
SYSFS{bcdDevice}=="0206"
SYSFS{bmAttributes}=="c0"
SYSFS{configuration}==""
SYSFS{devnum}=="1"
SYSFS{idProduct}=="0000"
SYSFS{idVendor}=="0000"
SYSFS{manufacturer}=="Linux 2.6.15.6-default ehci_hcd"
SYSFS{maxchild}=="4"
SYSFS{product}=="EHCI Host Controller"
SYSFS{serial}=="0000:00:09.2"
SYSFS{speed}=="480"
SYSFS{version}==" 2.00"
looking at the device chain at '/sys/devices/pci0000:00/0000:00:09.2':
BUS=="pci"
ID=="0000:00:09.2"
DRIVER=="ehci_hcd"
SYSFS{class}=="0x0c0320"
SYSFS{device}=="0x3104"
SYSFS{irq}=="12"
SYSFS{local_cpus}=="1"
SYSFS{modalias}=="pci:v00001106d00003104sv00001106sd00003104bc0Csc03i20"
SYSFS{subsystem_device}=="0x3104"
SYSFS{subsystem_vendor}=="0x1106"
SYSFS{vendor}=="0x1106"
looking at the device chain at '/sys/devices/pci0000:00':
BUS==""
ID=="pci0000:00"
DRIVER=="unknown"
|