Revision History | ||
---|---|---|
Revision 2.0 | 2002-06-02 | Revised by: tab |
Converted to Docbook XML 4.1.2 | ||
Revision 1.0 | 2002-04-13 | Revised by: dek |
Initial release |
Copyright 2001 Dave Kelly, et al.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in Appendix D.
The following excerpt from the "gphoto2 README" might give you some insight to other cameras that will work with this procedure. I don't know who to give credit for this, as I could not find a name.) Check the "gphoto" link for updated information: http://www.gphoto.org
Then, there are cameras supporting the so-called USB Mass Storage protocol. This is a protocol that has been published and lets you access any storage device, be it a camera or a disk connected via USB to your computer. As there are already drivers for this protocol out there, you don't need an additional program like gphoto2.
As of now, the following cameras seem to support the USB Mass Storage protocol:
Casio QV [2x00,3x00,8000]
Fuji FinePix S1 Pro, [1400,2400,4700]Zoom, 1300, 4500
HP PhotoSmart 315, 618, 912
Leica Digilux 4.3
Konica KD300Z
Kyocera Finecam s3
Minolta Dimage 7
Nikon Coolpix 995
Olympus C-100, C-200Z, C-700, C-860L, C-2040, C-3020Z, C-3040Z, C-4040Zoom, D-510, E-10
Pentax Optio 330
Sony DSC-F505(V), DSC P5, DSC-F707
Again, those cameras cannot be accessed through gphoto2.
Other cameras support a protocol called PTP or USB Imaging Devices that has been developed by Kodak and other. gphoto2 does not support PTP yet, but jPhoto does. Here is a short list of cameras that use this protocol:
Kodak DC-4800, DX-3215, DX-3500, DX-3600, DX-3700, DX-3900, MC3 and all the cameras that use Kodak Easy Shareâ„¢ system.
Sony DSC-P5, DSC-F707 (both need user configuration of the camera)
These cameras won't be supported until gphoto2 implements PTP.
[bash]$ mkdir -m 777 /mnt/camera |
[bash]$ mkdir -m 777 ~/picture |
See Section A.1, listed at the end of this document.
The big decision! Are you going to do this as "user" or "superuser/root"?
Type in the following script file:
echo "Please enter a directory name for the pictures." read DIRPATH mkdir ~/picture/$DIRPATH su -c "/sbin/modprobe usb-storage; mount -t vfat /dev/sda1 /mnt/camera; /etc/rc.d/init.d/usb start; mv /mnt/camera/dcim/100msdcf/*.jpg ~/picture/$DIRPATH; umount /mnt/camera; chown -R your_login_name ~/picture/$DIRPATH" |
If you are not creating this script for use as superuser, go to Section 4.3.
Type in the following script file.
echo "Please enter a directory name for the pictures." read DIRPATH mkdir picture/$DIRPATH /sbin/modprobe usb-storage mount -t vfat /dev/sda1 /mnt/camera /etc/rc.d/init.d/usb start mv /mnt/camera/dcim/100msdcf/*.jpg picture/$DIRPATH; umount /mnt/camera chown -R your_login_name picture/$DIRPATH |
Now make the script file executable. The command for that is:
[bash]$ su -c "chmod a=r+w+x your_script_file_name" |
[bash#] chmod a=r+w+x your_script_file_name |
[bash]$ getcamJ Please enter a directory name for the pictures. bash]$ something Password: [bash]$ your root password |
Mount your SCSI driver: mount -t vfat /dev/sda1 /mnt/camera
Start your USB: /etc/rc.d/init.d/usb start
Run the script from a command line as follows:
[bash]$ ./your_script_file_name |
At this point the directory on your hard drive should look something like Section A.2. Enter this command to confirm it does:
[bash]$ dir -R name-of-your-picture-directory |
The information in this document and the manuals and HOWTOs should get you up and running.
Good Luck.
Dave
Clean up all the extra directories you got from the script you ran that produced the errors and run your new script with the directories and see if it works. To make it easier to clean up all the directories and files you may have to su - if you're in user mode. Be sure to change back when you get through. See Appendix C at the end of this document.
Type:
[bash]$ dmesg |
and you should see this somewhere:
hub.c: USB new device connect on bus1/1, assigned device number 2 usb.c: USB device 2 (vend/prod 0x54c/0x10) is not claimed by any active driver. (The 0x54c/0x10 will be different for different vendors.) |
If you see this, your USB mass storage device in recognized.
Now turn your camera on and run the script file (the modified one) and you should see something like this when you run dmesg again:
[bash]$ dmesg 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 Vendor: Sony Model: Sony DSC Rev: 3.22 Type: Direct-Access ANSI SCSI revision: 02 WARNING: USB Mass Storage data integrity not assured USB Mass Storage device found at 2 USB Mass Storage support registered. Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0 SCSI device sda: 126848 512-byte hdwr sectors (65 MB) sda: Write Protect is off /dev/scsi/host0/bus0/target0/lun0: p1 usb-uhci.c: interrupt, status 3, frame# 1628 |
Now run this command and read Appendix B.
[bash]$ lsmod |
If the information from running lsmod appears as in Appendix B,and your dmesg shows the information listed above, and there are no pictures, I don't know what is wrong. Unfortunately, the only thing I know to do is go thru the whole process again. Only this time use the re-direction option >filename to capture the results. Post this to one of these 2 newsgroups:
alt.OS.Linux.mandrake
comp.OS.Linux.hardware
telling what you've done and ask for help. Include everything you can think of, the more information the better, and e-mail me at the same time. My address is: daveekelly@earthlink.net.
picture/smkbot: dsc00117.jpg dsc00120.jpg dsc00123.jpg dsc00126.jpg dsc00129.jpg dsc00118.jpg dsc00121.jpg dsc00124.jpg dsc00127.jpg dsc00130.jpg dsc00119.jpg dsc00122.jpg dsc00125.jpg dsc00128.jpg dsc00131.jpg |
picture/trash: camera picture/trash/camera: dcim mssony picture/trash/camera/dcim: 100msdcf picture/trash/camera/dcim/100msdcf: dsc00357.jpg dsc00360.jpg dsc00363.jpg txt00365.gif dsc00358.jpg dsc00361.jpg dsc00364.jpg txt00365.thm dsc00359.jpg dsc00362.jpg dsc00366.jpg picture/trash/camera/mssony: imcif100 picture/trash/camera/mssony/imcif100: dsc00364.jpg dsc00366.tif |
What we want to see here is the word usb-storage under the Used by column:
Module Size Used by nls_iso8859-12880 0 (autoclean) nls_cp437 4400 0 (autoclean) sd_mod11792 0 (autoclean) vfat 9968 0 (autoclean) fat 32192 0 (autoclean) [vfat] usb-storage 52528 0 scsi_mod 91072 2 [sd_mod usb-storage] ppp_deflate 42208 0 (autoclean) bsd_comp 4576 0 (autoclean) ppp_async 6672 0 (autoclean) ppp_generic 19616 0 (autoclean) [ppp_deflate bsd_comp ppp_async] slhc 5136 0 (autoclean) [ppp_generic] parport_pc 20240 1 (autoclean) lp 5808 0 (autoclean) parport 24768 1 (autoclean) [parport_pc lp] es1371 26768 1 soundcore 4208 4 [es1371] ac97_codec 9312 0 [es1371] gameport 1856 0 [es1371] af_packet 12560 0 (autoclean) ip_vs 62000 0 (autoclean) usb-uhci 21232 0 (unused) usbcore 50752 1 [usb-storage usb-uhci] rtc 5600 0 (autoclean) |
Copyright (C) 2000 Free Software Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
The Free Software Foundation may publish new, revised versions of the GNU Free Documentation License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. See http://www.gnu.org/copyleft/.
Each version of the License is given a distinguishing version number. If the Document specifies that a particular numbered version of this License "or any later version" applies to it, you have the option of following the terms and conditions either of that specified version or of any later version that has been published (not as a draft) by the Free Software Foundation. If the Document does not specify a version number of this License, you may choose any version ever published (not as a draft) by the Free Software Foundation.
Copyright (c) YEAR YOUR NAME. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with the Invariant Sections being LIST THEIR TITLES, with the Front-Cover Texts being LIST, and with the Back-Cover Texts being LIST. A copy of the license is included in the section entitled "GNU Free Documentation License".
If you have no Invariant Sections, write "with no Invariant Sections" instead of saying which ones are invariant. If you have no Front-Cover Texts, write "no Front-Cover Texts" instead of "Front-Cover Texts being LIST"; likewise for Back-Cover Texts.
If your document contains nontrivial examples of program code, we recommend releasing these examples in parallel under your choice of free software license, such as the GNU General Public License, to permit their use in free software.