ARECA SATA RAID CONTROLLER ARC1110/1120/1130/1160/1210/1220/1230/1260 Debian Linux 3.2-r2, Driver Ver. 1.20.00.04 =================== Driver User's Guide ======================= Linux SCSI driver technical support mail address: erich@areca.com.tw Tel: 886-2-8797-4060 Ext.203 Fax: 886-2-8797-5970 Web site: www.areca.com.tw ================================================================= ********************************************************************** ** 1. Contents ** ********************************************************************** readme.txt - (This file)The readme file for ARC1110/1120/1130/1160/1210/1220/1230/1260 RedHat Linux scsi raid driver arcmsr.1.20.00.04.zip - Source code (arcmsr.c, arcmsr.h) rescue.zip - Debian 3.0-r2 installation 1.44 diskette image file (rescue.bin) root.zip - Debian 3.0-r2 root 1.44 diskette image file (root.bin) ********************************************************************** ** 2. First-time installation ** ********************************************************************** A. Before Installation - Under DOS/Windows environment a. Unzip driver disk X:\PATH\pkunzip.exe rescue.zip =>> rescue.bin X:\PATH\pkunzip.exe root.zip =>> root.bin b. Dump it into a floppy disk. X:\PATH\rawrite.exe rescue.bin A: X:\PATH\rawrite.exe root.bin A: Tips: You can get rawrite.exe from Debian 3.2-r2 CD #1 "\tools" directory. B. Installation 1.insert your rescue.bin installation diskette into your floppy drive. 2.Boot rescue.bin diskette from drive a: 3.following installation procedure to insert root.bin diskette and setting up your Debian Linux system 4.When the installation procedure show message : "Make System Bootable" Please press [Alt+F2], You can get this message "Please press Enter to activate this console" You need to push [Enter] and do the following procedure....... a. [insert rescue.bin diskette into your floppy drive] b. cd / c. mount /dev/fd0 /mnt d. cp /mnt/linux /target/boot/vmlinuz-2.2.20 e. umount /mnt Please press [Alt+F1], (Go Back) and then done your "Make System Bootable".... 5.Please continue your installation procedure until Reboot your system. 3. Remake new kernel ******************************************************************************* ** ** You can get kernel source package from your linux kernel mirror site ** ** 1. cp 2.xx.xx-xx.tar.gz /usr/src ** 2. tar zxvf 2.xx.xx-xx.tar.gz ## -> /usr/src/linux ** ** or ** Debian package ... such as : kernel-source-2.xx.xx-xx.deb ** ** 1. dpkg -i kernel-source-2.xx.xx-xx.deb ## -> kernel-source-2.xx.xx-xx.tar.bz2 ** 2. cd /usr/src ** 3. bzip2 -d kernel-source-2.xx.xx-xx.tar.bz2 ## -> kernel-source-2.xx.xx-xx.tar ** 4. tar xvf kernel-source-2.xx.xx-xx.tar ## -> kernel-source-2.xx.xx-xx ** 5. ln -s kernel-source-2.xx.xx-xx linux ** ** ******************************************************************************* P.S: You must install your Linux system by developmental environment and include kernel source first. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ if your kernel source version is 2.2.x-xx @ ---------------------------------------------------- @ Edit 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 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Please add some new text lines at those files: /usr/src/linux/drivers/scsi/Makefile @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ @ ifeq ($(CONFIG_SCSI_AIC7XXX),y) @ L_OBJS += aic7xxx.o @ else @ ifeq ($(CONFIG_SCSI_AIC7XXX),m) @ M_OBJS += aic7xxx.o @ endif @ endif @ @ ifeq ($(CONFIG_SCSI_ARCMSR),y) <----new @ L_OBJS += arcmsr.o <----new @ else <----new @ ifeq ($(CONFIG_SCSI_ARCMSR),m) <----new @ M_OBJS += arcmsr.o <----new @ endif <----new @ endif <----new @ @ ifeq ($(CONFIG_SCSI_DC390T),y) @ L_OBJS += tmscsim.o @ else @ ifeq ($(CONFIG_SCSI_DC390T),m) @ M_OBJS += tmscsim.o @ endif @ endif @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ /usr/src/linux/drivers/scsi/Config.in @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ @ if [ "$CONFIG_PCI" = "y" ]; then @ dep_tristate 'Qlogic ISP SCSI support' CONFIG_SCSI_QLOGIC_ISP $CONFIG_SCSI @ dep_tristate 'Qlogic ISP FC SCSI support' CONFIG_SCSI_QLOGIC_FC $CONFIG_SCSI @ fi @ dep_tristate 'Seagate ST-02 and Future Domain TMC-8xx SCSI support' CONFIG_SCSI_SEAGATE $CONFIG_SCSI @ dep_tristate 'ARECA (ARC1110/1120/1130/1160/1210/1220/1230/1260) SATA RAID HOST Controller' CONFIG_SCSI_ARCMSR $CONFIG_SCSI <----new @ .... @ .. @ . @ dep_tristate 'Trantor T128/T128F/T228 SCSI support' CONFIG_SCSI_T128 $CONFIG_SCSI @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ /usr/src/linux/drivers/scsi/hosts.c @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ #ifdef CONFIG_SCSI_SYM53C416 @ #include "sym53c416.h" @ #endif @ @ #ifdef CONFIG_SCSI_ARCMSR <----new @ #include "arcmsr.h" <----new @ #endif <----new @ @ #ifdef CONFIG_SCSI_DC390T @ #include "dc390.h" @ #endif @ @ #ifdef CONFIG_SCSI_AM53C974 @ #include "AM53C974.h" @ #endif @ ----------------------- @ ---- @ --- @ -- @ ----------------------- @ @ #ifdef CONFIG_SCSI_IBMMCA @ IBMMCA, @ #endif @ #ifdef CONFIG_SCSI_EATA @ EATA, @ #endif @ #ifdef CONFIG_SCSI_ARCMSR <----new @ ARCMSR, <----new @ #endif <----new @ #ifdef CONFIG_SCSI_DC390T @ DC390_T, @ #endif @ #ifdef CONFIG_SCSI_AM53C974 @ AM53C974, @ #endif @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ /usr/src/linux/include/linux/proc_fs.h @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ @ PROC_SCSI_FD_MCS, @ PROC_SCSI_EATA2X, @ PROC_SCSI_ARCMSR, <----new @ PROC_SCSI_DC390T, @ PROC_SCSI_AM53C974, @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ ***************************************************************************** * * * Copy arcmsr.c arcmsr.h into /usr/src/linux/drivers/scsi * * * ***************************************************************************** # make menuconfig ;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 "ARECA (ARC1110/1120/1130/1160/1210/1220/1230/1260) SATA RAID HOST Controller" say "Yes". # make dep bzImage # cp arch/i386/boot/bzImage /bzImage-2.xx.xx # ( edit the lilo.conf file under path /etc as follow...) ; Add an entry for "bzImage" in /etc/lilo.conf ; Example: ; ... ; # Linux bootable partition config begins ; image = /bzImage-2.xx.xx # <--- NEW ; root = /dev/sda1 # <--- NEW ; label = arcmsr # <--- 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 ... . @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ if your kernel source version is 2.4.x-xx @ ---------------------------------------------------- @ Edit the following files @ /usr/src/linux/drivers/scsi/Makefile @ /usr/src/linux/drivers/scsi/Config.in @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ A. Prepare for make new kernel and drivers 1. cp 2.4.xx-xx.tar.gz /usr/src 2. cd /usr/src 3. tar zxvf 2.4.xx-xx.tar.gz a. You need create a short link 'linux' in /usr/src directory first. #ln -s linux-2.4.xx-xx linux b. unzip arcmsr.1.20.00.04.zip c. Copy this folder (arcmsr) to /usr/src/linux/drivers/scsi B. Modify make and config files In /usr/src/linux/drivers/scsi/Makefile @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ... @ .... @ subdir-$(CONFIG_SCSI_ARCMSR) += arcmsr @ obj-$(CONFIG_SCSI_ARCMSR) += arcmsr/arcmsr.o @ ... @ .. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ In /usr/src/linux/drivers/scsi/Config.in @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ... @ .... @ if [ "$CONFIG_PCI" = "y" ]; then @ dep_tristate 'ARECA (ARC1110/1120/1130/1160/1210/1220/1230/1260) SATA PCI RAID Controller SCSI support' CONFIG_SCSI_ARCMSR $CONFIG_SCSI @ fi @ .... @ ... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ C. Make new kernel # cd /usr/src/linux # make mrproper # make menuconfig (or make xconfig) Tips: Say "M" means configure this driver as a module. ;When prompt for "SCSI support" say "Y" ;When prompt for "SCSI disk support" say "Y" ;When prompt for "SCSI tape support" say "Y" ;When prompt for "SCSI CD-ROM support" say "Y" ;When prompt for "SCSI generic support" say "Y" ;. ;.. ;... ;When prompt for "ARECA (ARC1110/1120/1130/1160/1210/1220/1230/1260) SATA PCI RAID Controller SCSI support" say "Y" # make dep # make bzImage # make modules # make modules_install # cp ./arch/i386/boot/bzImage /boot D. Modify boot loader configuration files. Edit /etc/lilo.conf file as follow... Example: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ... @ image = /boot/vmlinuz @ root = /dev/sda1 @ label = linux @ read-only @ @ image = /boot/bzImage <--- add this context description @ root = /dev/sda1 <--- add this context description @ label = arcmsr <--- add this context description @ read-only <--- add this context description @ ... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ #lilo #shutdown -r now ;reboot the system