old-www/HOWTO/Kodak-Digitalcam-HOWTO/x1852.html

995 lines
26 KiB
HTML

<HTML
><HEAD
><TITLE
> Communicating With the DC-Series Cameras
</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.57"><LINK
REL="HOME"
TITLE=" Kodak Digital Camera HOWTO
"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE=" Background
"
HREF="x164.html"><LINK
REL="NEXT"
TITLE=" Software Support
"
HREF="x2024.html"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Kodak Digital Camera HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x164.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x2024.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN1852"
>3. Communicating With the DC-Series Cameras</A
></H1
><P
> The below sections are specific to camera models and/or groups of camera models. A particular camera model may be listed in more than one section as it may be supported by more than one method. One method may be easier than another and a specific method may meet your needs better. Select the method used carefully and read all the options before choosing one, it could save a lot of time later on.
</P
><P
> If a PC-Card reader is available, or a laptop computer with one built in, following the Compact Flash PC Card Adapter/PCMCIA-ATA Storage Card should be generic enough to work on almost all Kodak DC-Series Cameras and many non-Kodak digital cameras. Be aware that there are adapters for almost all memory devices used in digital cameras to another more common technology. Floppy Disk adapters for smart memory cards may work for cameras that use smart memory cards. These methods also tend to offer fast data transfer rates and are the preferred method of many.
</P
><P
> Although something may not be mentioned as to working with a particular piece of software don't assume that means the camera does not work with the software package. Often a camera works with the protocols other digital cameras use and past methods will work. If one finds a method works that is not mentioned in the HOWTO don't neglect to send in the information to this documents author, <A
HREF="mailto:khemicals@marblehorse.org"
TARGET="_top"
>David Burley</A
>.
</P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN1858"
>3.1. DC40, DC50, DC120, DC200, DC210</A
></H2
><P
> All of these cameras provide mechanisms for data transfer via standard RS232 serial port. This section is tailored to those who wish to use their digital camera with the kdpci application. The following steps are untested, however there is no reason for them to not work. If one finds that the steps do or do not work please send a report to <A
HREF="mailto:khemicals@marblehorse.org"
TARGET="_top"
>David Burley</A
> so that the status may be noted here.
</P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1862"
>3.1.1. Serial Camera Control</A
></H3
><P
> Additional notes regarding transfer of data from these cameras using RS232 serial support will be added in a future version of this HOWTO. All GNU/Linux distributions should be configured in such a way with a default install that serial communications with the camera should not require any kernel configuration at all. See the kdcpi portion of the Software section for more information regarding use and configuration of kdcpi.
</P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN1865"
>3.2. DC20, DC25, DC200+, DC210, DC210+ Zoom, DC215, DC220, DC220+, DC240, DC260, DC265, DC280, DC290</A
></H2
><P
> All of the cameras provide mechanisms for data transfer via standard RS232 serial port. Some of the cameras provide mechanisms for data transfer via USB (universal serial bus). This section is tailored to those who wish to use their digital camera with gPhoto. Please refer to the gPhoto portion of the Software section of this document for more information pertaining to application usage.
</P
><P
> The following steps are untested, however there is no reason for them to not work. If one finds that the steps do or do not work please send a report to <A
HREF="mailto:khemicals@marblehorse.org"
TARGET="_top"
>David Burley</A
> so that the status may be noted here.
</P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1870"
>3.2.1. Serial Camera Control</A
></H3
><P
> Additional notes regarding transfer of data from these cameras using RS232 serial support will be added in a future version of this HOWTO. All GNU/Linux distributions should be configured in a such a way with a default install that serial communications with the camera should not require any kernel configuration at all. See the gPhoto portion of the Software section for more information regarding use and installation of gPhoto.
</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1873"
>3.2.2. USB Camera Control</A
></H3
><P
> There are no special drivers or kernel changes needed to support the DC220, DC260, DC265 and DC290 cameras under this configuration. gPhoto contains the necesary drivers to support USB transfer from these cameras. However if the dc2xx kernel module is loaded it may be necesary to remove it else a resource busy error may occur. To remove the module run the following command:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/rmmod dc2xx
</PRE
></TD
></TR
></TABLE
><P
> Attempting to remove the module even if it is not loaded will not cause any harm, so it is suggested that one remove it before starting gPhoto and connecting to the camera via USB. See the gPhoto portion of the Software section for more information regarding use and installation of gPhoto.
</P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN1878"
>3.3. DC220, DC260, DC265, DC290 (HP Photosmart C500?)</A
></H2
><P
> The cameras provide mechanisms for data transfer via standard RS232 serial port, USB (Universal Serial Bus) and IrDA (infrared) interface. Additionally, images may be offloaded from the camera through the removal of the camera's Compact Flash Card and use of a Compact Flash PC Card Adapter in a PC Card reader or notebook PC Card slot. Currently these cameras are supported by OpenDiS for USB, IrDA and Serial data transfer. For usage examples and information on how to install and configure the application to work with the cameras, refer to the Open Digita Services portion of the Software section.
</P
><P
> Please note that the steps below have only been verified to work with the Kodak DC-265; reports of other models that work with the same steps should be sent to <A
HREF="mailto:khemicals@marblehorse.org"
TARGET="_top"
>David Burley</A
>. There is no reason the steps should not work for all digital cameras that run DigitaOS.
</P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1883"
>3.3.1. Serial Camera Control</A
></H3
><P
> Additional notes regarding transfer of data from DigitaOS enabled cameras using RS232 serial support will be added in a future version of this HOWTO. All distributions should be configured in such a way with a default install that serial communications with the camera should not require any kernel configuration at all. See the OpenDiS and/or Digita Operating Environment -- Command Device Protocol Python Script portion of the Software section for information regarding serial camera control.
</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1886"
>3.3.2. 2.2.x Kernel USB Support</A
></H3
><P
> This section only applies to those running a 2.2.x series kernel. For those running a 2.4.x series kernel skip this section. At the moment the USB implementation in the 2.2.x series is insufficient and substantially out of date. As such, most USB devices are unsupported natively with the included drivers. However there is a patch available for the 2.2.15 - 2.2.17 kernels.
</P
><P
> What software is needed (if not already present):
</P
><P
></P
><OL
TYPE="1"
><LI
><P
> <A
HREF="http://www.suse.cz/development/usb-backport/usb-2.4.0-test2-pre2-for-2.2.16-v3.diff.gz"
TARGET="_top"
>usb-2.4.0-test2-pre2-for-2.2.16-v3.diff.gz</A
>
</P
></LI
><LI
><P
> <A
HREF="ftp://ftp.us.kernel.org/pub/linux/kernel/v2.2/linux-2.2.17.tar.gz"
TARGET="_top"
>Linux Kernel 2.2.17</A
>
</P
></LI
></OL
><P
> This document assumes a working knowledge of kernel and program compiling. If unfamiliar with the process please go and read the <A
HREF="http://howto.tucows.com/LDP/HOWTO/Kernel-HOWTO.html"
TARGET="_top"
>Kernel-HOWTO</A
>.
</P
><P
> Applying the patch:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# cp usb-2.4.0-test2-pre2-for-2.2.16-v3.diff.gz /usr/src
bash# gunzip /usr/src/usb-2.4.0-test2-pre2-for-2.2.16-v3.diff.gz
bash# cd /usr/src/linux
bash# patch -p1 &#60; ../usb-2.4.0-test2-pre2-for-2.2.16-v3.diff
</PRE
></TD
></TR
></TABLE
><P
> Select the following to be built as either modules or part of your kernel:
</P
><P
></P
><OL
TYPE="1"
><LI
><P
> Support for your USB controller (It is suggested that all of these be compiled as modules unless the controller type is known.).
</P
></LI
><LI
><P
> USB Kodak DC-2xx Camera Support.
</P
></LI
><LI
><P
> Preliminary USB Device Filesystem.
</P
></LI
></OL
><P
> Reboot the system and then load the created modules if the support is not compiled into the kernel. To load the modules do the following:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/usb/usbcore.o
</PRE
></TD
></TR
></TABLE
><P
> Use the following if the USB controller uses either an Intel or a VIA chipset. Some others may also be supported:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/usb/usb-uhci.o
</PRE
></TD
></TR
></TABLE
><P
> Use the following if the above did not work and this is the controller type:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/usb/uhci.o
</PRE
></TD
></TR
></TABLE
><P
> Use this if the USB controller uses an SiS chipset, is a Compaq, or because the above two didn't seem to work and this is the only option left to try.
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/usb/usb-ohci-hcd.o
</PRE
></TD
></TR
></TABLE
><P
> Load the module for Kodak Digital Camera support:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/usb/dc2xx.o
</PRE
></TD
></TR
></TABLE
><P
> Mount the USB Device Filesystem:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# mount -t usbdevfs ignored /proc/bus/usb
</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1921"
>3.3.3. 2.4.x Kernel USB Support</A
></H3
><P
> This section only applies to those running a 2.4.x series kernel. For those running a 2.2.x series kernel skip this section and follow the 2.2.x Kernel USB Support section. The 2.4.x series kernels have USB supported natively which makes it a bit easier to configure than for the 2.2.x kernel series.
</P
><P
> What software is needed (if not already present):
</P
><P
></P
><OL
TYPE="1"
><LI
><P
> <A
HREF="ftp://ftp.us.kernel.org/pub/linux/kernel/v2.4/linux-2.4.0.tar.gz"
TARGET="_top"
>Linux Kernel 2.4.0</A
>
</P
></LI
></OL
><P
> This document assumes a working knowledge of kernel and program compiling. If unfamiliar with the process please go and read the <A
HREF="http://howto.tucows.com/LDP/HOWTO/Kernel-HOWTO.html"
TARGET="_top"
>Kernel-HOWTO</A
>.
</P
><P
> Select the following to be built as either modules or part of your kernel:
</P
><P
></P
><OL
TYPE="1"
><LI
><P
> Support for your USB controller (It is suggested that all of these be compiled as modules unless the controller type is known.).
</P
></LI
><LI
><P
> USB Kodak DC-2xx Camera Support.
</P
></LI
><LI
><P
> Preliminary USB Device Filesystem.
</P
></LI
></OL
><P
> Reboot the system and then load the created modules if the support is not compiled into the kernel. To load the modules do the following:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/usb/usbcore.o
</PRE
></TD
></TR
></TABLE
><P
> Use the following if the USB controller uses either an Intel or a VIA chipset. Some others may also be supported:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/usb/usb-uhci.o
</PRE
></TD
></TR
></TABLE
><P
> Use the following if the above did not work and this is the controller type:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/usb/uhci.o
</PRE
></TD
></TR
></TABLE
><P
> Use this if the USB controller uses an SiS chipset, is a Compaq, or because the above two didn't seem to work and this is the only option left to try.
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/usb/usb-ohci-hcd.o
</PRE
></TD
></TR
></TABLE
><P
> Load the module for Kodak Digital Camera support:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/usb/dc2xx.o
</PRE
></TD
></TR
></TABLE
><P
> Mount the USB Device Filesystem:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# mount -t usbdevfs ignored /proc/bus/usb
</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1951"
>3.3.4. Kernel USB Devices</A
></H3
><P
> The following is a bash shell script designed to create all 16 Kodak devices for use with both the current 2.4.x kernel series and the obsoleted 2.2.X kernel series with the current USB backport. Copy the text below into a file named MakeKodakDev, then make that file executable by typing 'chmod +x MakeKodakDev' and then run the script ./MakeKodakDev as root (or su'd to root) it will create the devices so they don't have to be made individually by hand.
</P
><P
> It creates as per the dc2xx.txt file in the kernel documentation the following 16 devices:
</P
><P
> /dev/dc2xx0 type=character major=180 minor=80
</P
><P
> ...
</P
><P
> /dev/dc2xx16 type=character major=180 minor=95
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
># Filename: MakeKodakDev
# Creates the device files for USB access of Kodak digital cameras.
# Last Modified January 6, 2001
# Please see the Kodak Digital Camera HOWTO for more information
# http://www.marblehorse.org/projects/documentation/kodak/
#!/bin/sh
export scrapvar=0
while [ $scrapvar -lt 17 ];
do mknod -m 0666 /dev/dc2xx$scrapvar c 180 $(( $scrapvar + 80 ));
scrapvar=$(( $scrapvar + 1 ));
done
# EOF
</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1959"
>3.3.5. Kernel IrDA Support</A
></H3
><P
> Most newer distributions come with IrDA support and the proper utilities to handle IrDA. Redhat 7.0 is one of them. However for the rest of us some configuration will be necessary. Get a copy of the latest kernel (2.2.x series or above) and compile all the IrDA features in as modules. IrDA works a lot like PCMCIA support in GNU/Linux so it is important to have all the modules for any other IrDA devices one may have. There is a good HOWTO on compiling a new kernel, the <A
HREF="http://howto.tucows.com/LDP/HOWTO/Kernel-HOWTO.html"
TARGET="_top"
>Kernel-HOWTO</A
>. Please refer to it for questions regarding configuring and compiling a new Linux kernel.
</P
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1963"
>3.3.6. IrDA Utils Software</A
></H3
><P
> The next step in configuring IrDA support is installing the irda-utils package. Unfortunately, at the time of the current version of this HOWTO, the author had problems locating the source archive for the utilities so he took the one Redhat uses to build their RPM for Redhat 7.0. Please note that root permissions will be necesary to run the commands needed to install the software but should not be necesary to access the camera.
</P
><P
> What software is needed (if not present already):
</P
><P
></P
><OL
TYPE="1"
><LI
><P
> <A
HREF="http://www.marblehorse.org/projects/documentation/kodak/irda-utils-0.9.10+patches.tar.gz"
TARGET="_top"
>irda-utils 0.9.10 and patches</A
>
</P
></LI
><LI
><P
> <A
HREF="http://www.marblehorse.org/projects/documentation/kodak/irda-utils-0.9.10+patches.tar.gz.asc"
TARGET="_top"
>gpg signature for the irda-utils archive</A
>
</P
></LI
></OL
><P
> Extracting the archive, patching, compiling and installing it:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# cp irda-utils-0.9.10+patches.tar.gz /usr/src
bash# cd /usr/src
bash# tar zxvf irda-utils-0.9.10+patches.tar.gz
bash# tar zxvf irda-utils-0.9.10.tar.gz
bash# cd irda-utils-0.9.10
bash# patch -p1 &#60; ../irda-utils-0.9.4-chkconfig.patch
bash# patch -p1 &#60; ../irda-utils-typo.patch
bash# patch -p1 &#60; ../irda-utils-redhat.patch
bash# make
bash# make install
</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1976"
>3.3.7. Creating the IrDA Device Nodes</A
></H3
><P
> The device nodes are necesary so that the application can talk to the driver for the device. Although the irlpt devices are not necesary to get the camera working, creating them now will save the time of having to look them up how to do it later if you do ever need them.
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# mknod -m 0666 /dev/ircomm0 c 161 0
bash# mknod -m 0666 /dev/ircomm1 c 161 1
bash# mknod -m 0666 /dev/irlpt0 c 161 16
bash# mknod -m 0666 /dev/irlpt1 c 161 17
</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1980"
>3.3.8. Modifying /etc/conf.modules or /etc/modules.conf</A
></H3
><P
> Use a text editor and open up /etc/conf.modules or /etc/modules.conf depending on your distribution. Add the following three lines to the file while being careful not to change any others.
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>#IrDA
alias tty-ldisc-11 irtty
alias char-major-161 ircomm-tty
</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN1984"
>3.3.9. Enabling IrDA and Testing for Connectivity</A
></H3
><P
> Irmanager is what starts and stops the proper IrDA modules. The d1 flag tells irmanager to enter discovery mode.
</P
><P
> As user root run the following command:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /usr/sbin/irmanager -d1
</PRE
></TD
></TR
></TABLE
><P
> Put the camera into connect mode and turn it on. Make sure that the camera is close to and facing the IrDA port on the computer. Run the following to see if there are any communications via IrDA:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash$ /usr/bin/irdadump
</PRE
></TD
></TR
></TABLE
><P
> After running the command one should see output similar to the following:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>00:04:10.608823 xid:cmd bedcb551 &#62; ffffffff S=6 s=2 (14)
00:04:10.698818 xid:cmd bedcb551 &#62; ffffffff S=6 s=3 (14)
00:04:10.788815 xid:rsp bedcb551 &#60; 5f36a4a1 S=6 s=3 Kodak DC265 Zoom hint=8404 [ Computer IrCOMM ]
(33) 00:04:10.798819 xid:cmd bedcb551 &#62; ffffffff S=6 s=4 (14)
00:04:10.888815 xid:cmd bedcb551 &#62; ffffffff S=6 s=5 (14)
00:04:10.978818 xid:cmd bedcb551 &#62; ffffffff S=6 s=* armstrong hint=0400 [ Computer ] (25)
6 packets received by filter
</PRE
></TD
></TR
></TABLE
><P
> If the previous message was not displayed, try relocating the camera closer or further away from the IrDA port and ensure that there is not too much external interference in the environment in the form of light. Also if the machine is a laptop with a PC-Card (or PCMCIA) modem removing it may help resolve the issue.
</P
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN1994"
>3.4. Compact Flash PC Card Adapter/PCMCIA-ATA Storage Card</A
></H2
><P
> This section is for those who wish to utilize maximum data transfer rate and save the battery power in the camera's batteries. The method of connectivity suggested in this section applies to all Kodak DC-Series cameras that use either PCMCIA-ATA storage cards or Compact Flash Cards. This method of picture access only allows for storage, retrieval, and deletion of images on a Compact Flash Card. These instructions are tested with a Kodak 16 MB Picture Card and a SanDisk CompactFlash PC Card Adapter on a Dell Inspiron 7000 notebook computer.
</P
><P
> What software is needed (if not already present):
</P
><P
></P
><OL
TYPE="1"
><LI
><P
> <A
HREF="http://download.sourceforge.net/pcmcia-cs/pcmcia-cs-3.1.21.tar.gz"
TARGET="_top"
>PCMCIA-CS-3.1.21</A
>
</P
></LI
></OL
><P
> This document assumes a working knowledge of kernel and program compiling. If unfamiliar with the process it is strongly suggested to go and read the <A
HREF="http://howto.tucows.com/LDP/HOWTO/Kernel-HOWTO.html"
TARGET="_top"
>Kernel-HOWTO</A
>.
</P
><P
> Select the following to be built as either modules or part of your kernel:
</P
><P
></P
><OL
TYPE="1"
><LI
><P
> DOS FAT fs support
</P
></LI
><LI
><P
> VFAT (Windows-95) fs support
</P
></LI
></OL
><P
> Reboot the system and then load the created modules each time access to the compact flash card is desired if the support is not compiled into the kernel. To load the modules do the following:
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# /sbin/insmod /lib/modules/$(uname -r)/fat.o
bash# /sbin/insmod /lib/modules/$(uname -r)/vfat.o
</PRE
></TD
></TR
></TABLE
><P
> Compile and configure PCMCIA-CS. This part of the process is beyond the scope of this document, however there is a document with such information that can be found in the <A
HREF="http://pcmcia-cs.sourceforge.net/ftp/doc/PCMCIA-HOWTO.html"
TARGET="_top"
>PCMCIA-HOWTO.</A
> There is also most likely a pre-packaged version for the distribution of GNU/Linux the computer running. This step can be greatly simplified if a pre-packaged version is used.
</P
><P
> Using the Compact Flash PC Card Adapter:
</P
><P
> Create a directory to mount the Compact Flash Card to.
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# mkdir /flashcard
</PRE
></TD
></TR
></TABLE
><P
> Insert the Compact Flash Card into the Compact Flash PC Card Adapter (both should face the same direction. Note that this step is unnecessary for the cameras that use a PCMCIA-ATA storage card.).
</P
><P
> Insert the Compact Flash PC Card Adapter or PCMCIA-ATA storage card into the PC-Card slot of the notebook computer.
</P
><P
> Mount the card to /flashcard (The Compact Flash Card PC Card Adapter/PCMCIA-ATA storage card is assigned its device by figuring out how many IDE controllers are on the system, and then assigning it the next device. For example, if a system were to have 2 IDE controllers, and would thus have /dev/hda /dev/hdb /dev/hdc and /dev/hdd assigned to the current controllers, the Compact Flash Card PC Card Adapter would be assigned /dev/hde1.).
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# mount -t vfat /dev/hde1 /flashcard
</PRE
></TD
></TR
></TABLE
><P
> From this point the files can be copied, moved, deleted, and renamed as done on a normal filesystem. Information regarding file management commands may be found in the documentation included with the OS distribution used, such as man pages. The manual pages which list the commands to use to do the above procedures can be accesses by typing the following to get the command's respective manual page entry: 'man cp', 'man mv', 'man rm'. Before removing the Compact Flash Card PC Card Adapter remember to unmount it with the following command.
</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>bash# umount /flashcard
</PRE
></TD
></TR
></TABLE
><P
> The Compact Flash Card PC Card Adapter/PCMCIA-ATA storage card can be removed from the PC Card Reader and the Compact Flash Card and be removed from the Compact Flash Card PC Card Adapter (If the adapter was used).
</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x164.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x2024.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Background</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Software Support</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>