
Driver Disk Installation Guide for ARC-11XX/ARC12XX/ARC16XX/18XX RAID Controller 
         on Fedora 21 (kernel 3.17.4-301.fc)
=================================================================================
Linux SCSI driver technical support 
mail address: support@areca.com.tw
Web site: www.areca.com.tw
==================================================================================
 
**********************************************************************************   
1. Contents
**********************************************************************************

readme.txt	- The installation guide of ARC-11XX/12XX/16XX/18XX driver for Fedora 21
arcmsr_fc21.zip	- Areca RAID driver for system installation
kmod-arcmsr-1.30.0X.19-1.fc21.x86_64.rpm    - arcmsr driver for x86_64
kmod-arcmsr-1.30.0X.19-1.fc21.i686.rpm      - arcmsr driver for i686
kmod-arcmsr+PAE-1.30.0X.19-1.fc21.i686.rpm  - arcmsr driver for i686+PAE
arcmsr-1.30.0X.19-20140919.zip  - arcmsr driver source code
**********************************************************************************
2. First installation
**********************************************************************************
A. Before Installation 
   Copy arcmsr_fc21.zip to top(/) directory of an USB flash drive .
   Give a label to USB flash drive, said OEMDRV.

B. For Server Installation
	1. Insert USB flash drive to target system.
	2. Booting from Fedora Installation DVD disc.
	3. When the Installation screen appears, move cursor UP to "Install Fedora-Server 21".
	   Press Enter to start system installation.
	4. When select installation language GUI was displayed, press CTRL+ALT+F2 to command console
	   # mkdir /tmp/arcmsr /mnt/mnt0
	   # mount /dev/sda1 /mnt/mnt0
	   # cp /mnt/mnt0/* /tmp/arcmsr
	   # umount /mnt/mnt0
	   # cd /tmp/arcmsr
	   # ./pre-install.sh
	   Press Alt+F6 to back to select installation language GUI, go on the system installtion.
	5. When select device to install, USB flash drive will be the only device. 
	   At 'Other Storage Options', select 'I will configure partitioning' and click "Done".
	   On "MANUAL PARTITIONING" GUI, click the "circular arrow" symbol.(Reload storage configuration from disk).
	   On "RESCAN DISKS" GUI, click "Rescan Disks"
	   When disk rescan complete, press OK. All device(s) will appear.
	   Reselect the device that you will use it to install system.
	6. When Fedora was successfully installed and ready to reboot, press CTRL+ALT+F2 to command console
	   # mkdir /mnt/sysimage/tmp/arcmsr
	   # cp /tmp/arcmsr/* /mnt/sysimage/tmp/arcmsr
	   # chroot /mnt/sysimage
	   # cd /tmp/arcmsr
	   # ./post-install.sh
	   # exit
	7. Press ALT+F6 to back to system installation GUI and reboot. 

C. For Workstation Installation
	1. Insert USB flash drive to target system.
	2. Booting from Fedora Installation DVD disc.
	3. When the Installation screen appears, move cursor UP to "Start Fedora Live".
	   Press Enter to start system.
	4. When 'Welcom to Fedora' was displayed, press CTRL+ALT+F2 to command console.
	   Login with root.
	   # mkdir /tmp/arcmsr
	   # cp /run/media/liveuser/OEMDRV/* /tmp/arcmsr
	   # cd /tmp/arcmsr
	   # chmod +x pre-install.sh
	   # ./pre-install.sh
	   Press Alt+F1 to back to 'Welcom to Fedora' GUI, go on the system installtion.
	5. When Fedora was successfully installed and ready to Quit, press CTRL+ALT+F2 to command console
	   # mkdir /mnt/sysimage/tmp/arcmsr
	   # cp /tmp/arcmsr/* /mnt/sysimage/tmp/arcmsr
	   # chroot /mnt/sysimage
	   # cd /tmp/arcmsr
	   # chmod +x post-install.sh
	   # ./post-install.sh
	   # exit
	6. Press ALT+F1 to back to system installation GUI and Quit. 

**********************************************************************************
3. Installing raid driver on an Existing System.
**********************************************************************************
	login as root
	# rpm -ivh kmod-arcmsr-1.30.0X.19-1.fc21.$(uname -m).rpm
	# xz -f /lib/modules/$(uname -r)/kernel/drivers/scsi/arcmsr/arcmsr.ko
	# depmod -a
	# reboot

**********************************************************************************
4. To compile raid driver on an Existing System.
**********************************************************************************

     a. Before you can compile a new driver, you have to install kernel-headers and kernel-devel.
	These two rpm packages are in Fedora DVD installation disc /Packages/k.
	# rpm -ivh kernel-headers-$(uname -r).rpm
	# rpm -ivh kernel-devel-$(uname -r).rpm

     b. If you do not have installed gcc compiler.
	# yum install gcc

     c.	To compile arcmsr driver, extract driver source code to a new directory.
	# make
	# xz arcmsr.ko
	# cp arcmsr.ko.xz  /lib/modules/$(uname -r)/kernel/drivers/scsi/arcmsr/
	# depmod -a
	# dracut
	# reboot
