Driver Disk Installation Guide for ARC-11XX/ARC12XX/ARC16XX/18XX RAID Controller 
on Ubuntu 15.04 i686 and x86_64(kernel 3.19.0-15)
=================================================================================
=================================================================================
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-15.04.zip	- Areca RAID driver disk for system installation
arcmsr_1.30.0X.27-2_amd64.deb
arcmsr_1.30.0X.27-2_i386.deb
arcmsr-1.30.00.27-source-only.dkms.tar.gz - DKMS enabled driver source code
arcmsr.1.30.0X.27-20170206.zip	- driver source code

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

A. Before Installation 

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

B. Installation

	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.
	   Login with username 'ubuntu' and empty password.
	5) Type the following commands:
	   # mkdir /arcmsr /tmp/arcmsr
	   # mount /dev/sda1 /arcmsr
	   # cp -f /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. Installing raid driver on an Existing System	
**********************************************************************

	For x86_64 system:
	# sudo dpkg -i arcmsr_1.30.0X.27-2_amd64.deb

	For i386, i686 system:
	# sudo dpkg -i arcmsr_1.30.0X.27-2_i386.deb

	# sudo depmod -a
	# sudo update-initramfs -u

	Reboot you system to make arcmsr driver take effect.

**********************************************************************************
4. 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-<module version>-source-only.dkms.tar.gz
	where <module version> could be, e.g., 1.30.00.27
	arcmsr source code will be added to DKMS tree.
	
	To build arcmsr driver module
	# sudo dkms build -m arcmsr -v <module version>
	
	To install arcmsr driver module
	# sudo dkms install -m arcmsr -v <module version>


	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.19.0-15-generic.
	
	After installed linux header files, DKMS service will build and install arcmsr driver for new kernel automatically.

**********************************************************************************
5. To compile arcmsr driver on an Existing System.
**********************************************************************************
	Unzip arcmsr.1.30.0X.27-20170206.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
