Driver Disk Installation Guide for ARC-11XX/ARC12XX/ARC16XX/18XX RAID Controller on RHEL6.2(kernel 2.6.32-220.el6) 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 Web site: www.areca.com.tw ================================================================================== ================================================================================== ********************************************************************************** 1. Contents ********************************************************************************** readme.txt - the installation guide for ARC-11XX/12XX/16XX/18XX driver on RHEL release 6 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. First installation ********************************************************************************** A. Before Installation # unzip install.zip # dd if=driver.img of=/dev/fd0 B. Installation a. Booting from Installation CDROM #1 b. When the Welcome screen appears, press Enter, wait for the graphical installation to begin, do not pass "linux dd" boot prompt and do not click "Next", then type CTRL + ALT + F2 to switch to the shell. c. Type the following commands to load the controller driver: #mkdir /floppy /arcmsr #mount /dev/fd0 /floppy #cp -r /floppy/* /arcmsr #cd /arcmsr #sh ./pre-install.sh Note: These commands assume the floppy drive is assigned to /dev/fd0. If not, please select the correct code number. e.g. USB floppy drive will be assigned to /dev/sda. d. Press ALT + F6 to switch back to the installation screen, then click "Next". e. Follow the on-screen message to continue the installation. When CentOS installation is complete and ready to reboot the system, press CTRL + ALT + F2 to switch to the console. Do not reboot! f. Type the following commands to complete the driver installation: #mkdir /mnt/sysimage/tmp/arcmsr #cp -r /arcmsr/* /mnt/sysimage/tmp/arcmsr #chroot /mnt/sysimage/ #cd /tmp/arcmsr #sh ./post-install.sh #exit g. Press ALT + F6 to switch back to the installation screen, finish the installation, then reboot. ********************************************************************************** 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.32-220.el6 folder #rmmod arcmsr #insmod arcmsr.ko CASE 2: if you need to compile driver source $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $$ Method for RedHat official source kernel pack $$ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ RedHat Enterprise Linux 6 releases no longer includes the kernel-source package. Therefore, users need to download kernel-2.6.32-220.el6.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.32-220.el6.src.rpm file from ftp site, #wget ftp://ftp.redhat.com/pub/redhat/linux/enterprise/ 6Server/en/os/SRPMS/kernel-2.6.32-220.el6.src.rpm B: add user, mockbuild, #useradd mockbuild C: install kernel-2.6.32-220.el6.src.rpm, #rpm -i kernel-2.6.32-220.el6.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.32/linux-2.6.32-220.el6. #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.32/linux-2.6.32-220.el6. #vi Makefile EXTRAVERSION =-custom H: build new kernel rpm, #cd /usr/src/redhat/BUILD/kernel-2.6.32/linux-2.6.32-220.el6. #make rpm I: install new kernel, #cd /usr/src/redhat/RPMS/i386/ #rpm -ivh kernel-2.6.32-custom.i386.rpm J: build new kernel ramdisk, #mkinitrd /boot/initramfs-2.6.32-custom.img 2.6.32-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.32-220.el6)custom @ root (hd0,0) @ kernel /vmlinuz-2.6.32-220.el6-custom ro root=/dev/sda1 @ initrd /initramfs-2.6.32-220.el6-custom.img @ title Red Hat Linux (2.6.32-220.el6) @ root (hd0,0) @ kernel /vmlinuz-2.6.32-220.el6 ro root=/dev/sda1 @ initrd /initramfs-2.6.32-220.el6.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/ #mkinitrd -f -v /boot/initramfs-2.6.32-220.el6.img 2.6.32-220.el6.x86_64 (Note: This command assume the folder of your system /lib/modules is 2.6.32-220.el6.x86_64, if not, please type in the correct folder name.