View previous topic :: View next topic |
Author |
Message |
fisherking Tux's lil' helper


Joined: 12 Nov 2003 Posts: 111
|
Posted: Tue Nov 22, 2005 3:29 pm Post subject: Udev problem again! |
|
|
Well, here commes yet another udev problem:
I have two usb units that I use: one mp3 player and one camera! To avoid cables I use the same contact for them and up til now it has worked like a charm.
But recently I can not mount the camera anymore. Probably after an udev upgrade but I am not sure since I dont use the camera alot.
Ok
1) the version of my current udev is 0.71 but I have also tried the stable 0.70 without luck. My kernel version is linux-2.6.14-gentoo-r2
2) My udev rules are defined in /etc/udev/rules.d/10-udev.rules and look like this:
Code: |
BUS="scsi", SYSFS{manufacturer}="CREATIVE", NAME="%k", SYMLINK="usbkey"
BUS="usb", SYSFS{product}="hp photosmart 720", NAME="%k", SYMLINK="camera"
|
3) When mounting the mp3 player the /dev/sda1 device is registered and it used to happend with the camera as well. I have tried with the rule BUS="scsi" for the camera, but then nothing happends at all.
4) when I plug the camera in the usb connection, the symlink /dev/camera is registered and the device /dev/usbdev2.x is created.
5) when trying to mount the /dev/camera (or /dev/usbdev2.x) I get the message that the devie is not a block device. Using:
Code: | mount -t vfat /dev/camera /mnt/camera/ |
information:
udevmonitor outputs:
Code: |
UEVENT[1132672938] add@/devices/pci0000:00/0000:00:1d.0/usb2/2-2
UEVENT[1132672938] add@/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0
UEVENT[1132672938] add@/class/usb_device/usbdev2.20
UDEV [1132672938] add@/devices/pci0000:00/0000:00:1d.0/usb2/2-2
UDEV [1132672938] add@/devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0
UDEV [1132672938] add@/class/usb_device/usbdev2.20
|
udevinfo -a -p /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2/ :
Code: |
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.
looking at class device '/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-2':
KERNEL=="2-2"
SUBSYSTEM=="unknown"
SYSFS{bConfigurationValue}=="1"
SYSFS{bDeviceClass}=="00"
SYSFS{bDeviceProtocol}=="00"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bMaxPower}==" 10mA"
SYSFS{bNumConfigurations}=="1"
SYSFS{bNumInterfaces}==" 1"
SYSFS{bcdDevice}=="0001"
SYSFS{bmAttributes}=="c0"
SYSFS{configuration}==""
SYSFS{devnum}=="20"
SYSFS{idProduct}=="6702"
SYSFS{idVendor}=="03f0"
SYSFS{manufacturer}=="Hewlett-Packard"
SYSFS{maxchild}=="0"
SYSFS{product}=="hp photosmart 720"
SYSFS{speed}=="12"
SYSFS{version}==" 2.00"
|
dmesg says:
Code: |
usb 2-2: new full speed USB device using uhci_hcd and address 20
|
And no I have not changed my kernel configuration!
And YES I have browsed the Internet and the forum, but I have not found anything usefull! |
|
Back to top |
|
 |
massimo Veteran


Joined: 22 Jun 2003 Posts: 1226
|
Posted: Tue Nov 22, 2005 4:57 pm Post subject: Re: Udev problem again! |
|
|
fisherking wrote: |
3) When mounting the mp3 player the /dev/sda1 device is registered and it used to happend with the camera as well. I have tried with the rule BUS="scsi" for the camera, but then nothing happends at all.
|
Did you only change BUS="usb" to BUS="scsi"? I'm not absolutely sure, but maybe you have to change the SYSFS argument too.
Ciao, _________________ Hello 911? How are you? |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|