And even worse - now I've sent it to alug social list! Oh someone shoot me now, please!
....
Sorry Mark - I just realised that I sent this mail to you a few days ago rather than the alug list.
2009/9/29 MJ Ray mjr@phonecoop.coop:
Jenny Hopkins wrote:
I've got a problem with an HP Photosmart R507 camera on an ubuntu jaunty system. The camera is set to behave as a disk drive. When plugged into a debian system it is assigned to be /dev/hdc1 and can be mounted. However, with the ubuntu, it won't assign a device. here is the tail of dmesg:
[14522.580027] usb 4-4: new full speed USB device using ohci_hcd and address 4 [14522.805646] usb 4-4: configuration #1 chosen from 1 choice [14522.815803] scsi8 : SCSI emulation for USB Mass Storage devices [14522.840286] usb-storage: device found at 4 [14522.840295] usb-storage: waiting for device to settle before scanning
lsusb shows the camera listed.
Doesn't matter. It's not recognising it as a SCSI disk. It would show something like:
scsi 0:0:0:0: Direct-Access CBM Flash Disk 5.00 PQ: 0 ANSI: 2 usb-storage: device scan complete
Does it complete the scan?
The only time i have anything like that was after reboot, when i got: [ 22.880604] scsi scan: INQUIRY result too short (5), using 36 [ 22.880618] scsi 6:0:0:0: Direct-Access HP PhotoSmart R507 A001 PQ: 0 ANSI: 0 [ 22.896587] sd 6:0:0:0: [sdb] 498176 512-byte hardware sectors: (255 MB/243 MiB) [ 22.901837] sd 6:0:0:0: [sdb] Write Protect is off [ 22.901846] sd 6:0:0:0: [sdb] Mode Sense: 0f 00 00 00 [ 22.901853] sd 6:0:0:0: [sdb] Assuming drive cache: write through [ 22.921851] sd 6:0:0:0: [sdb] 498176 512-byte hardware sectors: (255 MB/243 MiB) [ 22.928857] sd 6:0:0:0: [sdb] Write Protect is off [ 22.928865] sd 6:0:0:0: [sdb] Mode Sense: 0f 00 00 00 [ 22.928870] sd 6:0:0:0: [sdb] Assuming drive cache: write through [ 22.928883] sdb: sdb1 [ 22.948024] sd 6:0:0:0: [sdb] Attached SCSI removable disk [ 22.948163] sd 6:0:0:0: Attached scsi generic sg1 type 0
However trying to mount either sdb1 or sg0 denied they existed.
Otherwise the plugging and unplugging of the camera just shows: [14522.580027] usb 4-4: new full speed USB device using ohci_hcd and address 4 [14522.805646] usb 4-4: configuration #1 chosen from 1 choice [14522.815803] scsi8 : SCSI emulation for USB Mass Storage devices [14522.840286] usb-storage: device found at 4 [14522.840295] usb-storage: waiting for device to settle before scanning
and it never does.
Have you any suspicious-looking stalled processes? Can you remove the USB devices and rmmod usb-storage or does it complain that the module is in use? If so, something has failed badly in the USB drivers and only a reboot will clear it, in my experience.
The above reboot info suggests this could be a pointer. I'll check for stalled processes and do the rmmod things you suggest when i'm next in the same room as the camera and ubuntu over the next few days.
I've one camera (the Nisis DV4) which refuses to work on one workstation in a similar way at the moment. I'm sure it used to work. I think some USB devices are less than perfect and different kernel versions trigger the problems.
I'm puzzled that lsmod doesn't show any e/ohci_usb type modules and won't probe for them, but maybe this is an ubuntu thing.
"Won't probe for them"? Do you have the .ko files in /lib/modules? Anyway, I don't think that's related.
Ok, I'll ignore it then.
Thanks for the pointers - it would be great to go there and fix it instead of flapping around again.
Someone muttered something about firmware - would there be any way i can check that out?
Many thanks,
Jenny
2009/10/2 Jenny Hopkins hopkins.jenny@gmail.com:
And even worse - now I've sent it to alug social list! Oh someone shoot me now, please!
....
Sorry Mark - I just realised that I sent this mail to you a few days ago rather than the alug list.
2009/9/29 MJ Ray mjr@phonecoop.coop:
Jenny Hopkins wrote:
I've got a problem with an HP Photosmart R507 camera on an ubuntu jaunty system. The camera is set to behave as a disk drive. When plugged into a debian system it is assigned to be /dev/hdc1 and can be mounted. However, with the ubuntu, it won't assign a device. here is the tail of dmesg:
[14522.580027] usb 4-4: new full speed USB device using ohci_hcd and address 4 [14522.805646] usb 4-4: configuration #1 chosen from 1 choice [14522.815803] scsi8 : SCSI emulation for USB Mass Storage devices [14522.840286] usb-storage: device found at 4 [14522.840295] usb-storage: waiting for device to settle before scanning
lsusb shows the camera listed.
Doesn't matter. It's not recognising it as a SCSI disk. It would show something like:
scsi 0:0:0:0: Direct-Access CBM Flash Disk 5.00 PQ: 0 ANSI: 2 usb-storage: device scan complete
Does it complete the scan?
The only time i have anything like that was after reboot, when i got: [ 22.880604] scsi scan: INQUIRY result too short (5), using 36 [ 22.880618] scsi 6:0:0:0: Direct-Access HP PhotoSmart R507 A001 PQ: 0 ANSI: 0 [ 22.896587] sd 6:0:0:0: [sdb] 498176 512-byte hardware sectors: (255 MB/243 MiB) [ 22.901837] sd 6:0:0:0: [sdb] Write Protect is off [ 22.901846] sd 6:0:0:0: [sdb] Mode Sense: 0f 00 00 00 [ 22.901853] sd 6:0:0:0: [sdb] Assuming drive cache: write through [ 22.921851] sd 6:0:0:0: [sdb] 498176 512-byte hardware sectors: (255 MB/243 MiB) [ 22.928857] sd 6:0:0:0: [sdb] Write Protect is off [ 22.928865] sd 6:0:0:0: [sdb] Mode Sense: 0f 00 00 00 [ 22.928870] sd 6:0:0:0: [sdb] Assuming drive cache: write through [ 22.928883] sdb: sdb1 [ 22.948024] sd 6:0:0:0: [sdb] Attached SCSI removable disk [ 22.948163] sd 6:0:0:0: Attached scsi generic sg1 type 0
However trying to mount either sdb1 or sg0 denied they existed.
Otherwise the plugging and unplugging of the camera just shows: [14522.580027] usb 4-4: new full speed USB device using ohci_hcd and address 4 [14522.805646] usb 4-4: configuration #1 chosen from 1 choice [14522.815803] scsi8 : SCSI emulation for USB Mass Storage devices [14522.840286] usb-storage: device found at 4 [14522.840295] usb-storage: waiting for device to settle before scanning
and it never does.
Have you any suspicious-looking stalled processes? Can you remove the USB devices and rmmod usb-storage or does it complain that the module is in use? If so, something has failed badly in the USB drivers and only a reboot will clear it, in my experience.
Anyway - Back with PC and camera now, and I can rmmod usb_storage happily, whether camera is plugged in or not - it just doesn't seem to be being used.
Thanks for the pointers - it would be great to go there and fix it instead of flapping around again.
Nope, I'm flapping again.
If I plug the camera in to my laptop the device is scanned, scan complete and can be mounted. usb modules running and showing >0 are usb_storage firmware_class (?) scsi_mod usbcore
Now plug back in to PC. scan does not settle. usb modules list shows: lsmod | grep usb usb_storage 99648 0 usbhid 42336 0 usblp 20224 0
modprobe scsi_mod: FATAL: Module scsi_mod not found
Thanks,
Sorry about getting mails all going to wrong places right, left and centre.
Jenny
Jenny Hopkins wrote: [...]
Nope, I'm flapping again.
If I plug the camera in to my laptop the device is scanned, scan complete and can be mounted. usb modules running and showing >0 are usb_storage firmware_class (?) scsi_mod usbcore
Now plug back in to PC. scan does not settle. usb modules list shows: lsmod | grep usb usb_storage 99648 0 usbhid 42336 0 usblp 20224 0
modprobe scsi_mod: FATAL: Module scsi_mod not found
Oh well, I'm stumped. There's a comment over on http://qbik.ch/usb/devices/showdev.php?id=2862 of "chose MSDC protocol on the Camera settings" by Damien Hardy but I guess you've already done that. Also, I think you want to modprobe sd rather than scsi_mod, but I would expect usb_storage to pull that in. Maybe it's built into the kernel? Could find out with "zgrep CONFIG_BLK_DEV_SD /proc/config.gz"
Good luck!
2009/10/5 MJ Ray mjr@phonecoop.coop:
Oh well, I'm stumped. There's a comment over on http://qbik.ch/usb/devices/showdev.php?id=2862 of "chose MSDC protocol on the Camera settings" by Damien Hardy but I guess you've already done that. Also, I think you want to modprobe sd rather than scsi_mod, but I would expect usb_storage to pull that in. Maybe it's built into the kernel? Could find out with "zgrep CONFIG_BLK_DEV_SD /proc/config.gz"
Thanks, Mark.
I have finally got this working. I don't know why it works but it does!
Ubuntu keep their config in /boot/ so I went and had a look and the CONFIG_BLK_DEV_SD was set to yes. I went to check out other kernelly stuff available using apt, though, and duly installed linux-backports-modules-2.6.28-15-generic.
Plugging in the camera now showed the device scan as completed, rather than waiting to settle. No device was assigned to it though, still, so I tried setting the camera to use camera over usb rather than MSDC and - it now worked. This option had previously done nothing.
Thanks,
Jenny