================================================================= ARECA SATA RAID CONTROLLER ARC1110/1120/1130/1160/1210/1220/1230/1260 Mandrake Linux 9.0, 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 Mandrake Linux scsi raid driver arcmsr.1.20.00.04.zip - Source code (arcmsr.c, arcmsr.h, Makefile) install.zip - Ziped dirver disk image driver.img (2.4.19-16mdkBOOT/arcmsr.o and 2.4.19-16mdk/arcmsr.o) ********************************************************************** ** 2. 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 Mandrake 9.0 installation CD #1 "\dosutils" directory. B. Installation (1) Start installing Mandrake 9.0 by booting with the CDROM. (2) At the Mandrake 9.0 Linux installation screen appear...... If you Press F1 and type with "expert" mode, when "If you want to insert third-party kernel modules?" message appear, please select "No" to continue install. If you Press Enter, It is good for you to do normal install. (4) Press Crtl+Alt+F2 at language selection menu, insert the arcmsr driver diskette into the floppy drive. (5) Issue following commands to load arcmsr module. # modprobe floppy # mkdir /floppy # mount -t vfat /dev/fd0 /floppy # cd /floppy # cp 2.4.19-16mdkBOOT/arcmsr.o /tmp/ # cd /tmp/ # modprobe sd_mod # /usr/bin/insmod_ arcmsr.o # cd / # umount /floppy (6) Then press Ctrl-Alt-F7 and proceed with the install. (7) Before reboot, Press Ctrl-Alt-F2 when installation at the final step (Configurations, installation is complete). Please insert the arcmsr driver diskette into the floppy drive again. Issue following commands to patch installed kernel. # chroot /mnt # mount -t vfat /dev/fd0 /mnt/floppy # cd /mnt/floppy # cp 2.4.19-16mdk/arcmsr.o /lib/modules/2.4.19-16mdk/kernel/drivers/scsi # cp modules.conf /etc # mkinitrd -f /boot/initrd-2.4.19-16mdk.img 2.4.19-16mdk # lilo # cd / # umount /floppy Then press Ctrl-Alt-F7 and reboot. ********************************************************************** ** 3. Installing raid driver on an Existing System. ** ********************************************************************** A. Prepare for make new kernel and drivers a. unzip arcmsr.1.20.00.04.zip b. 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 config (or make xconfig) Tips: Say "M" means configure this driver as a module. ;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 (ARC1110/1120/1130/1160/1210/1220/1230/1260) SATA PCI RAID Controller SCSI support" ;say "Y" or "M" # make dep # make clean # make bzImage # make modules # make modules_install # cp ./arch/i386/boot/bzImage /boot D. Modify boot loader configuration files. ################################# ## If you using LILO to boot up## ################################# I. 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 @ ... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ II. Make an initrd image NOTICE: If your low-level drivers are module, going on, otherwise, jump to step III 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/modules.conf @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ...... @ probeall scsi_hostadapter arcmsr <---- add this context description @ ...... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Build up a new initrd image. we assum your kernel version is 2.4.19-16mdkcustom. # mkinitrd -f -v /boot/initrd-2.4.19-16mdkcustom.img 2.4.19-16mdkcustom Insert a add this context description into /etc/lilo.conf Example: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ ... @ image = /boot/vmlinuz @ root = /dev/sda1 @ label = linux @ read-only @ @ image = /boot/bzImage @ root = /dev/sda1 @ label = arcmsr @ read-only @ initrd = /boot/initrd-2.4.19-16mdkcustom.img <---add this context description @ ... @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ III. Update lilo # lilo E. #reboot