Driver Disk Installation Guide for ARC-11XX/ARC12XX/ARC16XX/18XX RAID Controller 
on debian 9.x.0 i686 and x86_64(kernel 4.9.0-3)
=================================================================================
=================================================================================
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 debian
arcmsr-debian-9.x.zip	- Areca RAID driver disk for system installation
arcmsr_1.40.0X.00-2-debian9.x_amd64.deb    - driver for x86_64
arcmsr_1.40.0X.00-2-debian9.x_i386.deb     - driver for i686
arcmsr.1.40.0X.00-20170801.zip	- driver source code

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

A. Before Installation 

   Extract arcmsr-debian-9.x.zip to an USB flash drive.

B. Installation

	1) Insert the Areca driver USB flash disk to target system.
	2) Start debian installation by booting from debian installation disc.
	3) On the Welcom screen, select "Install" or "Graphical install", then press Enter.
	4) When at "Partition disks" step, Press "CTRL+ALT+F2" to switch to terminal 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" (or "Alt+F5" for Graphical) back to installation screen.
	   On "Partition disks" page, move cursor to <Go Back> and Enter.
	8) On "installer main menu" page, move cursor to "Detect disks" and continue the installation process. 
	9) When on "Finish the installation" page, and it said installation complete. press "Ctrl+Alt+F2" to
	   switch to terminal console and type the following commands:
	   # mkdir /target/tmp/arcmsr
	   # cp /tmp/arcmsr/* /target/tmp/arcmsr
	   # chroot /target
	   # cd /tmp/arcmsr
	   # sh post-install.sh
	10) Press "Alt+F1" (or "Alt+F5" for Graphical) to continue. 

**********************************************************************
3. Installing raid driver on an Existing System	
**********************************************************************
	For x86_64 system:
	# su
	# rmmod arcmsr
	# dpkg -i --force-overwrite arcmsr_1.40.0X.00-2-debian9.x_amd64.deb

	For i386, i686 system:
	# dpkg -i --force-overwrite arcmsr_1.40.0X.00-2-debian9.x_i386.deb

	# depmod -a
	# update-initramfs -u
	Reboot you system to make arcmsr driver take effect.

**********************************************************************************
4. To compile arcmsr driver on an Existing System.
**********************************************************************************
	Unzip arcmsr.1.40.0X.00-20170801.zip to a directory and change to.
	# su
	# rmmod arcmsr
	# make
	# cp -f arcmsr.ko /lib/modules/$(uname -r)/kernel/drivers/scsi/arcmsr/
	# depmod -a
	# update-initramfs -u
	# insmod arcmsr.ko
