3. Configuring a kernel for the ZIP drive
To use the ZIP drive with Linux, you must have a kernel configured with support for the SCSI system, support for SCSI disks, and support for the host adapter you are using. If you are not familiar with building a kernel, you should read up on the Linux Kernel HOWTO for information.
You must begin the process of building a kernel with the configuration
step. Here, you identify the specific kernel components that you
need. First step cd /usr/src/linux
. There are several
ways to actually do the configuration. Under X windows I use
make xconfig. There is also make menuconfig
or make config
for command line prompts. The easiest way
is with xconfig.
In the section SCSI Support set SCSI support = Y. Also set SCSI disk support = Y.
In the section SCSI low-level drivers you want to set IOMEGA Parallel Port ZIP drive SCSI support = M. The M stands for modules.
In the section Character Devices find and set Parallell Printer support = M
If you are a bit unsure about any of this, use zdisk for the make step. This will build and install the kernel to floppy. If you screw it up somehow, you still have a good bootable system on the hard drive.
Now build the kernel with these steps:
- make dep
- make clean
- make zImage or zlilo or zdisk
- make modules
- make mdoules_install
hint if you want to create an output log of the make zImage step you can use
make zImage 2>&1 | tee zImage.out
This is really
a good thing to do, if you have compile errors or other conflicts
in the configuration, now you have a file with the error messages or
compile errors. This makes asking for help much easier.
You also need to load the modules somewhere. On my system I just added a couple of lines to the boot.local file.
- insmod ppa
- insmod lp
Now shutdown and reboot
.
You can also build all or part of the SCSI system as modules. If you do this, be sure to load scsi.o, then sd.o and finally the driver for your host adapter, before you try to access the ZIP drive.
3.1 SCSI version
If you already have a SCSI disk in your system, and you are connecting the ZIP drive to the same controller, there is no additional kernel configuration required. Otherwise, you will most likely have to build a new kernel.
If you are building a kernel to support the SCSI version of the ZIP drive, you should select SCSI support and SCSI disk support. You must also select a driver for the interface card you will use. If you have a ZIP Zoom, select the aha152x driver.
Be sure to read the documentation for your adapter in the SCSI HOWTO and any README files in the drivers/scsi subdirectory of the Linux source tree. Pay attention to command line parameters that you might have to use to help the kernel initialise your adapter.
For instance, if you are using the ZIP Zoom card, you will have to add something like
aha152x=0x340,11,7,1
to the boot command (or include it in your /etc/lilo.conf file in an append clause). This tells the driver the port address and IRQ of your ZIP Zoom card - be sure to use the numbers that correspond to the way your jumpers are set.
You should also read Paul Gortmaker's BOOTPROMPT HOWTO for information about configuring your kernel with LILO or LOADLIN.
Next Previous Contents