You are not logged in.

#1 2005-02-03 21:33:21

digi691
Member
Registered: 2004-10-12
Posts: 21

UDEV Rules and my Palm Pilot

I am having trouble creating a rule for my palm pilot to symlink as pilot.  As I have read in some artilcles and I have found where the node is for my palm when it is trying to hotsink (/sys/class/tty/ttyUSB0 I believe??)  This is what I get for

udevinfo -a -p /sys/class/tty/ttyUSB0/

:

device '/sys/class/tty/ttyUSB0' has major:minor 188:0
  looking at class device '/sys/class/tty/ttyUSB0':
    SYSFS{dev}="188:0"

follow the class device's "device"
  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0/ttyUSB0':
    BUS="usb-serial"
    ID="ttyUSB0"
    SYSFS{detach_state}="0"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1/1-1:1.0':
    BUS="usb"
    ID="1-1:1.0"
    SYSFS{bAlternateSetting}=" 0"
    SYSFS{bInterfaceClass}="ff"
    SYSFS{bInterfaceNumber}="00"
    SYSFS{bInterfaceProtocol}="00"
    SYSFS{bInterfaceSubClass}="00"
    SYSFS{bNumEndpoints}="02"
    SYSFS{detach_state}="0"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1':
    BUS="usb"
    ID="1-1"
    SYSFS{bConfigurationValue}="1"
    SYSFS{bDeviceClass}="00"
    SYSFS{bDeviceProtocol}="00"
    SYSFS{bDeviceSubClass}="00"
    SYSFS{bMaxPower}="  2mA"
    SYSFS{bNumConfigurations}="1"
    SYSFS{bNumInterfaces}=" 1"
    SYSFS{bcdDevice}="0100"
    SYSFS{bmAttributes}="c0"
    SYSFS{detach_state}="0"
    SYSFS{devnum}="3"
    SYSFS{idProduct}="0050"
    SYSFS{idVendor}="0830"
    SYSFS{manufacturer}="Palm, Inc."
    SYSFS{maxchild}="0"
    SYSFS{product}="Palm Handheld"
    SYSFS{serial}="PalmSN12345678"
    SYSFS{speed}="12"
    SYSFS{version}=" 1.00"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1f.2/usb1':
    BUS="usb"
    ID="usb1"
    SYSFS{bConfigurationValue}="1"
    SYSFS{bDeviceClass}="09"
    SYSFS{bDeviceProtocol}="00"
    SYSFS{bDeviceSubClass}="00"
    SYSFS{bMaxPower}="  0mA"
    SYSFS{bNumConfigurations}="1"
    SYSFS{bNumInterfaces}=" 1"
    SYSFS{bcdDevice}="0206"
    SYSFS{bmAttributes}="c0"
    SYSFS{detach_state}="0"
    SYSFS{devnum}="1"
    SYSFS{idProduct}="0000"
    SYSFS{idVendor}="0000"
    SYSFS{manufacturer}="Linux 2.6.10-ARCH uhci_hcd"
    SYSFS{maxchild}="2"
    SYSFS{product}="Intel Corp. 82801BA/BAM USB (Hub #1)"
    SYSFS{serial}="0000:00:1f.2"
    SYSFS{speed}="12"
    SYSFS{version}=" 1.10"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:1f.2':
    BUS="pci"
    ID="0000:00:1f.2"
    SYSFS{class}="0x0c0300"
    SYSFS{detach_state}="0"
    SYSFS{device}="0x2442"
    SYSFS{irq}="10"
    SYSFS{local_cpus}="1"
    SYSFS{subsystem_device}="0x4541"
    SYSFS{subsystem_vendor}="0x8086"
    SYSFS{vendor}="0x8086"

  looking at the device chain at '/sys/devices/pci0000:00':
    BUS=""
    ID="pci0000:00"
    SYSFS{detach_state}="0"

Now I tired this line in my /etc/udev/rules.d/udev.rules:

BUS="usb", SYSFS{serial}="PalmSN12345678", KERNEL="ttyUSB[0-9]*", NAME="pilot"

Which was a big mistake because when I rebooted it caused some crazy errors with my second hard drive mounting as "/boot".  But pilot did come up in my /dev but pointed to /sys/block/hdb which is totally wrong and how I figured out why my system did not boot back up.  Now i am back trying to hack at this again.

I have also tried just:

BUS="usb", SYSFS{serial}="PalmSN12345678", NAME="palm", SYMLINK="pilot"

But that did not work also.  I have read a bunch of stuff and everything says to create a new rules file but the number coding back in udev 027 (http://www.reactivated.net/udevrules.php#terminology) and does not seem to counside with udev 050?  I am in need of help if someone could point me into the right direction.

-Digi-[/url]

Offline

#2 2005-02-03 22:27:28

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: UDEV Rules and my Palm Pilot

perhaps the serial number is goofy... you can try:

BUS="usb", SYSFS{product}="Palm Handheld", KERNEL="ttyUSB*", SYMLINK="pilot%n"

or maybe just

BUS="usb", SYSFS{product}="Palm Handheld", NAME="pilot%n"

the second one will remove the ttyUSB0 dev node, if I'm not mistaken...

the %n will do the whole numbering scheme 0, 1, 2 - if you have multiple "Palm Handheld" products...

as for udev naming schemes... the numbering is supposed to be of the file - you don't want to change the udev.rules file - instead you want to make a 00.rules file for your stuff (alphabetic priority) and maybe a 01.rules later on... or 99.rules... whatever you want

Offline

#3 2005-03-19 21:22:32

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: UDEV Rules and my Palm Pilot

I just passed much time on this and since I didn't find nothing on the board about it, I'm posting it.

Since udev 0.54, it doesn't uses /etc/udev/permissions.d/ anymore. You'll have to your permissions inside the rule file.

I have a Palm Zire 21, and here is my /etc/udev/rules.d/00-my.rules:

[...]
BUS="usb", SYSFS{serial}="PalmSN12345678", NAME="pilot", MODE="0666", GROUP="pilot", OWNER="nicolas"
[...]

I wish you luck!!!

Offline

Board footer

Powered by FluxBB