Tekram SCSI adapters: (AMD53C974) DC390(T) (NCR53C8XX) DC310/DC310U/DC390W/DC390U/DC390F/DC390U2B/DC390U2W (TRM-S1040) DC395U/UW/F DC315/U Debian 2.0 Linux =================== Driver User's Guide ======================= Linux SCSI driver technical support mail address: erich@tekram.com.tw ================================================================= 1. Contents readme.txt - (This file)The readme file for DC390(T) DC310/DC310U/DC390W/DC390U/DC390F/DC390U2B/DC390U2W DC395U/UW/F DC315/U Linux driver Resc1440.zip - Debian 2.0 installation diskette image file (Resc1440.bin) Drv1440.zip - Debian 2.0 Driver diskette image file (Drv1440.bin) 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 pDC395x_trm.gz - Source code of DC395U/UW/F DC315/U SCSI driver pMChpDb20.gz - Please use "pMChpDb20" 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 %%%%%%%%%%%%%%%%%%%%%%%%%%% DC390(T) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%% DC310/DC310U/DC390W/DC390U/DC390F/DC390U2B/DC390U2W %%%%%%%% ** first: You moust create a installation (Rescue)diskette pkunzip Resc1440.zip --> Resc1440.bin Rawrite Resc1440.bin to floppy.....this is the installation diskette. ** second: You moust create a Driver diskette pkunzip Drv1440.zip --> Drv1440.bin Rawrite Drv1440.bin to floppy.....this is the Driver diskette. **************************************************************** ***** Make patch diskette for remake new kernel **** **************************************************************** IF YOU USED DC390(T) (am53c974 chip set) Copy pDC390x_amd.gz to MS-DOS formatted diskette copy pDC390x_amd.gz A: copy pMChpDb20.gz A: =>> patch diskette (type:MSDOS, contand:pMChpDb20.gz,pDC390x_amd.gz) IF YOU USED DC390W/U/F/U2B/U2W (ncr53c8xx chip set) DC310/U Copy pDC390x_ncr.gz to MS-DOS formatted diskette copy pDC390x_ncr.gz A: copy pMChpDb20.gz A: =>> patch diskette (type:MSDOS, contand:pMChpDb20.gz,pDC390x_ncr.gz) IF YOU USED DC395U/UW/F (TRM-S1040 chip set) DC315/U Copy pDC395x_trm.gz to MS-DOS formatted diskette copy pDC395x_trm.gz A: copy pMChpDb20.gz A: =>> patch diskette (type:MSDOS, contand:pMChpDb20.gz,pDC395x_trm.gz) B. Installation >>>>>>>>>>>>>>>>>>>>>>>>>>>>>><< DC390(T) >><<<<<<<<<<<<<<<<<<<<<<<<<<<<<< >>>>>>>>>>>><< DC310/DC310U/DC390W/DC390U/DC390F/DC390U2B/DC390U2W >><<<<<<<<<<< It is important for you to install Debian GNU/Linux in your SCSI hard disk. #############**<< if you try to boot form your SCSI CDROM >>**########### You must enable your adapter Option: Boot From CDROM ..... Enable Boot Device ID ..... (same as your SCSI CDROM ID) Then ==>select the section to boot to abort: 0 ........ ....same process as try to boot from installation floppy..... ........ #############**<< if you try to boot form your IDE CDROM >>**########### You must enable your motherboard bios 'CDROM BOOT' Option.... ........ ....same process as try to boot from installation floppy..... ........ #########**<< If you try to boot form your installation floppy >>**######### Debian GNU/Linux installation start... ..... ..... ############################################################################ # Next :Install Operating System Kernel and Modules (RETURN) # # ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: # # @@@@@@@ Select Installation Medium @@@@@@@@ # # Please select the medium you will use to install the # # System # # _____________________________________________ # # --> /dev/fd0 :First floppy drive | <--Please select it # # /dev/fd1 :Second floppy drive | # # cdrom :CD-ROM drive | # # harddisk :filesystem on the hard disk | # # mounted :already mounted filesystem | # # _____________________________________________| # # it will copy (kernel & driver) from (Rescue floppy & Driver floppy) # # to your hard disk # ############################################################################ 3. Remake new kernel P.S: You must install your Linux system by developmental environment and include kernel source first. ***************************************************** * 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:pMChpDb20.gz # gzip -d pMChpDb20.gz # patch -p0 < pMChpDb20 ; ; 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 "pMChpDb20" & "*.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: pDC395x_trm: ; # rm tmscsiw.c # rm tmscsim.c # rm dc395x_trm.c ; # rm tmscsiw.h # rm tmscsim.h # rm dc395x_trm.h ; # rm scsiiow.c # rm scsiiom.c ; # rm dc390w.h # rm dc390.h ; # rm scripts.h ; ===================================== IF YOU USED DC390(T) (am53c974 chip set) ===================================== # mcopy a:pDC390x_amd.gz # gzip -d pDC390x_amd.gz # patch -p0 < pDC390x_amd # 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 "AMD53C974 SCSI support" say "No". ;When prompt for "Tekram DC390(T) SCSI support' CONFIG_SCSI_DC390x_AM53C974" say "Yes". # 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 = DC390x_amd # <--- NEW ; read-only # <--- NEW ; # Linux bootable partition config ends ; # Linux bootable partition config begins ; image = /vmlinuz ; root = /dev/sda1 ; label = linux ; read-only ; # Linux bootable partition config ends ; ... ; # lilo # shutdown -r now ;reboot the system ... ... boot: DC390x_amd ;when system Rebooting ... ===================================== IF YOU USED DC390W/U/F/U2B/U2W (ncr53c8xx chip set) DC310/U ===================================== # 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 "NCR53c7,8xx SCSI support" say "No". ;When prompt for "NCR53C8XX SCSI support" say "No". ;When prompt for "'Tekram DC390W/U/F/U2B/U2W and DC310/U SCSI support' CONFIG_SCSI_DC390x_NCR53C8XX" say "Yes". # 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 = DC390x_ncr # <--- NEW ; read-only # <--- NEW ; # Linux bootable partition config ends ; # Linux bootable partition config begins ; image = /vmlinuz ; root = /dev/sda1 ; label = linux ; read-only ; # Linux bootable partition config ends ; ... ; # lilo # shutdown -r now ;reboot the system ... ... boot: DC390x_ncxr ;when system Rebooting ... ===================================== IF YOU USED DC395U/UW/F (TRM-S1040 chip set) DC315/U ===================================== # mcopy a:pDC395x_trm.gz # gzip -d pDC395x_trm.gz # patch -p0 < pDC395x_trm # 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 DC395/U/UW/F and DC315/U SCSI support' CONFIG_SCSI_DC395x_TRM_S1040" say "Yes". # 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 = DC395x_trm # <--- NEW ; read-only # <--- NEW ; # Linux bootable partition config ends ; # Linux bootable partition config begins ; image = /vmlinuz ; root = /dev/sda1 ; label = linux ; read-only ; # Linux bootable partition config ends ; ... ; # lilo # shutdown -r now ;reboot the system ... ... boot: DC395x_trm ;when system Rebooting ... $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $ $ $ ALL Tekram SCSI adapters features control by SCSI BIOS $ $ $ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$