Driver Disk Installation Guide for ARC-11XX/ARC12XX/ARC16XX/18XX RAID Controller 
on Ubuntu 14.10 i686 and x86_64(kernel 3.16.0-23)
=================================================================================
=================================================================================
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 Ubuntu
arcmsr-ubuntu-14.10.zip	- Areca RAID driver disk for system installation
arcmsr-1.30.00.21-source-only.dkms.tar.gz - DKMS enabled driver source code
arcmsr.1.30.0X.21-20151016.zip	- driver source code

**********************************************************************
2. First time Installation                                 	    **
**********************************************************************

A. Before Installation 

   Extract arcmsr-ubuntu-14.10.zip to an USB flash drive.

B. Install ubuntu server

	1) Insert the Areca driver USB flash disk to target system.
	2) Start Ubuntu installation by booting from Ubuntu installation DVD disc.
	3) On the Welcom screen, select "Install Ubuntu Server", then press Enter.
	4) At "Select a language" screen, Press "CTRL+ALT+F2" to switch to console.
	5) Type the following commands:
	   # mkdir /arcmsr /tmp/arcmsr
	   # mount /dev/sda1 /arcmsr
	   # cp -rf /arcmsr/* /tmp/arcmsr
	   # umount /arcmsr
	6) Remove the USB flash drive from the USB port and then type:
	   # cd /tmp/arcmsr
	   # sh pre-install.sh
	7) Press "Alt+F1" back to installation screen.
	8) Continue the installation process. 
	9) Do not reboot after the installation is complete. press "Ctrl+Alt+F2" to
	   switch to console 2 and type the following commands:
	   # mkdir /target/tmp/arcmsr
	   # cp /tmp/arcmsr/* /target/tmp/arcmsr
	   # chroot /target
	   # cd /tmp/arcmsr
	   # sh post-install.sh
	   # exit
	10) Press "Alt+F1" to continue. 

C. Install ubuntu Desktop

	1) Insert the Areca driver USB flash disk to target system.
	2) Start Ubuntu installation by booting from Ubuntu installation DVD disc.
	3) On the Ubuntu menu, move cursor to "Install Ubuntu", then press Enter.
	4) At "Welcome" screen, Press "CTRL+ALT+F2" to switch to console.
	   Login with username 'ubuntu' and empty password.
	5) Type the following commands:
	   # sudo mkdir /arcmsr /tmp/arcmsr
	   # sudo mount /dev/sda1 /arcmsr
	   # sudo cp -f /arcmsr/* /tmp/arcmsr
	   # sudo umount /arcmsr
	6) Remove the USB flash drive from the USB port and then type:
	   # cd /tmp/arcmsr
	   # sudo sh pre-install.sh
	7) Press "Alt+F7" back to Welcome screen.
	8) Continue the installation process. 
	9) Do not reboot after the installation is complete. press "Ctrl+Alt+F2" to
	   switch to console and type the following commands:
	   # mkdir /target/tmp/arcmsr
	   # cp /tmp/arcmsr/* /target/tmp/arcmsr
	   # sudo chroot /target
	   # cd /tmp/arcmsr
	   # sudo sh post-install.sh
	   # exit
	10) Press "Alt+F7" to installation screen and Restart. 

**********************************************************************************
3. To install DKMS enabled tarball of arcmsr driver on an Existing System.
**********************************************************************************
	Before using DKMS, you must install DKMS package. You can install dkms as following.
	# sudo apt-get install dkms

	Copy arcmsr DKMS enabled tarball to home directory.
	In order to load tarball into the DKMS tree, you must use the following command:

	# sudo dkms ldtarball --archive=./arcmsr-<moduleversion>-source-only.dkms.tar.gz
	where <moduleversion> could be, e.g., 1.30.00.21
	arcmsr source code will be added to DKMS tree.
	
	To build arcmsr driver module
	# sudo dkms build -m arcmsr -v <moduleversion>
	
	To install arcmsr driver module
	# sudo dkms install -m arcmsr -v <moduleversion>


	If you are upgrading linux kernel, then you have to install the corresponding linux-headers-<kernelver> before
	reboot your system. New kernel image can be find in /boot, corresponding new linux header can be find in /usr/src.
	If you can not find new linux header in /usr/src, you can install it as following.
	# sudo apt-get install linux-headers-<kernelver>
	where <kernelver> could be, e.g., 3.16.0-23-generic.
	
	After installed linux header files, DKMS service will build and install arcmsr driver for new kernel automatically.

**********************************************************************************
4. To compile arcmsr driver on an Existing System.
**********************************************************************************
	Unzip arcmsr.1.30.0X.21-20151016.zip to a directory and change to.
	# sudo make
	# sudo cp -f arcmsr.ko /lib/modules/$(uname -r)/kernel/drivers/scsi/arcmsr/
	# sudo depmod -a
	# sudo insmod arcmsr.ko
