LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-28-2006, 12:57 AM   #1
tuxangler
Member
 
Registered: Mar 2006
Location: Germany
Distribution: OpenSuSE 10.3 x86-64 SMP - Kernel 2.6.23.14
Posts: 42

Rep: Reputation: 15
udev-Rule for Mobile


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"

Last edited by tuxangler; 03-28-2006 at 03:35 AM.
 
Old 03-28-2006, 05:41 AM   #2
tuxangler
Member
 
Registered: Mar 2006
Location: Germany
Distribution: OpenSuSE 10.3 x86-64 SMP - Kernel 2.6.23.14
Posts: 42

Original Poster
Rep: Reputation: 15
Ok this seems to be working:
Quote:
linux:/etc/udev/rules.d # cat 12-mobile.rules
KERNEL=="ttyUSB[0-4]", SYSFS{idVendor}=="10ab", SYSFS{idProduct}=="10c5", NAME="mobile", MODE="666", GROUP="uucp"
Quote:
linux:/dev # l mob*
crw-rw-rw- 1 root uucp 188, 0 2006-03-28 13:37 mobile
but how do i set up automount of Mobiles-Flexmem?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a udev rule for sonypi blimbo Linux - Software 4 03-01-2006 07:48 PM
Wrong group with custom udev rule enragedchip Linux - Hardware 1 12-11-2005 02:46 PM
Charlotte Church's mobile phone Oops! Topless photo jumps through mobile phones in UK furfurdemon666 General 3 05-03-2005 08:03 AM
Issues with adding a udev rule... Ateo Linux - General 1 03-04-2005 08:02 PM
60 Second rule? therion12 LQ Suggestions & Feedback 6 03-20-2002 12:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration