ARECA SATA RAID CONTROLLER ARC11XX/ARC12XX Driver Ver. 1.20.0x.13 RedHat Enterprise Linux AS release 4 Update 4, kernel 2.6.9-42.EL =================== Driver User's Guide ======================= 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 - (This file)The readme file for ARC11XX/ARC12XX RedHat Linux scsi raid driver arcmsr.1.20.0x.13.zip - Source code for standard linux.org kernel (arcmsr.c, arcmsr.h, Makefile) install.zip - ARECA RAID driver disk for system install (driver.img) ********************************************************************** ** 2. First-time installation ** ********************************************************************** A. Before Installation - Under DOS/Windows environment a. Unzip driver disk X:\PATH\pkunzip.exe install.zip =>> driver.img b. Dump it into a floppy disk. X:\PATH\rawrite.exe driver.img A: Tips: You can get rawrite.exe from RedHat installation CD #1 "\dosutils" directory. - Under Unix enviroment a. # unzip install.zip b. # 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 "text(or linux) dd" to tell linux we have a driver disk. c. You will be asked "Do you have a driver disk?", select "Yes". d. When prompted "Insert your driver disk and press OK to continue", insert the driver diskette in the floppy drive and then select "OK". e. Driver of arcmsr should be automaticlly loaded into kernel. The kernel will find RAID Volume connected to you raid card, and continue installing your system... ps. you can press Alt-F3 or Alt-F4 to check the driver loaded status, and press Alt-F1 to switch back. ********************************************************************** ** 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 -d ; you can get arcmsr.ko from 2.6.9-42.EL ,2.6.9-42.ELsmp CASE 2: if you need to compile linux kernel drivers source (You must install your Linux system with development environment first.) A. Prepare for make new kernel and drivers a. You need create a short link 'linux' in /usr/src directory first. #ln -s kernels/2.6.x linux b. unzip arcmsr.1.20.0x.13.zip c. Depended on your kernel version, copy the properly folder (arcmsr) to /usr/src/linux/drivers/scsi B. Modify make and config files In /usr/src/linux/drivers/scsi/Makefile @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ... @ .... @ obj-$(CONFIG_SCSI_ARCMSR) += arcmsr/ @ ... @ .. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ In /usr/src/linux/drivers/scsi/Kconfig @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ... @ .... @ config SCSI_ARCMSR @ tristate "ARECA ARC11X0[PCI-X]/ARC12X0[PCI-EXPRESS] SATA-RAID support" @ depends on PCI && SCSI @ help @ This driver supports all of ARECA's SATA RAID controllers cards. @ This is an ARECA maintained driver by Erich Chen. @ . @ @ To compile this driver as a module, choose M here: the @ module will be called arcmsr (modprobe arcmsr) . @ .... @ ... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ C. Make new kernel # cd /usr/src/linux # make mrproper # make config (or make xconfig ,make gconfig ,make menuconfig) Tips: Say "M" means configure this driver as a module. ;You can load default config from /usr/src/linux/arch/x86_64/defconfig .... ;When prompt for "SCSI support" say "Y" or "M". ;When prompt for "SCSI disk support" say "Y" or "M". ;When prompt for "SCSI tape support" say "Y" or "M". ;When prompt for "SCSI CD-ROM support" say "Y" or "M". ;When prompt for "SCSI generic support" say "Y" or "M". ;When prompt for "ARECA ARC11X0[PCI-X]/ARC12X0[PCI-EXPRESS] SATA-RAID support" ;say "Y" or "M" # make # make modules_install ; if your system is x86_64 # cp ./arch/x86_64/boot/bzImage /boot ; if your system is i386 # cp ./arch/i386/boot/bzImage /boot/ D. Modify boot loader configuration files. a. Modify /boot/grub/grub.conf Example: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ...... @title Red Hat Linux (2.6.x) @ root (hd0,0) @ kernel /vmlinuz-2.6.xxxxx ro root=/dev/sda2 @ initrd /initrd-2.6.xxxxx.img @ @title Red Hat Linux (2.6.x)custom <----add this context description @ root (hd0,0) <----add this context description @ kernel /bzImage ro root=/dev/sda2 <----add this context description @ ...... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ b. Make an initrd image NOTICE: If your low-level drivers are module, go through, otherwise, skip. An initrd image is needed for loading your SCSI module at boot time. So you need make your own initrd image..... Insert a add this context description into /etc/modprobe.conf Example: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ...... @ alias scsi_hostadapter arcmsr <----add this context description @ ...... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Build up a new initrd image. we assum your kernel version is 2.6.x.custom. # mkinitrd -f -v /boot/initrd-2.6.x.custom.raid.img 2.6.x.custom Insert a add this context description into /boot/grub/grub.conf Example: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ...... @ title Red Hat Linux (2.6.x) @ root (hd0,0) @ kernel /vmlinuz-2.6.xxxxx ro root=/dev/sda2 @ initrd /initrd-2.6.xxxxx.img @ @ title Red Hat Linux (2.6.x)custom @ root (hd0,0) @ kernel /bzImage ro root=/dev/sda2 @ initrd /initrd-2.6.x.custom.raid.img <----add this context description @ ...... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ E. #reboot