Tekram SCSI adapters: (AMD53C974) DC390(T) (NCR53C8XX) DC310/DC310U/DC390W/DC390U/DC390F DC390U2B/DC390U2W/DC390U2D (TRM-S1040) DC395U/UW/F DC315/U FreeBSD 4.2 =================== Driver User's Guide ======================= FreeBSD SCSI driver technical support mail address: erich@tekram.com.tw ================================================================= ********************************************************************************* * 1. Contents * ********************************************************************************* ************* * This file * ************* readme.txt - The readme file for Tekram FreeBSD SCSI driver (AMD53C974) DC390(T) (NCR53C8XX) DC310/DC310U/DC390W/DC390U/DC390F DC390U2B/DC390U2W/DC390U2D (TRM-S1040) DC395U/UW/F DC315/U **************************************************************************** * installation disks of FreeBSD RELEASE-4.2.R for all Tekram SCSI adapters * **************************************************************************** kern420.zip - (kern.flp) first boot diskette image file for FreeBSD RELEASE-4.2.R mfsroot420.zip - (mfsroot.flp) secend boot diskette image file for FreeBSD RELEASE-4.2.R trmkern420.zip - (trmkern.flp) Tekram kernel diskette image file for FreeBSD RELEASE-4.2.R there was one kernel file in this diskette use it for "change kernel" before "reboot" during you install FreeBSD RELEASE-4.2.R **************************************************************************** * SCSI adapter DC390(T) * * driver source code for AMD53c974 scsi chip set * **************************************************************************** dc390x_amd.tar.gz - FreeBSD 4.x.x SCSI adapter driver two files amd.c ,amd.h inside please copy these files to /usr/src/sys/pci (also to support amd53c974 none Tekram SCSI adapter) FreeBSD 4.x.x the "GENERIC: amd.c ,amd.h " is default support for DC390(T) **************************************************************************** * SCSI adapter DC315,DC315U,DC395U,DC395UW,DC395F * * driver source code for TRM-S1040 scsi chip set * **************************************************************************** dc395x_trm.tar.gz - FreeBSD 4.x.x SCSI adapter driver two files dc395x_trm.c ,dc395x_trm.h inside please copy these files to /usr/src/sys/pci (only support TRM-S1040 ASIC Tekram SCSI adapter) **************************************************************************** * SCSI adapter DC310,DC310U,DC390W,DC390U,DC390F,DC390U2B,DC390U2W,DC390U2D* * driver source code for ncr53c8xx scsi chip set * **************************************************************************** dc390x_ncr.tar.gz - FreeBSD 4.x.x SCSI adapter driver two files dc390x_ncr.c ,dc390x_ncr.h inside please copy these files to /usr/src/sys/pci There are 3 drivers for this type SCSI adapters: .....dc390x_ncr.c dc390x_ncr.h (also to support ncr53c8xx none Tekram SCSI adapter) ...../usr/src/sys/pci/ncr.c (generic driver support for ncr53c8xx SCSI chip set) ...../usr/src/sys/dev/sym/sym_hipd.c (generic driver support for SYM53c896 SYM53c1010 SCSI chip set) FreeBSD 4.x.x the "GENERIC: ncr.c" is good for DC310,DC310U,DC390W,DC390U,DC390F,DC390U2B,DC390U2W you can use it anyway. FreeBSD 4.x.x the "GENERIC: sym_hipd.c" is good for DC390U2,DC390U3 you can use it. ********************************************************************************* * 2. The first-time installation * ********************************************************************************* A. Before Installing (Under DOS environment) a. Get three 1.44M formatted and empty diskettes. Configure a 1.44M floppy drive as A:. Get DOS tools: PKUNZIP.EXE and RAWRITE.EXE. b. Decompress diskette image file by: pkunzip kern420.zip =>> kern.flp (first boot diskette) pkunzip mfsroot420.zip =>> mfsroot.flp (second boot diskette) pkunzip trmkern420.zip =>> trmkern.flp (tekram kernel diskette) c. Make installation diskettes ************************************************** *insert a 1.44M empty diskette to floppy drive A.* ************************************************** rawrite kern.flp A: (first boot diskette done) ************************************************** *remove (first boot diskette) diskette * *than insert another 1.44M empty diskette * ************************************************** rawrite mfsroot.flp A: (second boot diskette done) ************************************************** *remove (second boot diskette) diskette * *than insert another 1.44M empty diskette * ************************************************** rawrite trmkern.flp A: (Tekram kernel diskette done) B. Installation a. Installing system Using "BOOT" diskettes that you made as the booting diskette follows the FreeBSD installation procedures to install. first boot diskette =>kern.flp second boot diskette =>mfsroot.flp b. Updating kernel **************************************************** * before reboot * * you need to use file "kernel" in trmkernxxx.flp * * to change kernel * **************************************************** - After system is installed completely, and system back to the "/stand/sysinstall Main Menu" screen: - Now press ALT+F4, system enter into command prompt. Remove "BOOT" diskette and insert "trmkern.flp" diskette to drive A. Type the following command to update the kernel. # cd / # mount /dev/fd0 /mnt # mv kernel kernel.old # cp /mnt/kernel.gz /tmp # gzip -d /tmp/kernel.gz # cp /tmp/kernel / # umount /mnt press ALT+F1 c. Exit Install and Reboot system ************************************************************************ * 3. Configure the system and Remake the kernel * ************************************************************************ ****************************** *edit /usr/src/sys/conf/files* ****************************** @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ pci/ncr.c optional ncr device-driver @ @ pci/pci.c optional pci device-driver @ @ pci/pci_compat.c optional pci @ @ pci/pcisupport.c optional pci @ @ pci/amd.c optional amd device-driver @ @ pci/dc395x_trm.c optional tekram_trm device-driver <= new@ @ pci/dc390x_ncr.c optional tekram_ncr device-driver <= new@ @ pci/wdc_p.c optional wdc device-driver @ @ pci/simos.c optional simos device-driver @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ************************************* *edit /usr/src/sys/i386/conf/GENERIC* ************************************* @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ # A single entry for any of these devices (ncr, ahb, ahc) is @ @ # sufficient for any number of installed devices. @ @ @ @ device amd0 #Tekram for AMD53C974 SCSI chip set @ @ device tekram_trm0 #Tekram for TRM-S1040 SCSI chip set <= new@ @ #device tekram_ncr0 #Tekram for NCR53C8XX SCSI chip set <= new@ @ device ncr0 @ @ device sym0 #GENERIC for DC390U3 53c1010 @ @ device ahb0 @ @ device ahc0 @ @ device isp0 @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ If you have (AMD53C974) DC390(T) scsi card. You must to enable (device amd0) device amd0 #Tekram for AMD53C974 SCSI chip set #device tekram_trm0 #Tekram for TRM-S1040 SCSI chip set #device tekram_ncr0 #Tekram for NCR53C8XX SCSI chip set #device ncr0 #device sym0 If you have (TRM-S1040) DC395U/UW/F DC315/U scsi card. You must to enable (device tekram_trm0) #device amd0 #Tekram for AMD53C974 SCSI chip set device tekram_trm0 #Tekram for TRM-S1040 SCSI chip set #device tekram_ncr0 #Tekram for NCR53C8XX SCSI chip set #device ncr0 #device sym0 If you have (NCR53C8XX) DC310/DC310U/DC390W/DC390U/DC390F DC390U2B/DC390U2W/DC390U2D scsi card. You must to enable (device tekram_ncr0) or (device ncr0) or (device sym0) #device amd0 #Tekram for AMD53C974 SCSI chip set #device tekram_trm0 #Tekram for TRM-S1040 SCSI chip set device tekram_ncr0 #Tekram for NCR53C8XX SCSI chip set #device sym0 #device ncr0 ************************************** *copy source code to /usr/src/sys/pci* ************************************** (AMD53C974) DC390(T): tar zxvf dc390x_amd.tar.gz cp amd.c /usr/src/sys/pci cp amd.h /usr/src/sys/pci (this driver already release at FreeBSD) (TRM-S1040) DC395U,DC395UW,DC395F,DC315,DC315U: tar zxvf dc395x_trm.tar.gz cp dc395x_trm.c /usr/src/sys/pci cp dc395x_trm.h /usr/src/sys/pci (NCR53C8XX) DC310,DC310U,DC390W,DC390U,DC390F,DC390U2B,DC390U2W,DC390U2D: tar zxvf dc390x_ncr.tar.gz cp dc390x_ncr.c /usr/src/sys/pci cp dc390x_ncr.h /usr/src/sys/pci 1. tekram_ncr0 .....dc390x_ncr.c dc390x_ncr.h (also to support 53c8xx none Tekram SCSI adapter) 2. ncr0 /usr/src/sys/pci .....ncr.c ncrreg.h (generic ncr53c8xx driver support) 3. sym0 /usr/src/sys/dev/sym .....sym_hipd.c sym_conf.h sym_defs.h (DC390U3D please select it) (generic 53c8xx 53c1010 driver support) ==================================================================== # cd /usr/src/sys/i386/conf # config GENERIC # cd ../../compile/GENERIC # make depend # make # make install # reboot