  
		     ARECA SATA/SAS RAID Controller:


			for FreeBSD 7.1 Release

  ===================  Driver User's Guide  =======================

	FreeBSD RAID driver technical support 
	mail address: erich@areca.com.tw; ching2048@areca.com.tw
	   Web site: www.areca.com.tw
  =================================================================


*********************************************************************************
*  1. Contents     
*********************************************************************************

	*************
	* This file
	*************

	readme.txt  - The readme file for ARECA FreeBSD RAID driver

	****************************************************************************
	* installation disks of FreeBSD RELEASE-7.1 for all ARECA RAID Controller
	****************************************************************************

	arcmsr-freebsd71.zip - areca Raid adapter driver for freebsd release 7.1 

	arcmsr-freebsd-1.20.00.xx.zip     - it include areca driver source code "arcmsr.c, arcmsr.h"

*********************************************************************************
*  2. The first-time installation
*********************************************************************************

	A. Before Installing

		a. Decompress arcmsr-freebsd71.zip file by:

			pkunzip arcmsr-freebsd71.zip 	-->amd64
											-->i386
			where drivers in amd64 directory is for FreeBSD 7.1 AMD64
				  drivers in i386 directory is for FreeBSD 7.1 i386(x86)

		c. copy drivers in amd64 or i386 to a USB flash drive or a floppy diskette.



	B. Installation

		a. Installing system

			1 Insert the FreeBSD Installation CD/DVD.
			2 Insert the flash/floppy drive or diskette.
			3 Restart your computer.
			4 When the FreeBSD start screen opens, select 6 to Escape to loader prompt.
			5 Type "lsdev" to find flash/floppy drive disk number. Here, we assume it is disk1.
			6 Type "load disk1s1:arcmsr.ko"
			7 Type "boot" to complete the FreeBSD installation.
			
		b. Updating driver module arcmsr.ko  ---- !!! IMPORTANT IMPORTANT !!!

			Before Exit install and reboot,
			you have to overwrite /boot/kernel/arcmsr.ko by arcmsr.ko in flash/floppy drive.

			- After system is installed completely, and system back to the
			"/stand/sysinstall Main Menu" screen:
			Press ALT+F4, system will enter into command prompt.
			Type following command to update the arcmsr.ko and loader.conf

			# cd /
			# umount /dist

			We assume that flash( or floppy) drive is device da1.(the device number depends on how many devices installed in your system)
			# mount_msdosfs /dev/da1s1 /dist  (or mount_msdosfs /dev/fd0 /dist)
			# cp -f /dist/arcmsr.ko /boot/kernel
			# cp -f /dist/loader.conf /boot   (or cp -f /dist/loader~1.con /boot/loader.conf)
			# umount /dist
	
			eject flash drive and press ALT+F1

		c. Press ALT+F1 to back to sysinstall window, then Exit Install and Reboot the system


*********************************************************************************
*  3. To install arcmsr driver into an existing freebsd system
*********************************************************************************

	a. Decompress arcmsr-freebsd71.zip to arcmsr.ko and loader.conf
	b. Type following command to install arcmsr driver
	   #cp arcmsr.ko /boot/kernel
	   #ee /boot/loader.conf

	   (Add following line to /boot/loader.conf)

	   arcmsr_load="YES"

	c. Restart computer

************************************************************************
*  4. Configure the system and Remake the kernel
************************************************************************
   
    You should have installed FreeBSD kernel source code before building a new kernel.
    
	**************************************
	* in arcmsr-freebsd-1.20.00.xx.zip has files arcmsr.c and arcmsr.h
	* please copy arcmsr.c and arcmsr.h into /usr/src/sys/dev/arcmsr directory
	**************************************

	ls /usr/src/sys/dev/arcmsr

	arcmsr.c
	arcmsr.h

	====================================================================
	To Build a Kernel with arcmsr driver
	====================================================================
	*************************************
	* edit /usr/src/sys/amd64/conf/GENERIC
	*************************************

	device			arcmsr			# add this context description....
  	
	# cd /usr/src/
	# make buildkernel
	# make installkernel
	# reboot


