Tekram DC390(T) Red Hat LiNUX driver User's Guide =========================================================== 1. Contents RH390.txt - The readme file for DC-390(T) Linux driver RHb390x.zip - Boot diskette(1.44M) image for DC-390(T), DC-390W/U/F(T) pm2_0_0.zip - DC-390(T) Linux driver patch file for kernel 2.0.18 or later 2. The first time installation A. Before Installation - Under DOS environment a. Get 1 MS-DOS formatted diskettes b. Decompress the Boot diskette image file by: pkunzip RHb390x.zip gzip -d RHb390x.gz c. Decompress the patch file by: pkunzip pm2_0_0.zip d. Insert a formatted and empty diskette to floppy drive A e. Write boot diskette image to floppy diskette by: rawrite RHb390x A: f. Remove floppy diskette B. Installation a. Using boot diskette that you made as the Booting diskette and follow the Red Hat Linux installation procedures to install. b. When the installation was completely and the " Done "screen display with message " Congratulations, installation is complete. Remove the floppy from the drive and press return to reboot. ....... " , do NOT remove the floppy and do NOT press return at this moment. Press Alt+F2 to switch display to command prompt, go throught following steps to update the kernel that has drivers for the Tekram DC-390(T) and DC-390W/F/U. (1) bash# mkdir /mnt/mnt1 (2) bash# mount /mnt/dev/fd0 /mnt/mnt1 (3) bash# rm -rf /mnt/boot/vmlinuz (4) bash# cp /mnt/mnt1/vmlinuz /mnt/boot/vmlinuz (5) bash# /mnt/sbin/lilo -r /mnt (6) bash# umount /mnt/mnt1 Press Alt+F1 to switch back to installation done screen. Remove the floppy and press Enter to reboot. 3. Configure the system and Remake the kernel # mcopy a:pm2_0_0.gz /usr/src # cd /usr/src # gzip -d pm2_0_0.gz # patch -p0 < pm2_0_0 # cd linux # make mrproper # make config ;When prompt for "PCI bios support" say "Yes". ;When prompt for "SCSI support" say "Yes". ;When prompt for "SCSI disk support" say "Yes". ;When prompt for "SCSI tape support" say "Yes". ;When prompt for "SCSI CD-ROM support" say "Yes". ;When prompt for "SCSI generic support" say "Yes". ;When prompt for "Tekram DC-390(T) SCSI support" say "Yes". ;When prompt for "AM53/79C974 PCI SCSI support" say "No". # make dep; make clean # make zImage # cp arch/i386/boot/zImage / ; Add an entry for "zImage" in /etc/lilo.conf ; Example: ; ... ; # Linux bootable kernel for DC390 ; image = /zImage # <--- NEW ; label = DC390 # <--- NEW ; root = /dev/sda1 # <--- NEW ; read-only # <--- NEW ; image = /boot/vmlinuz ; label = linux ; root = /dev/sda1 ; read-only ; ... ; # lilo # shutdown -r now ;reboot the system ... ... boot: DC390 ;when system Rebooting ... First-time to patch driver sources into the kernel source =================================================================== This case means that you are not ever patch the Tekram driver source code to /usr/src/linux/drivers/scsi. 1. copy pm2_0_0.gz to /usr/src 2. # gzip -d pm2_0_0.gz 3. # patch -p0 < pm2_0_0 To re-patch/update driver sources to the kernel source ================================================================== This case means that you are ever patch the Tekram driver source code to /usr/src/linux/drivers/scsi. 1. # cd /usr/src 2. # mkdir tmp 3. # cd tmp copy pm2_0_0.gz to /usr/src/tmp 4. # patch < pm2_0_0 When prompt for "File to patch:", just press Enter. When prompt for "No file found--skip this patch? [n]", type y, then Enter. 5. # cp *.c /usr/src/linux/drivers/scsi 6. # cp *.h /usr/src/linux/drivers/scsi 7. # cd .. 8. # rm -r tmp To re-patch/update driver sources to a upgraded kernel source ===================================================================== This case means that you are ever patch the Tekram driver source code to /usr/src/linux/drivers/scsi before update the kernel. 1. copy pm2_0_0.gz to /usr/src 2. # cd /usr/src/linux/drivers/scsi 3. # rm tmscsim.c 4. # rm tmscsim.h 5. # rm scsiiom.c 6. # rm dc390.h 8. # cd /usr/src 9. # gzip -d pm2_0_0.gz 10. # patch -p0 < pm2_0_0 ----------------------------------------------------------------------------- ACKNOWLEDGEMENTS The Red Hat LiNUX CD-ROM disc for developing DC-390 series device drivers is sponsored by Korad Telecom, distributor of Red Hat products in Taiwan. Korad Telecom: Tel: 886-2-7580199 FAX: 886-2-7292551 Email: chous@ms1.hinet.net