linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* HELP: udev config.
@ 2004-03-03  7:57 reg
  2004-03-03 18:39 ` Greg KH
  2004-03-03 19:39 ` reg
  0 siblings, 2 replies; 3+ messages in thread
From: reg @ 2004-03-03  7:57 UTC (permalink / raw)
  To: linux-hotplug

HELP.
I had a working namedev.config for use with udev back in October, but
havent been using 2.6 much since (so haven't been following udev).
I have currently loaded udev-021.

Things have changed, and I cant seem to get a rules.conf to work.
Any help would be appreciated.

Here is what I see in /var/log/messages when I connect the usb-key

---
 
Mar  3 00:45:10 orion kernel: hub 3-0:1.0: new USB device on port 2, assigned 
address 7
Mar  3 00:45:10 orion kernel: scsi6 : SCSI emulation for USB Mass Storage 
devices
Mar  3 00:45:10 orion scsi.agent[18148]: how to add device type= at 
/devices/pci0000:00/0000:00:0d.0/usb3/3-2/3-2:1.0/host6/6:0:0:0 ??
Mar  3 00:45:10 orion kernel:   Vendor:           Model: USB DISK          
Rev: 2.08
Mar  3 00:45:10 orion kernel:   Type:   Direct-Access                      
ANSI SCSI revision: 02
Mar  3 00:45:10 orion kernel: SCSI device sda: 507904 512-byte hdwr sectors 
(260 MB)
Mar  3 00:45:10 orion kernel: sda: assuming Write Enabled
Mar  3 00:45:10 orion kernel: sda: assuming drive cache: write through
Mar  3 00:45:11 orion kernel:  sda: sda1
Mar  3 00:45:11 orion kernel: Attached scsi removable disk sda at scsi6, 
channel 0, id 0, lun 0
Mar  3 00:45:11 orion kernel: Attached scsi generic sg2 at scsi6, channel 0, 
id 0, lun 0,  type 0
Mar  3 00:45:11 orion modprobe: FATAL: Module usb_storage already in kernel. 
Mar  3 00:45:11 orion kernel: updfstab: numerical sysctl 1 23 is obsolete.
Mar  3 00:45:11 orion modprobe: FATAL: Module aic7xxx already in kernel. 
Mar  3 00:45:11 orion modprobe: FATAL: Module ide_probe_mod not found. 
Mar  3 00:45:11 orion modprobe: FATAL: Module ide_probe not found. 

---

I have 4 lines in udev.rules, none of them work:

---

BUS="usb", SYSFS{model}="USB DISK        ", NAME="usb_key1"

BUS="usb", model="USB DISK        ", NAME="usb_key2"

BUS="scsi", SYSFS{model}="USB DISK        ", NAME="usb_key3"

BUS="scsi", model="USB DISK        ", NAME="usb_key4"

---

and yes, the model is returned with 8 trailing blanks.
there are now new entries of ANY sort in /udev, not usb_key? nor sda?

---

'Nuther question.
What are the two lines

Mar  3 00:45:11 orion modprobe: FATAL: Module ide_probe_mod not found. 
Mar  3 00:45:11 orion modprobe: FATAL: Module ide_probe not found.

in the messages file trying to tell me?  I dont see a ide_probe_mod in
either the udev or the kernel sources.

---

All help appreciated, Im sure Im just doing something stupid.





-- 
                                        Reg.Clemens
                                        reg@dwf.com




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: HELP: udev config.
  2004-03-03  7:57 HELP: udev config reg
@ 2004-03-03 18:39 ` Greg KH
  2004-03-03 19:39 ` reg
  1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2004-03-03 18:39 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Mar 03, 2004 at 12:57:11AM -0700, reg@dwf.com wrote:
> Mar  3 00:45:11 orion modprobe: FATAL: Module ide_probe_mod not found. 
> Mar  3 00:45:11 orion modprobe: FATAL: Module ide_probe not found. 

These lines have nothing to do with udev

> ---
> 
> I have 4 lines in udev.rules, none of them work:
> 
> ---
> 
> BUS="usb", SYSFS{model}="USB DISK        ", NAME="usb_key1"
> 
> BUS="usb", model="USB DISK        ", NAME="usb_key2"
> 
> BUS="scsi", SYSFS{model}="USB DISK        ", NAME="usb_key3"
> 
> BUS="scsi", model="USB DISK        ", NAME="usb_key4"
> 
> ---
> 
> and yes, the model is returned with 8 trailing blanks.
> there are now new entries of ANY sort in /udev, not usb_key? nor sda?

What does:	
	udevinfo -p /sys/block/sda -a
show?

Why do you have those "model=" lines in your rules file?  They will not
do anything.

thanks,

greg k-h


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

* Re: HELP: udev config.
  2004-03-03  7:57 HELP: udev config reg
  2004-03-03 18:39 ` Greg KH
@ 2004-03-03 19:39 ` reg
  1 sibling, 0 replies; 3+ messages in thread
From: reg @ 2004-03-03 19:39 UTC (permalink / raw)
  To: linux-hotplug

> On Wed, Mar 03, 2004 at 12:57:11AM -0700, reg@dwf.com wrote:
> > Mar  3 00:45:11 orion modprobe: FATAL: Module ide_probe_mod not found. 
> > Mar  3 00:45:11 orion modprobe: FATAL: Module ide_probe not found. 
> 
> These lines have nothing to do with udev
> 
> > ---
> > 
> > I have 4 lines in udev.rules, none of them work:
> > 
> > ---
> > 
> > BUS="usb", SYSFS{model}="USB DISK        ", NAME="usb_key1"
> > 
> > BUS="usb", model="USB DISK        ", NAME="usb_key2"
> > 
> > BUS="scsi", SYSFS{model}="USB DISK        ", NAME="usb_key3"
> > 
> > BUS="scsi", model="USB DISK        ", NAME="usb_key4"
> > 
> > ---
> > 
> > and yes, the model is returned with 8 trailing blanks.
> > there are no new entries of ANY sort in /udev, not usb_key? nor sda?
> 
> What does:	
> 	udevinfo -p /sys/block/sda -a
> show?
>

It shows:

---

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 in a rule to match the
device for which the node will be created.

device '/sys/block/sda' has major:minor 8:0
  looking at class device '/sys/block/sda':
    SYSFS{dev}="8:0"
    SYSFS{range}="16"
    SYSFS{size}="507904"
    SYSFS{stat}="       2        0       16      213        0        0        
0        0        0
   213      213"

follow the class device's "device"
  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3/3-2
/3-2:1.0/host8/8:0:0:
0':
    BUS="scsi"
    ID="8:0:0:0"
    SYSFS{detach_state}="0"
    SYSFS{type}="0"
    SYSFS{max_sectors}="240"
    SYSFS{device_blocked}="0"
    SYSFS{queue_depth}="1"
    SYSFS{scsi_level}="3"
    SYSFS{vendor}="        "
    SYSFS{model}="USB DISK        "
    SYSFS{rev}="2.08"
    SYSFS{online}="1"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3/3-2
/3-2:1.0/host8':
    BUS=""
    ID="host8"
    SYSFS{detach_state}="0"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3/3-2
/3-2:1.0':
    BUS="usb"
    ID="3-2:1.0"
    SYSFS{detach_state}="0"
    SYSFS{bInterfaceNumber}="00"
    SYSFS{bAlternateSetting}=" 0"
    SYSFS{bNumEndpoints}="03"
    SYSFS{bInterfaceClass}="08"
    SYSFS{bInterfaceSubClass}="06"
    SYSFS{bInterfaceProtocol}="50"
    SYSFS{iInterface}="00"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3/3-2
':
    BUS="usb"
    ID="3-2"
    SYSFS{detach_state}="0"
    SYSFS{bNumInterfaces}=" 1"
    SYSFS{bConfigurationValue}="1"
    SYSFS{bmAttributes}="80"
    SYSFS{bMaxPower}="100mA"
    SYSFS{idVendor}="0d7d"
    SYSFS{idProduct}="0100"
    SYSFS{bcdDevice}="0100"
    SYSFS{bDeviceClass}="00"
    SYSFS{bDeviceSubClass}="00"
    SYSFS{bDeviceProtocol}="00"
    SYSFS{bNumConfigurations}="1"
    SYSFS{speed}="12"
    SYSFS{manufacturer}=" "
    SYSFS{product}="USB Disk"
    SYSFS{serial}="19281608003D"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0/usb3':
    BUS="usb"
    ID="usb3"
    SYSFS{detach_state}="0"
    SYSFS{bNumConfigurations}="1"
    SYSFS{bNumInterfaces}=" 1"
    SYSFS{bConfigurationValue}="1"
    SYSFS{bmAttributes}="40"
    SYSFS{bMaxPower}="  0mA"
    SYSFS{idVendor}="0000"
    SYSFS{idProduct}="0000"
    SYSFS{bcdDevice}="0206"
    SYSFS{bDeviceClass}="09"
    SYSFS{bDeviceSubClass}="00"
    SYSFS{bDeviceProtocol}="00"
    SYSFS{speed}="12"
    SYSFS{manufacturer}="Linux 2.6.1-1.65 uhci_hcd"
    SYSFS{product}="UHCI Host Controller"
    SYSFS{serial}="0000:00:0d.0"

  looking at the device chain at '/sys/devices/pci0000:00/0000:00:0d.0':
    BUS="pci"
    ID="0000:00:0d.0"
    SYSFS{detach_state}="0"
    SYSFS{vendor}="0x1106"
    SYSFS{device}="0x3038"
    SYSFS{subsystem_vendor}="0x0925"
    SYSFS{subsystem_device}="0x1234"
    SYSFS{class}="0x0c0300"
    SYSFS{irq}="9"

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

 
> Why do you have those "model=" lines in your rules file?  They will not
> do anything.
> 

Well, since the SYSFS{model} didnt work, I was trying something more
like what I had in my old named.conf file.  There is only one device,
these 4 lines were all (different) attempts to 'see' it.

---

I see something like the SYSFS{model} string I tried in the 2nd block
of the udevinfo output above (BUS="scsi"). I see a similar SYSFS{product} line
(but with upper/lower case) in the last block (BUS="usb").
 
> thanks,
> 
> greg k-h
> 

OK, I tried another experiment trying to match the last block:

BUS="usb", SYSFS{product}="USB Disk", NAME="usb_key1"

and that works, so Im back in business.

But can you explain why the line

BUS="scsi", SYSFS{model}="USB DISK        ", NAME="usb_key3"

that I had before, and SEEMS to match the scsi entry doesnt work?
If I understood that I probably wont be asking for help in converting
my other devices to work with the current udev...






-- 
                                        Reg.Clemens
                                        reg@dwf.com




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

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

end of thread, other threads:[~2004-03-03 19:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-03  7:57 HELP: udev config reg
2004-03-03 18:39 ` Greg KH
2004-03-03 19:39 ` reg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).