home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LINUX / HOWTO / mini / zipdrive.txt < prev    next >
Text File  |  1997-07-07  |  24KB  |  546 lines

  1.   ZIP-drive mini-HOWTO
  2.   Grant Guenther, grant@torque.net
  3.   v1.0, 15 April 1996
  4.  
  5.   The Iomega ZIP drive is a popular, removable media disk drive.  It is
  6.   available in two main versions, one has a SCSI interface and the other
  7.   connects to a parallel port.  This document describes how to use the
  8.   ZIP drive with Linux. It should be read in conjunction with the SCSI
  9.   HOWTO.
  10.  
  11.   1.  Introduction
  12.  
  13.   The Iomega ZIP drive is a popular, low-cost, low-performance,
  14.   portable, removable media disk drive.  Its disks have a capacity of 96
  15.   megabytes, and the drive is available in two main versions, a SCSI
  16.   version and a parallel port version. The parallel port version is
  17.   actually a SCSI device as well, configured to use Iomega's proprietary
  18.   PPA-3 SCSI-over-parallel protocol.
  19.  
  20.   This document describes how to use the ZIP drive with Linux.  Since
  21.   this is a SCSI device, it is important for you to read the SCSI HOWTO
  22.   as well.  That document gives a thorough introduction to the Linux
  23.   SCSI system.  It does not contain any specific information about the
  24.   ZIP drive, the ZIP Zoom SCSI host adapter or the PPA-3 parallel-to-
  25.   SCSI adapter.  This mini-HOWTO aims to fill those gaps.
  26.  
  27.   This document incorporates information collected and published by
  28.   others, in particular:
  29.  
  30.   ╖  Scot Wilcoxon, sewilco@fielday.mn.org
  31.  
  32.   ╖  Joe Mack, mack@ncifcrf.gov
  33.  
  34.   ╖  Byron Jeff, byron@cc.gatech.edu
  35.  
  36.   I thank them for their important contributions, and accept
  37.   responsibility for any errors that I have introduced.
  38.  
  39.   2.  The ZIP drive
  40.  
  41.   There are three versions of the Iomega ZIP 100 drive. They all accept
  42.   special cartridges resembling a 3.5" floppy disk that hold 100
  43.   megabytes of data.  The disks actually hold 96 cylinders of 2048
  44.   sectors each holding 512 bytes.  This would normally be called 96
  45.   Megabytes.
  46.  
  47.   One version is a half-height 5.25" internal drive, with a SCSI
  48.   interface, the other two are external drives in a small blue
  49.   lightweight plastic enclosure, powered by an external wall brick.  The
  50.   external drives come in a SCSI version and a parallel port version.
  51.  
  52.   All the drives have a large pushbutton on the front of the drive.
  53.   This is used to eject the disk.  Linux locks the door while using the
  54.   drive, but if the button is pressed while the door is locked, the ZIP
  55.   drive will remember and eject the disk as soon as the software unlocks
  56.   it.
  57.  
  58.   2.1.  SCSI version
  59.  
  60.   The external SCSI version of the ZIP drive has two DB25F connectors,
  61.   and two configuration switches.  One switch selects the drive's target
  62.   address: the choice is limited to target 5 or 6.  The other enables an
  63.   internal terminator, in case the drive is the last one on a chain.
  64.   The 25 pin SCSI connectors use the familiar Macintosh style wiring.
  65.   The drive is shipped with a Macintosh type cable, but standard cables
  66.   and converters are easily obtained if you are using a host adapter
  67.   with a Centronics or high-density connector.
  68.  
  69.   I have not seen an internal SCSI drive, but I would expect it to have
  70.   a standard 50 pin DIP header SCSI connector and the same two switches.
  71.  
  72.   Make sure that the target address you choose does not conflict with
  73.   any other SCSI devices you may have on the same bus.  Also be sure
  74.   that the physically last drive in a chain has termination enabled, or
  75.   an external terminator installed.
  76.  
  77.   If you have an internal SCSI disk or CD-rom, and you connect your ZIP
  78.   drive to the existing adapter, you should check to see if there are
  79.   any terminators on the card that must be removed.  Only the two
  80.   extreme ends of the SCSI bus should be terminated.  If your bus is
  81.   partly internal and partly external, there should be one terminator on
  82.   the last external device and one on the last internal device, but no
  83.   terminators on the adapter card itself.
  84.  
  85.   Be sure that all cables are firmly attached.
  86.  
  87.   2.2.  The ZIP Zoom host adapter
  88.  
  89.   Iomega markets a SCSI host adapter under the name ZIP Zoom.  This is
  90.   actually based on the design of the Adaptec AHA1520 family of
  91.   adapters.  It has an external Macintosh type DB25F connector,
  92.   compatible with the cable that comes with the ZIP drive.
  93.  
  94.   Linux supports this adapter with the aha152x driver.
  95.  
  96.   2.3.  Parallel port version
  97.  
  98.   The parallel port ZIP drive also has two DB25 connectors, the male
  99.   (DB25M) should be connected with the supplied parallel cable to your
  100.   computer's parallel port.  The other (female, DB25F) is intended to
  101.   support a chained printer.  Linux does not currently support
  102.   simultaneous use of both a ZIP drive and a chained printer.  A work-
  103.   around is possible using loadable modules.  There are no configuration
  104.   switches.
  105.  
  106.   The parallel port ZIP drive is compatible with several types of
  107.   parallel ports, but currently the Linux driver supports only the
  108.   Standard and bi-directional ports.  If your parallel port has
  109.   configuration switches (in hardware or on a CMOS setup screen) be sure
  110.   to set the port into one of those two modes.
  111.  
  112.   Be sure that all cables are firmly attached.
  113.  
  114.   3.  Configuring a kernel for the ZIP drive
  115.  
  116.   To use the ZIP drive with Linux, you must have a kernel configured
  117.   with support for the SCSI system, support for SCSI disks and support
  118.   for the host adapter you are using.  If you are not familiar with
  119.   building a kernel, you should go to /usr/src/linux and study the
  120.   README file found there.  There is also useful information in the
  121.   Documentation subdirectory in recent versions.
  122.  
  123.   You must begin the process of building a kernel with the configuration
  124.   step.  Here, you identify the specific kernel components that you
  125.   need.  make config is the traditional, sequential, question and answer
  126.   method of configuring the kernel.
  127.  
  128.   In recent kernels there are some new alternatives: make menuconfig
  129.   does the same thing with a menu oriented interface, and make xconfig
  130.   uses the tk toolkit to provide a version that is nice to use under X.
  131.  
  132.   Once you have configured your kernel, use make dep and make zLilo (or
  133.   make zImage if you don't use LILO) to compile the new kernel and
  134.   install it.  And, of course, don't forget to shutdown and reboot !
  135.  
  136.   You can also build all or part of the SCSI system as modules.  If you
  137.   do this, be sure to load scsi.o, then sd.o and finally the driver for
  138.   your host adapter, before you try to access the ZIP drive.
  139.  
  140.   3.1.  SCSI version
  141.  
  142.   If you already have a SCSI disk in your system, and you are connecting
  143.   the ZIP drive to the same controller, there is no additional kernel
  144.   configuration required.  Otherwise, you will most likely have to build
  145.   a new kernel.
  146.  
  147.   If you are building a kernel to support the SCSI version of the ZIP
  148.   drive, you should select SCSI support and SCSI disk support.  You must
  149.   also select a driver for the interface card you will use. If you have
  150.   a ZIP Zoom, select the aha152x driver.
  151.  
  152.   Be sure to read the documentation for your adapter in the SCSI HOWTO
  153.   and any README files in the drivers/scsi subdirectory of the Linux
  154.   source tree.  Pay attention to command line parameters that you might
  155.   have to use to help the kernel initialise your adapter.
  156.  
  157.   For instance, if you are using the ZIP Zoom card, you will have to add
  158.   something like
  159.  
  160.           aha152x=0x340,11,7,1
  161.  
  162.   to the boot command (or include it in your /etc/lilo.conf file in an
  163.   append clause).  This tells the driver the port address and IRQ of
  164.   your ZIP Zoom card - be sure to use the numbers that correspond to the
  165.   way your jumpers are set.
  166.  
  167.   You should also read Paul Gortmaker's BOOTPROMPT HOWTO for information
  168.   about configuring your kernel with LILO or LOADLIN.
  169.  
  170.   3.2.  PPA driver for 1.2.13
  171.  
  172.   If you want to use the parallel port ZIP drive with the stable kernel,
  173.   version 1.2.13, you must fetch version 0.18 of the driver which is
  174.   available for anonymous ftp at <ftp://gear.torque.net/pub/ppa.c>
  175.   Installation instructions about how to compile the driver as a
  176.   loadable module are contained in the source for ppa.c.
  177.  
  178.   Please note that you will almost certainly have to build a new kernel.
  179.   In particular, none of the Slackware pre-built kernels will work with
  180.   ppa.  Be careful to build your kernel with SCS