ARECA SATA RAID Controller: FreeBSD 5.2.1 =================== 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.2.1.R for all ARECA RAID Controller **************************************************************************** kern521.zip - (kern.flp.img) first boot diskette image file for FreeBSD RELEASE-5.2.1.R mfsroot521.zip - (mfsroot.flp.img) secend boot diskette image file for FreeBSD RELEASE-5.2.1.R source_code.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 kern521.zip =>> kern.flp.img (first boot diskette) pkunzip mfsroot521.zip =>> mfsroot.flp.img (second boot diskette) c. Make installation diskettes ************************************************** *insert a 1.44M empty diskette to floppy drive A. ************************************************** rawrite kern.flp.img A: (first boot diskette done) ************************************************** *remove (first boot diskette) diskette *than insert another 1.44M empty diskette ************************************************** rawrite mfsroot.flp.img A: (second boot diskette done) B. Installation a. Installing system Using "BOOT" diskettes that you made as the booting diskette follows the FreeBSD installation procedures to install. first boot diskette =>kern.flp.img second boot diskette =>mfsroot.flp.img b. Updating kernel **************************************************** * before reboot * you need to use file "kernel" in kern.flp.img * 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. Remove "BOOT" diskette and insert "kern.flp.img" diskette to drive A. Type the following command to update the kernel. # cd / # mount /dev/fd0 /mnt # mv /boot/kernel/kernel kernel.old # cp /mnt/kernel.gz / # gzip -d kernel.gz # cp kernel /boot/kernel/ # umount /mnt 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 source_code.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 source_code.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 ************************************** . .. ... # 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. .if ${MACHINE_ARCH} == "i386" SUBDIR+=3dfx \ agp \ aic \ amd \ arcmsr \ # ADD This contex description .... aout \ apm \ ar \ arcnet \ ath_hal \ ... .. . ==================================================================== = 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