Debugging udev problem; request ideas
Hey guys,
My saga continues trying to get my Kodak DC6490 camera to get a USB storage device (i.e., /dev/sda1) associated with it. I'm using Debian Sarge/2.6.9-1-smp with udev.
I'm thinking that somewhere in either hotplug or udev land, the event is getting dropped (presumably a config problem).
I added the following lines to the top of the /sbin/hotplug script:
logger -s -t CJC::hotplug env
logger -s -t CJC::hotplug-cmdline "$@"
Low and behold, when I plug the camera in and hit its "sync" button, I get these lines appearing in /var/log/syslog:
Quoted 6 lines
Nov 28 01:32:26 localhost kernel: usb 2-1.2: new full speed USB device using address 13 Nov 28 01:32:26 localhost CJC::hotplug: DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.2 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTIONd PWD=/ SHLVL=1 HOME=/ SEQNUM�0 _=/usr/bin/env Nov 28 01:32:26 localhost CJC::hotplug: DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.2/2-1.2:1.0 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTIONd PWD=/ SHLVL=1 HOME=/ DEVICE=/proc/bus/usb/002/013 INTERFACE=6/1/1 PRODUCT@a/575/100 TYPE=0/0/0 SEQNUM�1 _=/usr/bin/env Nov 28 01:32:26 localhost CJC::hotplug-cmdline: usb Nov 28 01:32:26 localhost CJC::hotplug-cmdline: usb Nov 28 01:32:27 localhost usb.agent[8506]: libgphoto2: loaded successfully
So I have good reason to believe that the hotplug script catches the event.
So then I added a file named /etc/udev/rules.d/10-local.rules, with the following content:
Quoted 5 lines
KERNEL="*", PROGRAM="logger -s -t CJC::/etc/udev/rules.d/10-local.rules", NAME="foo%k"
SYSFS{manufacturer}="Eastman Kodak Company", SYSFS{serial}="KCTCT42820593", NAME="%k", PROGRAM="logger -s -t CJC::/etc/udev/rules.d/\
10-local.rules", SYMLINK="/dev/jenns-camera"
The first rule was just an attempt to get udev to print SOMETHING, ANYTHING to syslog when I hit the camera's sync button. But adding these rules didn't cause any change in what I see from /var/log/syslog when I sync the camera.
Does anyone have any ideas about where this process (or my understanding) might be falling down?
Also, does anyone know why when I sync the camera, I see the addition of TWO distinct devices?:
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.2 and
DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.2/2-1.2:1.0
Thanks,
Christian
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
Quoted 9 lines · Christian Convey
Hey guys,
My saga continues trying to get my Kodak DC6490 camera to get a USB storage device (i.e.,
/dev/sda1) associated with it. I'm using Debian Sarge/2.6.9-1-smp with udev.I'm thinking that somewhere in either hotplug or udev land, the event is getting dropped (presumably a config problem).
Quoted 23 lines
I added the following lines to the top of the
/sbin/hotplugscript:
logger -s -tCJC::hotplugenv
logger -s -t CJC::hotplug-cmdline "$@"Low and behold, when I plug the camera in and hit its "sync" button, I get these lines appearing in
/var/log/syslog:Quoted 15 lines
Nov 28 01:32:26 localhost kernel: usb 2-1.2: new full speed USB device using address 13 Nov 28 01:32:26 localhost CJC::hotplug: DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.2 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTIONd PWD=/ SHLVL=1 HOME=/ SEQNUM�0 _=/usr/bin/env Nov 28 01:32:26 localhost CJC::hotplug:DEVPATH=/devices/pci0000:00/0000:00:1d.1/usb2/2-1/2-1.2/2-1.2:1.0 PATH=/sbin:/bin:/usr/sbin:/usr/bin ACTIONd PWD=/ SHLVL=1 HOME=/ DEVICE=/proc/bus/usb/002/013 INTERFACE=6/1/1 PRODUCT@a/575/100 TYPE=0/0/0 SEQNUM�1 _=/usr/bin/env
Nov 28 01:32:26 localhost CJC::hotplug-cmdline: usb Nov 28 01:32:26 localhost CJC::hotplug-cmdline: usb Nov 28 01:32:27 localhost usb.agent[8506]: libgphoto2: loadedsuccessfully
So, gphoto2 works for this device? If so, then no device node is needed, and udev will not ever enter into the picture for you.
Has the usb-storage driver ever worked for this device?
What does /proc/bus/usb/devices show when this device is plugged in?
thanks,
greg k-h
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel