View previous topic :: View next topic |
Author |
Message |
psims n00b
Joined: 17 Sep 2002 Posts: 10
|
Posted: Tue Sep 17, 2002 12:22 am Post subject: Digital camera woes - please help! |
|
|
I have an Olympus D-520 Zoom digital camera. I have two flash cards for it, a Smartmedia 128M one and the Olympus 32M one that came with it. I understand that I should be able to plug the camera in via usb and have the flash cards recognized as a scsi device. I installed the hotplug package. I have usbcore and usb-ohci loaded as modules. When I plug it in I get the following:
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x7b4/0x102) is not claimed by any active driver.
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
usbview shows the camera. However I do not see a device node for it. I have searched far and wide, I seem to have found some others who have had the same problem but no answers. Can someone tell me what's going on here, and just what is the purpose for the hotplugging package, is it just to run scripts when devices are detected like mounting the device?
If anyone can help I would really appreciate it.
Thanks,
psims |
|
Back to top |
|
|
pilla Bodhisattva
Joined: 07 Aug 2002 Posts: 7729 Location: Underworld
|
Posted: Tue Sep 17, 2002 2:46 am Post subject: Re: Digital camera woes - please help! |
|
|
Are you sure your camera is supported? I have a Vivitar USB but I cannot access it under Linux. Make some searchs in the forums and also Google just to be sure somebody else hasn't done it yet...
You can make some research from [url]gphoto.sourceforge.net[/url]. My 2 cents.
psims wrote: | I have an Olympus D-520 Zoom digital camera. I have two flash cards for it, a Smartmedia 128M one and the Olympus 32M one that came with it. I understand that I should be able to plug the camera in via usb and have the flash cards recognized as a scsi device. I installed the hotplug package. I have usbcore and usb-ohci loaded as modules. When I plug it in I get the following:
hub.c: USB new device connect on bus1/1, assigned device number 2
usb.c: USB device 2 (vend/prod 0x7b4/0x102) is not claimed by any active driver.
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi0 : SCSI emulation for USB Mass Storage devices
usbview shows the camera. However I do not see a device node for it. I have searched far and wide, I seem to have found some others who have had the same problem but no answers. Can someone tell me what's going on here, and just what is the purpose for the hotplugging package, is it just to run scripts when devices are detected like mounting the device?
If anyone can help I would really appreciate it.
Thanks,
psims |
Last edited by pilla on Tue Sep 17, 2002 2:47 am; edited 1 time in total |
|
Back to top |
|
|
psims n00b
Joined: 17 Sep 2002 Posts: 10
|
Posted: Tue Sep 17, 2002 2:26 pm Post subject: Could be it |
|
|
I was afraid this might be the problem, but according to Lycoris' hardware compatibility list the 510 is supported:
Certification: No
Product Name: Olympus D-510 Zoom
Manufacturer: Lycoris
Model: None
Revision/Chipset: None
Category: Imaging Hardware
Compatability: 100%
Product URL:
Driver URL:
Description: This USB caerma works like a mass storage device. When you plug it in, it is available as a SCSI device. You can mount that and copy/delete/write to it.
Notes: None
I didn't think there should be much difference between the 510 and the 520. Also, the ZDNet linux hardware database appears to list it as supported:
http://lhd.datapower.com/db/dispproduct.php3?DISP?3220#resources
Do you know what would not be supported, the SmartMedia card, the usb mechanism? |
|
Back to top |
|
|
Kabuto l33t
Joined: 01 Aug 2002 Posts: 701
|
Posted: Tue Sep 17, 2002 2:55 pm Post subject: |
|
|
That model acts like a SCSI drive. So you should just be able to mount the SCSI srX device like a regular drive. |
|
Back to top |
|
|
psims n00b
Joined: 17 Sep 2002 Posts: 10
|
Posted: Tue Sep 17, 2002 9:12 pm Post subject: But no sr device |
|
|
When I load the ide-scsi module I get the sr (sr0 and sr1) devices for the two cdrom drives, but when I insert usb-storage a device never appears. |
|
Back to top |
|
|
SNo0py Apprentice
Joined: 12 Jul 2002 Posts: 270 Location: Vienna, Austria
|
Posted: Sun Oct 20, 2002 1:33 pm Post subject: |
|
|
Kabuto wrote: | That model acts like a SCSI drive. So you should just be able to mount the SCSI srX device like a regular drive. |
I'm having an Fuji Finepix which acts also as an SCSI-Device. I can manually mount and unmount it without problems, but I want to automount the /dev/sda0 when connecting the Cam to the bus -> how does this work? _________________ Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
|
Back to top |
|
|
yannick n00b
Joined: 17 May 2002 Posts: 23 Location: Brussels, Belgium
|
Posted: Mon Oct 21, 2002 12:59 am Post subject: |
|
|
Hi,
it is really simple (though I spent a night to find how to use all the functionnality of hotplug) :
Install hotplug and create a new file /etc/hotplug/usb/usb-storage with this in it :
Code: |
#!/bin/bash
if [ "$PRODUCT" = "4cb/100/1000" ]; then
mount /dev/sda1 -t vfat -o umask=000 /mnt/fuji
echo "#!/bin/bash" > $REMOVER
echo "umount /mnt/fuji" >> $REMOVER
chmod a+x $REMOVER
fi
|
Then chmod a+x /etc/hotplug/usb/usb-storage and that's all !
Edit: If it doesn't exist, create the directory /var/run/usb/, cause that's where $REMOVER will be created.
This file is called just after the module usb-storage is loaded, it mounts the camera file system then fills another file which will be called when the camera is disconnected and will unmount the camera.
If you want to modify this script, check /etc/hotplug/usb.agent to see what information is available (like $PRODUCT, $REMOVER, ...) to the script.
The product number in this script is the one of the Fujifilm FinePix 1400Zoom and it works perfectly with my Fujifilm FinePix 6800Zoom. It's magic.
Hope it helps,
Yannick
Last edited by yannick on Mon Nov 18, 2002 3:01 pm; edited 1 time in total |
|
Back to top |
|
|
/ n00b
Joined: 14 Aug 2002 Posts: 26
|
Posted: Tue Oct 22, 2002 7:39 am Post subject: Re: But no sr device |
|
|
psims wrote: | When I load the ide-scsi module I get the sr (sr0 and sr1) devices for the two cdrom drives, but when I insert usb-storage a device never appears. |
Are you sure no devices along the line /dev/sda1 are created?
(might also be sdb1 ) |
|
Back to top |
|
|
psims n00b
Joined: 17 Sep 2002 Posts: 10
|
Posted: Sun Oct 27, 2002 6:30 pm Post subject: no devices |
|
|
No, nothing in /dev/sd*
I have sr0 and sr1 for the two cdrom drivers.
I can see the camera in /proc/bus/usb/devices
When I modprobe usb-storage I get:
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
scsi1 : SCSI emulation for USB Mass Storage devices
scsi: device set offline - not ready or command retry failed after bus reset: host 1 channel 0 id 0 lun 0
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
USB Mass Storage support registered.
The camera also shows up in /proc/scsi/usb-storage-0/1.
It does not show up as an attached device in /proc/scsi/scsi.
I included Microtech and Sandisk smartmedia support in the kernel.
No /dev/sd anything. |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Sun Oct 27, 2002 7:02 pm Post subject: |
|
|
couple of things...i have a olympus d-450 , and use the sandisk to read the smartmedia.
but anyway did you create a mount point and device entry in fstab for your camera
/dev/sda1 /mnt/flash vfat noauto,users,ro 0 0
if you did then what is the erro messge when you try to mount /mnt/flash or what ever you called it?
also try comiling the usb-storage intot he kernel instead of a module and boot the system with the camera on? and plugged into a usb port. |
|
Back to top |
|
|
psims n00b
Joined: 17 Sep 2002 Posts: 10
|
Posted: Sun Oct 27, 2002 7:51 pm Post subject: no sda |
|
|
When I try to mount it, I get:
mount: special device /dev/sda1 does not exist
I get the same with usb-storage compiled into the kernel.
Using devfs, my cdroms are mounted with /dev/cdroms/cdrom0
Where should the flash show up? |
|
Back to top |
|
|
psims n00b
Joined: 17 Sep 2002 Posts: 10
|
Posted: Sun Oct 27, 2002 8:12 pm Post subject: scsi |
|
|
I rebooted with usb-storage compiled in and the cameral plugged in. Here is my dmesg from the initialization of teh scsi devices:
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
Vendor: TOSHIBA Model: DVD-ROM SD-M1202 Rev: 1020
Type: CD-ROM ANSI SCSI revision: 02
Vendor: IOMEGA Model: ZIPCD1024INT-A Rev: 1.8
Type: CD-ROM ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi CD-ROM sr1 at scsi0, channel 0, id 1, lun 0
sr0: scsi3-mmc drive: 32x/32x cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
sr1: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 9 for device 00:02.0
usb-ohci.c: USB OHCI at membase 0xd0830000, IRQ 9
usb-ohci.c: usb-00:02.0, Acer Laboratories Inc. [ALi] USB 1.1 Controller
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 4 ports detected
PCI: Found IRQ 9 for device 00:06.0
usb-ohci.c: USB OHCI at membase 0xd0832000, IRQ 9
usb-ohci.c: usb-00:06.0, Acer Laboratories Inc. [ALi] USB 1.1 Controller (#2)
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
pci_hotplug: PCI Hot Plug PCI Core version: 0.4
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 32768)
ip_conntrack version 2.1 (2047 buckets, 16376 max) - 304 bytes per conntrack
ip_tables: (C) 2000-2002 Netfilter core team
ipt_time loading
ipt_random match loaded
ipt_nth match loaded
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
ds: no socket drivers loaded!
reiserfs: checking transaction log (device 03:01) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
VFS: Mounted root (reiserfs filesystem) readonly.
Mounted devfs on /dev
Freeing unused kernel memory: 92k freed
hub.c: USB new device connect on bus1/2, assigned device number 2
usb-storage: act_altsettting is 0
usb-storage: id_index calculated to be: 65
usb-storage: Array length appears to be: 67
usb-storage: USB Mass Storage device detected
usb-storage: Endpoints: In: 0xc1a5b714 Out: 0xc1a5b700 Int: 0x00000000 (Period 0)
usb-storage: New GUID 07b401020000000108112582
usb-storage: GetMaxLUN command result is 1, data is 0
usb-storage: Transport: Bulk
usb-storage: Protocol: Transparent SCSI
usb-storage: *** thread sleeping.
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage: 12 00 00 00 ff 00 34 c1 0b 56 1b c0
usb-storage: Bulk command S 0x43425355 T 0x5 Trg 0 LUN 0 L 255 F 128 CL 6
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 255 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 36/255
usb-storage: Bulk data transfer result 0x1
usb-storage: Attempting to get CSW...
usb-storage: clearing endpoint halt for pipe 0xc0010280
usb-storage: usb_stor_clear_halt: result=0
usb-storage: Attempting to get CSW (2nd try)...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x55425355 T 0x5 R 219 Stat 0x0
usb-storage: Bulk logical error
usb-storage: -- transport indicates error, resetting
usb-storage: Bulk reset requested
Adding Swap: 273096k swap-space (priority -1)
reiserfs: checking transaction log (device 03:02) ...
usb-storage: command_abort() called
usb-storage: -- nothing to abort
usb-storage: device_reset() called
usb-storage: Bulk reset requested
usb-storage: usb_stor_clear_halt: result=0
usb-storage: usb_stor_clear_halt: result=0
usb-storage: Bulk soft reset completed
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
Using r5 hash to sort names
ReiserFS version 3.6.25
reiserfs: checking transaction log (device 03:03) ...
Using r5 hash to sort names
ReiserFS version 3.6.25
usb-storage: usb_stor_clear_halt: result=0
usb-storage: usb_stor_clear_halt: result=0
usb-storage: Bulk soft reset completed
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command TEST_UNIT_READY (6 bytes)
usb-storage: 00 00 00 00 00 00 34 c1 0b 56 1b c0
usb-storage: Bulk command S 0x43425355 T 0x5 Trg 0 LUN 0 L 0 F 0 CL 6
usb-storage: Bulk command transfer result=0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x55425355 T 0x5 R 0 Stat 0x1
usb-storage: Bulk logical error
usb-storage: -- transport indicates error, resetting
usb-storage: Bulk reset requested
eth1: Setting 10mbps half-duplex based on auto-negotiated partner ability 4021.
eth2: Setting half-duplex based on auto-negotiated partner ability 0000.
usb-storage: usb_stor_clear_halt: result=0
usb-storage: usb_stor_clear_halt: result=0
usb-storage: Bulk soft reset completed
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: bus_reset() called
resize_dma_pool: unknown device type -1 |
|
Back to top |
|
|
rommel Veteran
Joined: 19 Apr 2002 Posts: 1145 Location: Williamsburg Virginia
|
Posted: Mon Oct 28, 2002 4:10 am Post subject: |
|
|
well the dmesg out put for mine with the sandisk plugged in at boot looks like this
Code: | scsi3 : SCSI emulation for USB Mass Storage devices
Vendor: Sandisk Model: ImageMate SDDR-0 Rev: 0208
Type: Direct-Access ANSI SCSI revisio
n: 02
Attached scsi removable disk sde at scsi3, channel 0, id 0, lu
n 0
SCSI device sde: 32768 512-byte hdwr sectors (17 MB)
sde: Write Protect is on
/dev/scsi/host3/bus0/target0/lun0: p1
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2
hub.c: USB new device connect on bus3/2, assigned device numbe
r 3
|
thats about the extent of the output when my system boots for the usb-storage....earlier in the dmesg it loads the storage driver but the output is minimal compared to yours....so like there is a conflict with the device in that it isnt supported or its an irq thing.
what kernel are you running? it might be worth trying another kernel and see if the output changes any.
and you ahve entered a mount point in /mnt and an entry in fstab for the device ? yes? |
|
Back to top |
|
|
elzbal Guru
Joined: 31 Aug 2002 Posts: 364 Location: Seattle, WA, USA
|
Posted: Mon Oct 28, 2002 6:30 am Post subject: |
|
|
I don't know if this helps, but I have an Olympus C-4000 (which i *love*). As it turns out, the C-4000 has a broken/limited USB storage driver for the camera's built-in USB. The Linux drivers simply cannot communicate with that device. I don't remember the exact error message, but I think the kernel tried to report a bad cable.
Anyway, I ended up getting a $20 (or was it $30?) SanDisk SmartMedia reader/writer. I have had no problems with the reader since. I just leave the reader on the computer at all times (using one of the rear USB ports). I also like the fact that I'm not using my camera's batteries when I view or download pictures.
I don't know how similar the C-4000 is to your camera. It's likely that you may be a bit better off than I, since Lycoris claims compatability. However, at some point you may want to consider a dedicated SmartMedia reader device (SanDisk recommended). |
|
Back to top |
|
|
SNo0py Apprentice
Joined: 12 Jul 2002 Posts: 270 Location: Vienna, Austria
|
Posted: Tue Nov 12, 2002 9:54 am Post subject: |
|
|
yannick wrote: |
Code: |
#!/bin/bash
if [ "$PRODUCT" = "4cb/100/1000" ]; then
mount /dev/sda1 -t vfat -o umask=000 /mnt/fuji
echo "#!/bin/bash" > $REMOVER
echo "umount /mnt/fuji" >> $REMOVER
chmod a+x $REMOVER
fi
|
Then chmod a+x /etc/hotplug/usb/usb-storage and that's all !
|
Hi!
Your script is working fine for mounting the cam. The remover-script is also created but not executed (because the usb-storage-driver stays in memory) so I'm switching off the cam and the device is mounted until the next reboot
Any suggestions?
Thanks,
SNo0py _________________ Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
|
Back to top |
|
|
SNo0py Apprentice
Joined: 12 Jul 2002 Posts: 270 Location: Vienna, Austria
|
Posted: Thu Nov 14, 2002 11:41 am Post subject: |
|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaarg....
Two weeks of hacking, searching, trying... and then THIS solution
*hmpf* _________________ Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
|
Back to top |
|
|
Craigo Apprentice
Joined: 09 Aug 2002 Posts: 249 Location: /dev/life
|
Posted: Thu Nov 14, 2002 12:53 pm Post subject: |
|
|
Wow, I cannot believe those people are running into problems, make me feel really bad and I should have posted my ways. Better late than never
I've got the Fuji 2600Zoom USB cam and basically I selected in the kernel:
SCSI:
* SCSI support
* SCSI disk support
* SCSI generic support
USB:
* Support for USB
* Preliminary USB device filesystem
* USB Mass Storage support
Filesystem:
* /dev file system support
* Automatically mount at boot
All my hardware was reconsiged straightaway (I could have show you more modules to select but do I really want to?
Mounting the cam was easy by putting:
/dev/sda1 /mnt/film auto defaults,user
in /etc/fstab.
Then I'm too lazy to test it out so a quick gkrellm setup to see this. Plug in the USB cable in, switch the camera on and mount. Pulling the pictures from the cam can range from using rox, mc etc etc
-/Craigo/- |
|
Back to top |
|
|
striscio n00b
Joined: 30 Aug 2002 Posts: 23 Location: milano - italy
|
Posted: Thu Nov 14, 2002 2:17 pm Post subject: |
|
|
SNo0py wrote: |
I'm having an Fuji Finepix which acts also as an SCSI-Device. I can manually mount and unmount it without problems, but I want to automount the /dev/sda0 when connecting the Cam to the bus -> how does this work? |
Which model of finepix do you have?
I have a f401, but I can't get it working.... |
|
Back to top |
|
|
SNo0py Apprentice
Joined: 12 Jul 2002 Posts: 270 Location: Vienna, Austria
|
Posted: Fri Nov 15, 2002 9:36 am Post subject: |
|
|
I'm having an 1400Zoom which acts as an Mass-Storage-Device... your's too? Can you mount it "by hand"? _________________ Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
|
Back to top |
|
|
striscio n00b
Joined: 30 Aug 2002 Posts: 23 Location: milano - italy
|
Posted: Fri Nov 15, 2002 9:52 am Post subject: |
|
|
SNo0py wrote: | I'm having an 1400Zoom which acts as an Mass-Storage-Device... your's too? Can you mount it "by hand"? |
It seems I have problems mount usb filesystem (do not have a /proc/bus/usb mount point nor I can create one).
Anyway I had good news abuot my camera under linux. It's only a matter of time (and trying...).
Thanks,
gianpaolo |
|
Back to top |
|
|
SNo0py Apprentice
Joined: 12 Jul 2002 Posts: 270 Location: Vienna, Austria
|
Posted: Fri Nov 15, 2002 10:35 am Post subject: |
|
|
No, the usb-mass-storage-device acts as an SCSI-Device so you have to enable SCSI within your kernel. Afterwards you should be able to mount /dev/sdXX! _________________ Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
|
Back to top |
|
|
striscio n00b
Joined: 30 Aug 2002 Posts: 23 Location: milano - italy
|
Posted: Fri Nov 15, 2002 10:37 am Post subject: |
|
|
SNo0py wrote: | No, the usb-mass-storage-device acts as an SCSI-Device so you have to enable SCSI within your kernel. Afterwards you should be able to mount /dev/sdXX! |
Found some hints on the forum...
better having compiled usb stuff as module...
now I'm recompiling. |
|
Back to top |
|
|
yannick n00b
Joined: 17 May 2002 Posts: 23 Location: Brussels, Belgium
|
Posted: Fri Nov 15, 2002 8:52 pm Post subject: |
|
|
Quote: | aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaarg....
Two weeks of hacking, searching, trying... and then THIS solution
*hmpf* |
I'm happy that it's working finally !
I think I had the same problem but I had forgotten it, sorry .
Yannick
Last edited by yannick on Mon Nov 18, 2002 5:42 pm; edited 1 time in total |
|
Back to top |
|
|
Larde Guru
Joined: 07 Jun 2002 Posts: 313 Location: Duesseldorf, Germany
|
Posted: Sun Nov 17, 2002 12:41 pm Post subject: |
|
|
Now that was a fine thread. I was searching how to automount with hotplug, and the script works perfectly. Thanks for that solution!
Btw, the $PRODUCT for Sony DSC-P51 is "54c/10/410"
Larde. _________________ Someday this will be my home... http://moonage.net/
I'll make you a deal
I'll say I came from Earth and my tongue is taped
|
|
Back to top |
|
|
SNo0py Apprentice
Joined: 12 Jul 2002 Posts: 270 Location: Vienna, Austria
|
Posted: Sun Nov 17, 2002 7:41 pm Post subject: |
|
|
yannick wrote: |
I think I had the same problem but I had forgot it, sorry .
Yannick |
no problem... _________________ Sex is like hacking. You get in, you get out, and you hope you didnt leave something behind that can be traced back to you. |
|
Back to top |
|
|
|