Driver Disk Installation Guide for ARC-11XX/ARC12XX/ARC16XX/18XX RAID Controller on RHEL5.9(kernel 2.6.18-348.el5) x86_64 and x86 ================================================================================= ================================================================================= Linux SCSI driver technical support mail address: support@areca.com.tw Tel: 886-2-8797-4060 Fax: 886-2-8797-5970 Website: www.areca.com.tw ================================================================================== ================================================================================== ********************************************************************************** 1. Contents ** ********************************************************************************** readme.txt - the installation guide for ARC-11XX/12XX/16XX/18XX driver on RedHat AS release 5 arcmsr.1.20.0X.15-130222.zip - source code(arcmsr.c, arcmsr.h, Makefile) install.zip - ziped Areca RAID driver disk for system install (driver.img) ********************************************************************************** 2. Fresh installation ** ********************************************************************************** A. Before Installation # unzip install.zip # dd if=driver.img of=/dev/fd0 B. Installation a. Booting from Installation CDROM #1 b. On "Welcome to Red Hat Linux" installation screen, a prompted lable "boot:" will appear at the bottom of the screen. According to the prompt, type in "linux(or text) dd" to tell linux we have a driver disk. c. You will be asked "Do you have a driver disk?", select "Yes". d. When asking for "Driver Disk Source", select "fd0". If your floppy drive is conneted to M/B through USB interface, then select "sda". e. When prompted "Insert your driver disk and press OK to continue", insert the driver diskette in the floppy drive and then select "OK". f. During "Loading SCSI Driver", arcmsr driver should be automaticlly loaded into kernel. The kernel will find RAID Volume connected to you raid card, and continue installing your system... g. If your floppy drive is USB interface, there will be a error message display. "No devices of the appropriate type were found on this driver disk." Ignore it and select "Continue". h. When asking for "More Driver Disks?" Select "No" and go on system installation. ********************************************************************************** 3. Installing raid driver on an Existing System. ** ********************************************************************************** CASE 1: if you do not attempt to compile driver source $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$ extract arcmsr.ko from install.zip $$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ #mkdir /root/tmp #unzip install.zip #dd if=driver.img of=/dev/fd0 #mount /dev/fd0 /mnt #cp /mnt/modules.cgz /root/tmp #cd /root/tmp #gzip -cd modules.cgz > modules.cpio #cat modules.cpio | cpio -i ; you can get arcmsr.ko from 2.6.18-348.el5 folder CASE 2: if you need to compile driver source $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$ Method for RedHat official source kernel pack $$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ RedHat Enterprise Linux 5 releases no longer includes the kernel-source package. Therefore, users need to download kernel-2.6.18-348.el5.src.rpm to get the Linux source tree, and then make Areca driver. Users that require access to the kernel sources can find them through Google search or take the following steps: A: obtain the kernel-2.6.18-348.el5.src.rpm file from ftp site, #wget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/ 5Server/en/os/SRPMS/kernel-2.6.18-348.el5.src.rpm B: add user, mockbuild, #useradd mockbuild C: install kernel-2.6.18-348.el5.src.rpm, #rpm -i kernel-2.6.18-348.el5.src.rpm D: make the directory for "RPM build", #cd /usr/src/redhat/SPECS #rpmbuild -bp --target=`uname -m` kernel-2.6.spec E: copy the pre-built configuration file, #cd /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18-348.el5. #cp /boot/config-`uname -r` .config F: re-build your own system configuration, #make menuconfig G: change the new kernel's Extra Version info, #cd /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18-348.el5. #vi Makefile EXTRAVERSION =-custom H: build new kernel rpm, #cd /usr/src/redhat/BUILD/kernel-2.6.18/linux-2.6.18-348.el5. #make rpm I: install new kernel, #cd /usr/src/redhat/RPMS/i386/ #rpm -ivh kernel-2.6.18-custom.i386.rpm J: build new kernel ramdisk, #mkinitrd /boot/initrd-2.6.18-custom.img 2.6.18-custom K: add new items for new kernel into /boot/grub/grub.conf, and designate new kernel as the bootup default item, #vi /etc/grub.conf Example: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ default=0 @ timeout=5 @ ...... @ title Red Hat Linux (2.6.18-348.el5)custom @ root (hd0,0) @ kernel /vmlinuz-2.6.18-348.el5-custom ro root=/dev/sda1 @ initrd /initrd-2.6.18-348.el5-custom.img @ title Red Hat Linux (2.6.18-348.el5) @ root (hd0,0) @ kernel /vmlinuz-2.6.18-348.el5 ro root=/dev/sda1 @ initrd /initrd-2.6.18-348.el5.img @ ...... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ L: reboot, #shutdown -r now M: enter the directory with arcmsr.c, arcmsr.h and Makefile, and then make the dirver, #cd arcmsr #make N: if you need the driver being inserted automatically after every reboot, make a new initrd image with the driver as following steps. #cp arcmsr.ko /lib/modules/`uname -r`/kernel/drivers/scsi/arcmsr/ #vi /etc/modprobe.conf, and add "alias scsi_hostadapter arcmsr" #mkinitrd -f -v /boot/initrd-2.6.18-348.el5.img 2.6.18-348.el5