ARECA SATA RAID Controller: FreeBSD 5.3.R =================== Driver User's Guide ======================= FreeBSD RAID driver technical support mail address: erich@areca.com.tw Tel: 886-2-8797-4060 Ext.203 Fax: 886-2-8797-5970 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-5.3..R for all ARECA RAID Controller **************************************************************************** boot-53R.zip - (boot.flp) boot diskette image file for FreeBSD RELEASE-5.3..R kern1-53R.zip - (kern1.flp) first kernel diskette image file for FreeBSD RELEASE-5.3..R kern2-53R.zip - (kern2.flp) second kernel diskette image file for FreeBSD RELEASE-5.3..R arcmsr-freebsd-1.20.00.02.zip - it include a folder "usr_src_sys_dev_arcmsr" and folder "usr_src_sys_modules_arcmsr" ********************************************************************************* * 2. The first-time installation ********************************************************************************* A. Before Installing (Under DOS environment) a. Get three 1.44M formatted and empty diskettes. Configure a 1.44M floppy drive as A:. Get DOS tools: PKUNZIP.EXE and RAWRITE.EXE. b. Decompress diskette image file by: pkunzip boot-53R.zip =>> boot.flp (boot diskette) pkunzip kern1-53R.zip =>> kern1.flp (first kernel diskette) pkunzip kern2-53R.zip =>> kern21.flp (second kernel diskette) c. Make installation diskettes ************************************************** *insert a 1.44M empty diskette to floppy drive A. ************************************************** rawrite boot.flp A: (boot diskette done) ************************************************** *remove (boot.flp diskette) diskette *than insert another 1.44M empty diskette ************************************************** rawrite kern1.flp A: (first kernel diskette done) ************************************************** *remove (kern1.flp diskette) diskette *than insert another 1.44M empty diskette ************************************************** rawrite kern2.flp A: (second kernel diskette done) B. Installation a. Installing system Using "BOOT" diskettes that you made as the booting diskette follows the FreeBSD installation procedures to install. step 1:boot diskette =>boot.flp step 2:first kernel diskette =>kern1.flp step 3:second kernel diskette =>kern2.flp step 4:boot diskette =>boot.flp b. Updating kernel **************************************************** * before reboot * you need to use file "kernel" in "boot.flp" "kern1.flp" "kern2.flp" * to change kernel **************************************************** - After system is installed completely, and system back to the "/stand/sysinstall Main Menu" screen: - Now press ALT+F4, system enter into command prompt. Type the following command to update the kernel. # cd / # mkdir /mnt/floppy # mount /dev/fd0 /mnt/floppy # cp /mnt/floppy/kernel.gz.boot / # umount /mnt/floppy Remove "boot.flp" diskette and insert "kern1.flp" diskette to drive A. # mount /dev/fd0 /mnt/floppy # cp /mnt/floppy/kernel.gz.aa / # umount /mnt/floppy Remove "kern1.flp" diskette and insert "kern2.flp" diskette to drive A. # mount /dev/fd0 /mnt/floppy # cp /mnt/floppy/kernel.gz.ab / # umount /mnt/floppy # cat kernel.gz.boot kernel.gz.aa kernel.gz.ab | gunzip > kernel # cp kernel /boot/kernel/ Remove "kern2.flp" diskette and press ALT+F1 c. Exit Install and Reboot system ************************************************************************ * 3. Configure the system and Remake the kernel ************************************************************************ ****************************** * edit /usr/src/sys/conf/files ****************************** dev/arcmsr/arcmsr.c optional arcmsr # add this context description.... ************************************* * edit /usr/src/sys/i386/conf/GENERIC ************************************* device arcmsr # add this context description.... ************************************** * in arcmsr-freebsd-1.20.00.02.zip has usr_src_sys_dev_arcmsr folder * please copy "arcmsr" from usr_src_sys_dev_arcmsr to /usr/src/sys/dev/ ************************************** ls /usr/src/sys/dev/arcmsr arcmsr.c arcmsr.h ************************************** * in arcmsr-freebsd-1.20.00.02.zip has usr_src_sys_modules_arcmsr folder * please copy "arcmsr" from usr_src_sys_modules_arcmsr to /usr/src/sys/modules/ ************************************** ls /usr/src/sys/modules/arcmsr Makefile ************************************** * edit /usr/src/sys/modules/Makefile ************************************** # $FreeBSD: src/sys/modules/Makefile,v 1.393.2.2.2.1 2004/10/24 18:02:52 scottl Exp $ # pcic -- currently broken and being worked on out of tree. # oldcard -- specialized use for debugging only. # owi -- totally unsupported for debugging only. SUBDIR= ${_3dfx} \ ${_aac} \ accf_data \ accf_http \ ${_acpi} \ ${_agp} \ aha \ ${_ahb} \ ${_aic} \ aic7xxx \ arcmsr \ # add this context description.... aio \ ${_amd} \ amr \ ..... ... .. . .if ${MACHINE_ARCH} == "i386" # XXX some of these can move to the general case when de-i386'ed # XXX some of these can move now, but are untested on other architectures. _3dfx= 3dfx _agp= agp _aic= aic _amd= amd _aout= aout _arcmsr= arcmsr # add this context description.... _apm= apm _ar= ar ..... ... .. . ==================================================================== = old method ....Procedure 1. Building a Kernel the ``Traditional'' Way ==================================================================== # cd /usr/src/sys/i386/conf # config GENERIC # cd ../compile/GENERIC # make depend # make # make install # reboot ==================================================================== = new method ....Procedure 2. Building a Kernel the ``New'' Way ==================================================================== # cd /usr/src/ # make buildkernel # make installkernel # reboot