Tekram DC390(T)/DC310/DC310U/DC390W/DC390U/DC390F/DC390U2B/DC390U2W Red Hat Linux =================== driver User's Guide ======================= 1. Contents Rh390X.txt - (This file)The readme file for DC390(T) DC310/DC310U/DC390W/DC390U/DC390F/DC390U2B/DC390U2W redhat Linux driver Rhboot50.zip - (Rhboot50.img) redhat5.0 Boot diskette(1.44M) image for install redhat5.0. Rhkern50.zip - (Rhkern50.img) redhat5.0 Kernel diskette(1.44M) image for redhat5.0 update new kernel. Rhboot51.zip - (Rhboot51.img) redhat5.1 Boot diskette(1.44M) image for install redhat5.1. Rhkern51.zip - (Rhkern51.img) redhat5.1 Kernel diskette(1.44M) image for redhat5.1 update new kernel. Rhboot52.zip - (Rhboot52.img) redhat5.2 Boot diskette(1.44M) image for install redhat5.2. Rhkern52.zip - (Rhkern52.img) redhat5.2 Kernel diskette(1.44M) image for redhat5.2 update new kernel. pDC390x_amd.gz - Source code of DC390(T)SCSI driver pDC390x_ncr.gz - Source code of DC310/DC310U/DC390W/DC390U/DC390F/DC390U2B/DC390U2W SCSI driver pMChp2_0_0.gz - If your Linux kernel version between 2.0.0 to 2.0.30 Please use "pMChp2_0_0" patch the following files /usr/src/linux/drivers/scsi/Makefile /usr/src/linux/drivers/scsi/Config.in /usr/src/linux/drivers/scsi/hosts.c /usr/src/linux/include/linux/proc_fs.h pMChp2_0_31.gz - If your Linux kernel version more than 2.0.30 Please use "pMChp2_0_31" patch the following files /usr/src/linux/drivers/scsi/Makefile /usr/src/linux/drivers/scsi/Config.in /usr/src/linux/drivers/scsi/hosts.c /usr/src/linux/include/linux/proc_fs.h The source of DC390(T)/AMD53C974 driver..... New version maintain by Kurt Garloff http://student.physik.uni-dortmund.de/homepages/garloff ftp://student.physik.uni-dortmund.de/pub/linux/kernel/dc390 2. The first time installation A. Before Installation - Under DOS environment **************************************************************** ***** Make boot diskette for install RedHat 5.0 ****** **************************************************************** =====Decompress the Boot diskette image file===== pkunzip Rhboot50.zip =>> Rhboot50.img =====Rawrite a flopy at A:===== rawrite Rhboot50.img A: =>> installation diskette **************************************************************** ***** Make kernel diskette for update new kernel **** ***** when install RedHat 5.0 .... "Done" **** **************************************************************** =====Decompress the kernel diskette image file===== pkunzip Rhkern50.zip =>> Rhkern50.img =====Rawrite a flopy at A:===== rawrite Rhkern50.img A: =>> kernel diskette (type: ext2, contand: vmlinuz) **************************************************************** ***** Make patch diskette for remake new kernel **** **************************************************************** =====Copy pDC390x_ncr.gz to MS-DOS formatted diskette===== copy pDC390x_ncr.gz A: copy pMChp2_0_31.gz A: =>> patch diskette (type:MSDOS, contand:pMChp2_0_31.gz,pDC390x_ncr.gz) 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 screen display with message...... " Done " " Congratulations, installation is complete...... RedHat 5.0: Remove the floppy from drive a:, and put kernel disk in it RedHat 5.1: You don't need to remove bootdisk from a: ,use it for change kernel ********************************************************** * Don't press return at this moment * ********************************************************** Press Alt+F2 switch display to command prompt, go throught following steps to update the kernel that has drivers for the Tekram DC-390(T) and DC310/DC310U/DC390W/DC390U/DC390F/DC390U2B/DC390U2W. ==================================== ......The following procedure is important...... ===========update kernel============ RedHat 5.0 ===Change boot diskette with kernel diskette on flopy disk=== (1) bash# mkdir /mnt/mnt1 (2) bash# mount /mnt/dev/fd0 /mnt/mnt1 (3) bash# cp /mnt/mnt1/vmlinuz /mnt/boot/vmlinuz (4) bash# /mnt/sbin/lilo -r /mnt (5) bash# umount /mnt/mnt1 RedHat 5.1 ===You don't need to change diskette===== (1) bash# mkdir /mnt/mnt1 (2) bash# mount -t msdos /tmp/rhimage/live/dev/fd0 /mnt/mnt1 (3) bash# cp /mnt/mnt1/vmlinuz /mnt/boot/vmlinuz-2.0.35-1 (4) bash# /mnt/sbin/lilo -r /mnt (5) bash# umount /mnt/mnt1 Press Alt+F1 to switch back to installation done screen. Remove the floppy and press Enter to reboot. 3. Remake new kernel P.S: You must install your Linux system by developmental environment and include kernel source first. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Example of DC310/DC310U/DC390W/DC390U/DC390F/DC390U2B/DC390U2W % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ***************************************************** * Edit the following files * for compile the kernel that embed Tekram SCSI drivers * * /usr/src/linux/drivers/scsi/Makefile * /usr/src/linux/drivers/scsi/Config.in * /usr/src/linux/drivers/scsi/hosts.c * /usr/src/linux/include/linux/proc_fs.h ***************************************************** # cd /usr/src # mcopy a:pMChp2_0_31.gz # gzip -d pMChp2_0_31.gz # patch -p0 < pMChp2_0_31 ; ; you colud use command: find / -name *.rej ; to find any rejection file. ; ; If there were any "*.rej" created after this procedure, ; you need to edit those files (Makefile,Confiig.in,hosts.c,proc_fs.h) ; by yourself. ; You could reference "pMChp2_0_*" & "*.rej" contand before edit those files. ; ********************************************************************* * * * Copy source code of SCSI driver to /usr/src/linux/drivers/scsi * * * ********************************************************************* ; ; Make sure souce code of Tekram SCSI drivers did not release in ; /usr/src/linux/drivers/scsi ; ; If there were source files in directory /usr/src/linux/drivers/scsi ; Please delete them first. ; ; pDC390x_ncr: pDC390x_amd: ; # rm tmscsiw.c # rm tmscsim.c ; # rm tmscsiw.h # rm tmscsim.h ; # rm scsiiow.c # rm scsiiom.c ; # rm dc390w.h # rm dc390.h ; # rm scripts.h ; # mcopy a:pDC390x_ncr.gz # gzip -d pDC390x_ncr.gz # patch -p0 < pDC390x_ncr # 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-390W/U/F (T) SCSI support" say "Yes". ;When prompt for "NCR53c7,8xx SCSI support" say "No". ;When prompt for "NCR53C8XX SCSI support" say "No". # make dep clean zImage # cp arch/i386/boot/zImage / # ( edit the lilo.conf file under path /etc as follow...) ; Add an entry for "zImage" in /etc/lilo.conf ; Example: ; ... ; # Linux bootable partition config begins ; image = /zImage # <--- NEW ; root = /dev/sda1 # <--- NEW ; label = DC390W # <--- NEW ; read-only # <--- NEW ; # Linux bootable partition config ends ; # Linux bootable partition config begins ; image = /vmlinuz ; root = /dev/sda1 ; label = default ; read-only ; # Linux bootable partition config ends ; ... ; # lilo # shutdown -r now ;reboot the system ... ... boot: DC390W ;when system Rebooting ...