public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Problem with udev
@ 2007-02-06 12:33 jcd
       [not found] ` <20070206130011.28d34abb@krikkit.digimed.co.uk>
  0 siblings, 1 reply; 3+ messages in thread
From: jcd @ 2007-02-06 12:33 UTC (permalink / raw
  To: gentoo-user

Hi. 
I read lot of articles about writing udev rules. But I don't know why my
local rules don't work :(.
I have Thomson LYRA mp3 palyer. Currently I have it like /dev/sdc (I
don't know why, but there isn't any sdc(n) indicating partition. When I
mount /dev/sdc to some mount point it works (vfat)). Here is udevinfo:

------------------------------------------------------------------------
$udevinfo -a -p /sys/block/sdc

Udevinfo starts with...

  looking at device '/block/sdc':
    KERNEL=="sdc"
    SUBSYSTEM=="block"
    DRIVER==""
    ATTR{stat}=="      13       13      208     2290        0        0
0        0        0     2280     2290"
    ATTR{size}=="9717520"
    ATTR{removable}=="1"
    ATTR{range}=="16"
    ATTR{dev}=="8:32"

  looking at parent device
'/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host8/target8:0:0/8:0:0:0':
    KERNELS=="8:0:0:0"
    SUBSYSTEMS=="scsi"
    DRIVERS=="sd"
    ATTRS{ioerr_cnt}=="0x0"
    ATTRS{iodone_cnt}=="0x25b"
    ATTRS{iorequest_cnt}=="0x25b"
    ATTRS{iocounterbits}=="32"
    ATTRS{timeout}=="30"
    ATTRS{state}=="running"
    ATTRS{rev}=="0.01"
    ATTRS{model}=="LYRA_MPHR2301_EU"
    ATTRS{vendor}=="Thomson "
    ATTRS{scsi_level}=="3"
    ATTRS{type}=="0"
    ATTRS{queue_type}=="none"
    ATTRS{queue_depth}=="1"
    ATTRS{device_blocked}=="0"
    ATTRS{max_sectors}=="240"

  looking at parent device
'/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host8/target8:0:0':
    KERNELS=="target8:0:0"
    SUBSYSTEMS==""
    DRIVERS==""

  looking at parent device
'/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0/host8':
    KERNELS=="host8"
    SUBSYSTEMS==""
    DRIVERS==""

  looking at parent device
'/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.0':
    KERNELS=="1-6:1.0"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb-storage"
    ATTRS{modalias}=="usb:v069Bp0738d0000dc00dsc00dp00ic08isc06ip50"
    ATTRS{bInterfaceProtocol}=="50"
    ATTRS{bInterfaceSubClass}=="06"
    ATTRS{bInterfaceClass}=="08"
    ATTRS{bNumEndpoints}=="03"
    ATTRS{bAlternateSetting}==" 0"
    ATTRS{bInterfaceNumber}=="00"

  looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb1/1-6':
    KERNELS=="1-6"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}==""
    ATTRS{serial}=="22214F0E742222222222"
    ATTRS{product}=="THOMSON PDP2814"
    ATTRS{manufacturer}=="THOMSON"
    ATTRS{maxchild}=="0"
    ATTRS{version}==" 2.00"
    ATTRS{devnum}=="9"
    ATTRS{speed}=="480"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bDeviceProtocol}=="00"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceClass}=="00"
    ATTRS{bcdDevice}=="0000"
    ATTRS{idProduct}=="0738"
    ATTRS{idVendor}=="069b"
    ATTRS{bMaxPower}=="100mA"
    ATTRS{bmAttributes}=="c0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bNumInterfaces}==" 1"

  looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb1':
    KERNELS=="usb1"
    SUBSYSTEMS=="usb"
    DRIVERS=="usb"
    ATTRS{configuration}==""
    ATTRS{serial}=="0000:00:1d.7"
    ATTRS{product}=="EHCI Host Controller"
    ATTRS{manufacturer}=="Linux 2.6.18-gentoo-r2 ehci_hcd"
    ATTRS{maxchild}=="8"
    ATTRS{version}==" 2.00"
    ATTRS{devnum}=="1"
    ATTRS{speed}=="480"
    ATTRS{bMaxPacketSize0}=="64"
    ATTRS{bNumConfigurations}=="1"
    ATTRS{bDeviceProtocol}=="01"
    ATTRS{bDeviceSubClass}=="00"
    ATTRS{bDeviceClass}=="09"
    ATTRS{bcdDevice}=="0206"
    ATTRS{idProduct}=="0000"
    ATTRS{idVendor}=="0000"
    ATTRS{bMaxPower}=="  0mA"
    ATTRS{bmAttributes}=="e0"
    ATTRS{bConfigurationValue}=="1"
    ATTRS{bNumInterfaces}==" 1"

  looking at parent device '/devices/pci0000:00/0000:00:1d.7':
    KERNELS=="0000:00:1d.7"
    SUBSYSTEMS=="pci"
    DRIVERS=="ehci_hcd"
    ATTRS{broken_parity_status}=="0"

ATTRS{modalias}=="pci:v00008086d0000265Csv0000103Csd00002A0Abc0Csc03i20"
    ATTRS{local_cpus}=="ff"
    ATTRS{irq}=="18"
    ATTRS{class}=="0x0c0320"
    ATTRS{subsystem_device}=="0x2a0a"
    ATTRS{subsystem_vendor}=="0x103c"
    ATTRS{device}=="0x265c"
    ATTRS{vendor}=="0x8086"

  looking at parent device '/devices/pci0000:00':
    KERNELS=="pci0000:00"
    SUBSYSTEMS==""
    DRIVERS==""
------------------------------------------------------------------------

And this is my rule stored in /etc/udev/rules.d/10-local.rules

------------------------------------------------------------------------
#Thomson LYRA
SUBSYSTEM=="scsi", SYSFS{model}=="LYRA_MPHR2301_EU", SYMLINK+="lyra"
------------------------------------------------------------------------

It must be ok, I think, but when I plug in my mp3 player it don't work.
I tried lot of things but it is till bad.
Finally i decide to ask for help. Thx

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Problem with udev
       [not found] ` <20070206130011.28d34abb@krikkit.digimed.co.uk>
@ 2007-02-06 13:13   ` jcd
  2007-02-06 14:14     ` Neil Bothwick
  0 siblings, 1 reply; 3+ messages in thread
From: jcd @ 2007-02-06 13:13 UTC (permalink / raw
  To: gentoo-user

> The first item should be SUBSYSTEMS, not SUBSYSTEM. The second should be
> ATTRS{model}; as in 
> 
> SUBSYSTEMS=="scsi", ATTRS{model}=="LYRA_MPHR2301_EU", SYMLINK+="lyra"
> 
> If you cut and paste from the udevinfo output to your rules file, you
> avoid such errors.

Thank you very much. It is OK now. However, I followed this
documentation and there is described my approach (bad approach)
http://www.reactivated.net/writing_udev_rules.html .

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Problem with udev
  2007-02-06 13:13   ` jcd
@ 2007-02-06 14:14     ` Neil Bothwick
  0 siblings, 0 replies; 3+ messages in thread
From: Neil Bothwick @ 2007-02-06 14:14 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 409 bytes --]

On Tue, 06 Feb 2007 14:13:04 +0100, jcd wrote:

> Thank you very much. It is OK now. However, I followed this
> documentation and there is described my approach (bad approach)
> http://www.reactivated.net/writing_udev_rules.html .

Some of the sysfs naming has changed since that page was last updated.


-- 
Neil Bothwick

"Bother," said Pooh, as the EEC outlawed his favourite sized honey pot.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-02-06 14:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-06 12:33 [gentoo-user] Problem with udev jcd
     [not found] ` <20070206130011.28d34abb@krikkit.digimed.co.uk>
2007-02-06 13:13   ` jcd
2007-02-06 14:14     ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox