2009-04-07 16:38:25 +00:00
|
|
|
RocketRAID 18xx Driver for FreeBSD
|
|
|
|
Copyright (C) 2007-2008 HighPoint Technologies, Inc. All rights reserved.
|
2005-03-02 05:14:28 +00:00
|
|
|
$FreeBSD$
|
2004-10-24 05:37:23 +00:00
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
Revision History:
|
2009-04-07 16:38:25 +00:00
|
|
|
v1.16 2008-2-29
|
|
|
|
Fix 7.0 compile error.
|
|
|
|
|
|
|
|
v1.15 2007-8-6
|
|
|
|
Override kernel driver(built-in) to support over 2T RAID array.
|
|
|
|
|
|
|
|
v1.14 2006-3-21
|
|
|
|
Fix 48-bit LBA compatibility for Seagate drives.
|
|
|
|
Fix 16 bytes CDB support.
|
|
|
|
|
|
|
|
v1.13 2006-2-13
|
|
|
|
Fix fail LED/beeper control.
|
|
|
|
Add 16 bytes CDB support.
|
2004-10-24 05:37:23 +00:00
|
|
|
|
2005-09-07 23:33:26 +00:00
|
|
|
v1.12 2005-6-10
|
|
|
|
Fix over 4G memory support on amd64.
|
|
|
|
Fix disk flush problem.
|
|
|
|
|
2004-10-24 05:37:23 +00:00
|
|
|
v1.1 2004-9-23
|
|
|
|
Fix activity LED problem.
|
|
|
|
Cleanup diagnostic code.
|
|
|
|
|
|
|
|
v1.01 2004-5-24
|
|
|
|
First source code release
|
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
|
|
|
|
1. Overview
|
|
|
|
---------------------
|
|
|
|
This package contains FreeBSD driver source code for HighPoint RocketRAID
|
2009-04-07 16:38:25 +00:00
|
|
|
18xx SATA controller.
|
2004-10-24 05:37:23 +00:00
|
|
|
|
|
|
|
NO WARRANTY
|
|
|
|
|
|
|
|
THE DRIVER SOURCE CODE HIGHPOINT PROVIDED IS FREE OF CHARGE, AND THERE IS
|
|
|
|
NO WARRANTY FOR THE PROGRAM. THERE ARE NO RESTRICTIONS ON THE USE OF THIS
|
|
|
|
FREE SOURCE CODE. HIGHPOINT DOES NOT PROVIDE ANY TECHNICAL SUPPORT IF THE
|
|
|
|
CODE HAS BEEN CHANGED FROM ORIGINAL SOURCE CODE.
|
|
|
|
|
|
|
|
LIMITATION OF LIABILITY
|
|
|
|
|
|
|
|
IN NO EVENT WILL HIGHPOINT BE LIABLE FOR DIRECT, INDIRECT, SPECIAL,
|
|
|
|
INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF OR
|
|
|
|
INABILITY TO USE THIS PRODUCT OR DOCUMENTATION, EVEN IF ADVISED OF THE
|
|
|
|
POSSIBILITY OF SUCH DAMAGES. IN PARTICULAR, HIGHPOINT SHALL NOT HAVE
|
|
|
|
LIABILITY FOR ANY HARDWARE, SOFTWARE, OR DATA STORED USED WITH THE
|
|
|
|
PRODUCT, INCLUDING THE COSTS OF REPAIRING, REPLACING, OR RECOVERING
|
|
|
|
SUCH HARDWARE, OR DATA.
|
|
|
|
|
2005-09-07 23:33:26 +00:00
|
|
|
|
2009-04-07 16:38:25 +00:00
|
|
|
2. Rebuild the kernel with RR18xx support
|
2005-09-07 23:33:26 +00:00
|
|
|
--------------------------------------------
|
|
|
|
|
2004-10-24 05:37:23 +00:00
|
|
|
1) Install kernel source package and building tools.
|
|
|
|
|
2005-09-07 23:33:26 +00:00
|
|
|
2) Extract the driver files under the kernel source tree:
|
|
|
|
|
|
|
|
# cd /usr/src/sys/
|
2009-04-07 16:38:25 +00:00
|
|
|
# tar xvzf /your/path/to/rr18xx-opensource-v1.12-bsd.tgz
|
2005-09-07 23:33:26 +00:00
|
|
|
|
|
|
|
3) Update the kernel configuration file to include the HighPoint source.
|
|
|
|
Assume the configure file is GENERIC, and new kernel configure file is
|
|
|
|
MYKERNEL:
|
|
|
|
|
|
|
|
# cd i386/conf (or amd64/conf for AMD64)
|
|
|
|
# cp GENERIC MYKERNEL
|
|
|
|
|
|
|
|
4) Edit MYKERNEL, and add the following line under "RAID controllers
|
|
|
|
interfaced to the SCSI subsystem":
|
|
|
|
|
2009-04-07 16:38:25 +00:00
|
|
|
device hptmv #HighPoint RocketRAID 18xx
|
2004-10-24 05:37:23 +00:00
|
|
|
|
2005-09-07 23:33:26 +00:00
|
|
|
5) For i386 system, edit /usr/src/sys/conf/files.i386 and append the lines
|
|
|
|
shown below:
|
2004-10-24 05:37:23 +00:00
|
|
|
|
2005-09-07 23:33:26 +00:00
|
|
|
hptmvraid.o optional hptmv \
|
|
|
|
dependency "$S/dev/hptmv/i386-elf.raid.o.uu" \
|
|
|
|
compile-with "uudecode < $S/dev/hptmv/i386-elf.raid.o.uu" \
|
|
|
|
no-implicit-rule
|
|
|
|
|
|
|
|
dev/hptmv/gui_lib.c optional hptmv
|
|
|
|
dev/hptmv/hptproc.c optional hptmv
|
|
|
|
dev/hptmv/ioctl.c optional hptmv
|
|
|
|
dev/hptmv/entry.c optional hptmv
|
|
|
|
dev/hptmv/mv.c optional hptmv
|
|
|
|
|
|
|
|
For amd64 system, edit /usr/src/sys/conf/files.amd64 and append the lines
|
|
|
|
shown below:
|
|
|
|
|
|
|
|
hptmvraid.o optional hptmv \
|
|
|
|
dependency "$S/dev/hptmv/amd64-elf.raid.o.uu" \
|
|
|
|
compile-with "uudecode < $S/dev/hptmv/amd64-elf.raid.o.uu" \
|
|
|
|
no-implicit-rule
|
|
|
|
|
|
|
|
dev/hptmv/gui_lib.c optional hptmv
|
|
|
|
dev/hptmv/hptproc.c optional hptmv
|
|
|
|
dev/hptmv/ioctl.c optional hptmv
|
|
|
|
dev/hptmv/entry.c optional hptmv
|
|
|
|
dev/hptmv/mv.c optional hptmv
|
|
|
|
|
2009-04-07 16:38:25 +00:00
|
|
|
Note FreeBSD 5.3/5.4/6.x/7.x i386 already have a built-in RR18xx driver,
|
|
|
|
you should replace the old configuration lines with the lines listed above.
|
2005-09-07 23:33:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
6) Rebuild and install the kernel:
|
|
|
|
|
2009-04-07 16:38:25 +00:00
|
|
|
a) for FreeBSD 5.x/6.x/7.x i386:
|
2004-10-24 05:37:23 +00:00
|
|
|
|
2005-09-07 23:33:26 +00:00
|
|
|
# cd /usr/src/sys/i386/conf/
|
|
|
|
# /usr/sbin/config MYKERNEL
|
|
|
|
# cd ../compile/MYKERNEL/
|
|
|
|
# make depend
|
|
|
|
# make
|
|
|
|
# make install
|
|
|
|
|
2009-04-07 16:38:25 +00:00
|
|
|
b) for FreeBSD 5.x/6.x/7.x amd64:
|
2005-09-07 23:33:26 +00:00
|
|
|
|
|
|
|
# cd /usr/src/sys/amd64/conf/
|
|
|
|
# /usr/sbin/config MYKERNEL
|
|
|
|
# cd ../compile/MYKERNEL/
|
|
|
|
# make depend
|
|
|
|
# make
|
|
|
|
# make install
|
|
|
|
|
|
|
|
c) for FreeBSD 4.x:
|
|
|
|
|
|
|
|
# cd /usr/src/sys/i386/conf/
|
|
|
|
# /usr/sbin/config MYKERNEL
|
|
|
|
# cd ../../compile/MYKERNEL/
|
|
|
|
# make depend
|
|
|
|
# make
|
|
|
|
# make install
|
|
|
|
|
|
|
|
If the driver was previously configured as an auto-loaded module by
|
|
|
|
/boot/defaults/loader.conf, please remove the entry hptmv_load="YES"
|
|
|
|
from loader.conf to prevent the driver from being loaded twice.
|
|
|
|
|
|
|
|
7) Reboot from the new kernel.
|
|
|
|
|
|
|
|
|
|
|
|
3. Build/Load the driver as a kernel module
|
|
|
|
------------------------------------------------
|
|
|
|
|
|
|
|
1) Install kernel source package and building tools.
|
|
|
|
|
|
|
|
2) Extract the driver files under the kernel source tree:
|
|
|
|
|
|
|
|
# cd /usr/src/sys/
|
2009-04-07 16:38:25 +00:00
|
|
|
# tar xvzf /your/path/to/rr18xx-opensource-v1.12-bsd.tgz
|
2005-09-07 23:33:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
4) Build the driver module:
|
|
|
|
|
|
|
|
# cd modules/hptmv
|
|
|
|
# make
|
|
|
|
|
|
|
|
5) Copy the driver module to the kernel module directory
|
|
|
|
|
|
|
|
For FreeBSD 4.x:
|
|
|
|
|
|
|
|
# cp hptmv.ko /modules/
|
|
|
|
|
2009-04-07 16:38:25 +00:00
|
|
|
For FreeBSD 5.x/6.x/7.x:
|
2005-09-07 23:33:26 +00:00
|
|
|
|
|
|
|
# cp hptmv.ko /boot/kernel/
|
|
|
|
|
|
|
|
6) Reboot and load the driver under loader prompt. e.g:
|
2004-10-24 05:37:23 +00:00
|
|
|
|
|
|
|
BTX loader 1.00 BTX version is 1.01
|
|
|
|
Console: internal video/keyboard
|
|
|
|
BIOS driver A: is disk0
|
|
|
|
BIOS driver C: is disk2
|
|
|
|
BIOS 636kB/74512kB available memory
|
|
|
|
|
|
|
|
FreeBSD/i386 bootstrap loader, Revision 0.8
|
|
|
|
(mailto:jkh@narf.osd.bsdi.com, Sat Apr 21 08:46:19 GMT 2001)
|
|
|
|
Loading /boot/defaults/loader.conf
|
|
|
|
/kernel text=0x24f1db data=0x3007ec+0x2062c -
|
|
|
|
|
|
|
|
Hit [Enter] to boot immediagely, or any other key for command prompt.
|
2012-01-15 13:23:33 +00:00
|
|
|
Booting [kernel] in 9 seconds
|
2004-10-24 05:37:23 +00:00
|
|
|
|
|
|
|
<-- press SPACE key here
|
|
|
|
Type '?' for a list of commands, 'help' for more detailed help.
|
|
|
|
ok load hptmv
|
|
|
|
/modules/hptmv.ko text=0xf571 data=0x2c8+0x254
|
2005-09-07 23:33:26 +00:00
|
|
|
ok boot
|
|
|
|
|
2009-04-07 16:38:25 +00:00
|
|
|
For FreeBSD 5.x/6.x/7.x, you can select 6 on the boot menu to get a loader prompt.
|
2004-10-24 05:37:23 +00:00
|
|
|
|
2005-09-07 23:33:26 +00:00
|
|
|
7) You can add a below line into /boot/defaults/loader.conf to load the
|
|
|
|
driver automatically:
|
|
|
|
|
|
|
|
hptmv_load="YES"
|
|
|
|
|
|
|
|
Please refer to the installation guide in HighPoint FreeBSD driver release
|
|
|
|
package for more information.
|
|
|
|
|
2004-10-24 05:37:23 +00:00
|
|
|
|
|
|
|
#############################################################################
|
|
|
|
Technical support and service
|
|
|
|
|
|
|
|
If you have questions about installing or using your HighPoint product,
|
|
|
|
check the user's guide or readme file first, and you will find answers to
|
|
|
|
most of your questions here. If you need further assistance, please
|
|
|
|
contact us. We offer the following support and information services:
|
|
|
|
|
|
|
|
1) The HighPoint Web Site provides information on software upgrades,
|
|
|
|
answers to common questions, and other topics. The Web Site is
|
|
|
|
available from Internet 24 hours a day, 7 days a week, at
|
|
|
|
http://www.highpoint-tech.com.
|
|
|
|
|
|
|
|
2) For technical support, send e-mail to support@highpoint-tech.com
|
|
|
|
|
|
|
|
NOTE: Before you send an e-mail, please visit our Web Site
|
|
|
|
(http://www.highpoint-tech.com) to check if there is a new or
|
|
|
|
updated device driver for your system.
|