  
		ARECA SATA/SAS Raid Controller

		for FreeBSD 12.1 Release

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

readme122.txt  - The readme file for ARECA FreeBSD Raid driver
arcmsr-freebsd12.1.zip - areca Raid adapter driver for freebsd release 12.1 
arcmsr-1.50.00.03-20210504-freebsd.zip     - areca driver source code

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

A. Before Installing

	a. Extract arcmsr-freebsd12.1.zip file:

		-->amd64
		-->i386
	   where drivers in amd64 directory is for FreeBSD 12.1 amd64
	         drivers in i386 directory is for FreeBSD 12.1 i386

	b. copy drivers in amd64 or i386 to a USB Flash drive / directory.
	   (Some mother board has problem to use USB Flash drive to load device driver.)


B. Installation

	a. Installing system

		1. Insert the FreeBSD Installation CD/DVD.
		2. Insert the USB Flash drive.
		3. Restart your computer.
		4. When FreeBSD Installer "Welcom" screen display, move cursor to "Shell" and press Enter.
		   # mount_msdosfs /dev/da0s1 /mnt
		   # cp /mnt/arcmsr.ko /tmp
		   # umount /mnt
		5. Remove USB flash drive from system.
		   # kldload /tmp/arcmsr.ko

		6. # exit
		   Now start to install OS.
		7. After system is installed completely, leave DVD disc in drive and reboot system.
		
		8. Updating driver module arcmsr.ko  ---- !!! IMPORTANT IMPORTANT !!!

		   Doing above step 1 ~ step 5 once again.
		   And we assume that FreeBSD OS was installed on da0p2.
		   Type following command to cp arcmsr.ko and edit loader.conf
		   # mount -t ufs /dev/da0p2 /mnt
		   # cp /tmp/arcmsr.ko /mnt/boot/kernel
		   # echo 'arcmsr_load="YES"' >> /mnt/boot/loader.conf
		   # umount /mnt
		   # reboot
	
		Eject FreeBSD disc, USB Flash drive and reboot the system.


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

	a. Decompress arcmsr-freebsd12.1.zip to get arcmsr.ko
	
	b. Type following command to install arcmsr driver
	   # cp $(uname -m)/arcmsr.ko /boot/kernel
	   # echo 'arcmsr_load="YES"' >> /boot/loader.conf
	   # reboot

	   where $(uname -m) is amd64 or i386 depend on OS you installed.

************************************************************************
*  4. To compile the arcmsr.ko module and update arcmsr driver only
************************************************************************

    You should have installed FreeBSD kernel source code before compile the arcmsr.ko module.

	Decompress arcmsr-1.50.00.03-20210504-freebsd.zip to /usr/src/sys/dev/arcmsr directory.
	# cd /usr/src/sys/modules/arcmsr
	# make
	# cp /usr/obj/usr/src/$(uname -m).$(uname -m)/sys/modules/arcmsr/arcmsr.ko /boot/kernel
	# echo 'arcmsr_load="YES"' >> /boot/loader.conf
	# reboot

	where $(uname -m) is amd64 or i386 depend on OS you installed.
