Paul A. Marshall
If I had a default install of say, a recent version of Mandrake, I guess such a thing would work right out of the box. However, I tend not to have very much in my kernel or userland that I do not actually need. This meant that I had to discover just what it takes to make such a thing work. This is my effort to pull the pieces together.
The exact model of my camera is a Fujifilm FinePix 2600Zoom. My kernel is 2.4.20. My distribution is Debian Woody. All command line sequences supplied should be typed as root.
Here, I list those kernel elements that should be enabled if they are not already part of your standard build. My own preference is to build the elements as loadable modules, where possible, and use kmod to load them on demand. This approach certainly makes sense for a device such as a camera which, from the point of view of your system, is only in use for short periods of time.
apt-get install hotplugThis installs the daemon and creates the necessary boot scripts.
none /proc/bus/usb usbfs defaults 0 0This will ensure that the USB extension to the proc file system is mounted at boot up.
mkdir /mnt/camera
Follow the instructions in your camera's manual for attaching the camera to your PC as a USB mass storage device. Check to see if this has been detected by typing:
cat /proc/bus/usb/devicesHopefully, you will see an entry for the usb mass storage device looking something like this:
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=04cb ProdID=0100 Rev= 1.00 S: Product=USB Mass Storage S: SerialNumber=Y-301^^^^^130523W0FC0004051429 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=05 Prot=00 Driver=usb-storage E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=1msIf all is well, attempt to mount the camera. This is done using a SCSI disk device file. In the example below, ``sda1'' is used. If you actually have some real SCSI disks, or something else posing as a SCSI disk, you will need to modify this accordingly (ie if you have two SCSI disks, it will be ``sdc1''). Also, substitute your actual mount point directory where I have used ``/mnt/camera''. Here is what your mount command might look like:
mount -t vfat /dev/sda1 /mnt/cameraIf all is well, you will find your image files under your mount point directory. There may be several further directory layers before you get to the image files proper, but once you have located them, you can copy them to a destination of your choosing.
Once you have finished copying images from your camera, unmount the file system by typing something along the lines of (remember to adjust it for the actual SCSI disk device file being used):
umount /dev/sda1Follow the instructions in your camera's manual for disconnecting it from your PC. Again, a check of /proc/bus/usb/devices will confirm that the removal has been detected (the entry for the USB mass storage device will be gone).
If there is a failure at any point during the image retrieval process with no obvious reason why, try looking at your log files for error messages (the exact file names depend on how your system is configured, but /var/log/messages and /var/log/syslog will probably be good bets). If you cannot interpret any error messages, try posting them on the LJR forum.
My current email address can be found in my profile, or you can PM me if you
are a LJR member.
Thanks
Paul
This document was generated using the LaTeX2HTML translator Version 2K.1beta (1.48)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -split 0 -no_navigation -show_section_numbers digicam.tex
The translation was initiated by Paul Marshall on 2003-01-11