1*81966bceSXin LIRocketRAID Controller Driver for FreeBSD 2*81966bceSXin LICopyright (C) 2011 HighPoint Technologies, Inc. All rights reserved. 3*81966bceSXin LI 4*81966bceSXin LI############################################################################# 5*81966bceSXin LIRevision History: 6*81966bceSXin LI v1.0 2011-12-27 7*81966bceSXin LI First source code release 8*81966bceSXin LI 9*81966bceSXin LI############################################################################# 10*81966bceSXin LI 11*81966bceSXin LI1. Overview 12*81966bceSXin LI--------------------- 13*81966bceSXin LI This package contains FreeBSD driver source code for HighPoint RocketRAID 14*81966bceSXin LI controller, include: 15*81966bceSXin LI SAS Controller: RR271x, RR272x, RR274x, RR276x, RR278x. 16*81966bceSXin LI 17*81966bceSXin LI NO WARRANTY 18*81966bceSXin LI 19*81966bceSXin LI THE DRIVER SOURCE CODE HIGHPOINT PROVIDED IS FREE OF CHARGE, AND THERE IS 20*81966bceSXin LI NO WARRANTY FOR THE PROGRAM. THERE ARE NO RESTRICTIONS ON THE USE OF THIS 21*81966bceSXin LI FREE SOURCE CODE. HIGHPOINT DOES NOT PROVIDE ANY TECHNICAL SUPPORT IF THE 22*81966bceSXin LI CODE HAS BEEN CHANGED FROM ORIGINAL SOURCE CODE. 23*81966bceSXin LI 24*81966bceSXin LI LIMITATION OF LIABILITY 25*81966bceSXin LI 26*81966bceSXin LI IN NO EVENT WILL HIGHPOINT BE LIABLE FOR DIRECT, INDIRECT, SPECIAL, 27*81966bceSXin LI INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF OR 28*81966bceSXin LI INABILITY TO USE THIS PRODUCT OR DOCUMENTATION, EVEN IF ADVISED OF THE 29*81966bceSXin LI POSSIBILITY OF SUCH DAMAGES. IN PARTICULAR, HIGHPOINT SHALL NOT HAVE 30*81966bceSXin LI LIABILITY FOR ANY HARDWARE, SOFTWARE, OR DATA STORED USED WITH THE 31*81966bceSXin LI PRODUCT, INCLUDING THE COSTS OF REPAIRING, REPLACING, OR RECOVERING 32*81966bceSXin LI SUCH HARDWARE, OR DATA. 33*81966bceSXin LI 34*81966bceSXin LI 35*81966bceSXin LI2. Rebuild the kernel with HighPoint RocketRAID support 36*81966bceSXin LI----------------------------------------------- 37*81966bceSXin LI 38*81966bceSXin LI 1) Install kernel source package and building tools. 39*81966bceSXin LI 40*81966bceSXin LI 2) Extract the driver files under the kernel source tree: 41*81966bceSXin LI 42*81966bceSXin LI # cd /usr/src/sys/ 43*81966bceSXin LI # tar xvzf /your/path/to/hpt27xx-freebsd-src-v1.0-111227.tgz 44*81966bceSXin LI 45*81966bceSXin LI 3) Update the kernel configuration file to include the HighPoint source. 46*81966bceSXin LI Assume the configure file is GENERIC, and new kernel configure file is 47*81966bceSXin LI MYKERNEL: 48*81966bceSXin LI 49*81966bceSXin LI # cd i386/conf (or amd64/conf for AMD64) 50*81966bceSXin LI # cp GENERIC MYKERNEL 51*81966bceSXin LI 52*81966bceSXin LI 4) Edit MYKERNEL, and add the following line under "RAID controllers 53*81966bceSXin LI interfaced to the SCSI subsystem": 54*81966bceSXin LI 55*81966bceSXin LI device "hpt27xx" #HighPoint RocketRAID 56*81966bceSXin LI 57*81966bceSXin LI 5) For i386 system, edit /usr/src/sys/conf/files.i386 and append the lines 58*81966bceSXin LI shown below: 59*81966bceSXin LI 60*81966bceSXin LI hpt27xx_lib.o optional hpt27xx \ 61*81966bceSXin LI dependency "$S/dev/hpt27xx/i386-elf.hpt27xx_lib.o.uu" \ 62*81966bceSXin LI compile-with "uudecode < $S/dev/hpt27xx/i386-elf.hpt27xx_lib.o.uu" \ 63*81966bceSXin LI no-implicit-rule 64*81966bceSXin LI 65*81966bceSXin LI dev/hpt27xx/os_bsd.c optional hpt27xx 66*81966bceSXin LI dev/hpt27xx/osm_bsd.c optional hpt27xx 67*81966bceSXin LI dev/hpt27xx/hpt27xx_config.c optional hpt27xx 68*81966bceSXin LI 69*81966bceSXin LI For amd64 system, edit /usr/src/sys/conf/files.amd64 and append the lines 70*81966bceSXin LI shown below: 71*81966bceSXin LI 72*81966bceSXin LI hpt27xx_lib.o optional hpt27xx \ 73*81966bceSXin LI dependency "$S/dev/hpt27xx/amd64-elf.hpt27xx_lib.o.uu" \ 74*81966bceSXin LI compile-with "uudecode < $S/dev/hpt27xx/amd64-elf.hpt27xx_lib.o.uu" \ 75*81966bceSXin LI no-implicit-rule 76*81966bceSXin LI 77*81966bceSXin LI dev/hpt27xx/os_bsd.c optional hpt27xx 78*81966bceSXin LI dev/hpt27xx/osm_bsd.c optional hpt27xx 79*81966bceSXin LI dev/hpt27xx/hpt27xx_config.c optional hpt27xx 80*81966bceSXin LI 81*81966bceSXin LI 6) Rebuild and install the kernel: 82*81966bceSXin LI 83*81966bceSXin LI a) for FreeBSD 5.x-i386/6.x-i386/7.x-i386/8.x-i386/9.x-i386: 84*81966bceSXin LI 85*81966bceSXin LI # cd /usr/src/sys/i386/conf/ 86*81966bceSXin LI # /usr/sbin/config MYKERNEL 87*81966bceSXin LI # cd ../compile/MYKERNEL/ 88*81966bceSXin LI # make depend 89*81966bceSXin LI # make 90*81966bceSXin LI # make install 91*81966bceSXin LI 92*81966bceSXin LI b) for FreeBSD 5.x-amd64/6.x-amd64/7.x-amd64/8.x-amd64/9.x-amd64: 93*81966bceSXin LI 94*81966bceSXin LI # cd /usr/src/sys/amd64/conf/ 95*81966bceSXin LI # /usr/sbin/config MYKERNEL 96*81966bceSXin LI # cd ../compile/MYKERNEL/ 97*81966bceSXin LI # make depend 98*81966bceSXin LI # make 99*81966bceSXin LI # make install 100*81966bceSXin LI 101*81966bceSXin LI c) for FreeBSD 4.x: 102*81966bceSXin LI 103*81966bceSXin LI # cd /usr/src/sys/i386/conf/ 104*81966bceSXin LI # /usr/sbin/config MYKERNEL 105*81966bceSXin LI # cd ../../compile/MYKERNEL/ 106*81966bceSXin LI # make depend 107*81966bceSXin LI # make 108*81966bceSXin LI # make install 109*81966bceSXin LI 110*81966bceSXin LI If the driver was previously configured as an auto-loaded module by 111*81966bceSXin LI /boot/defaults/loader.conf, please remove the entry hpt27xx_load="YES" 112*81966bceSXin LI from loader.conf to prevent the driver from being loaded twice. 113*81966bceSXin LI 114*81966bceSXin LI 7) Reboot from the new kernel. 115*81966bceSXin LI 116*81966bceSXin LI 117*81966bceSXin LI3. Build/Load the driver as a kernel module 118*81966bceSXin LI------------------------------------------------ 119*81966bceSXin LI 120*81966bceSXin LI 1) Install kernel source package and building tools. 121*81966bceSXin LI 122*81966bceSXin LI 2) Extract the driver files under the kernel source tree: 123*81966bceSXin LI 124*81966bceSXin LI # cd /usr/src/sys/ 125*81966bceSXin LI # tar xvzf /your/path/to/hpt27xx-freebsd-src-v1.0-111227.tgz 126*81966bceSXin LI 127*81966bceSXin LI 128*81966bceSXin LI 4) Build the driver module: 129*81966bceSXin LI 130*81966bceSXin LI # cd modules/hpt27xx 131*81966bceSXin LI # make 132*81966bceSXin LI 133*81966bceSXin LI 5) Copy the driver module to the kernel module directory 134*81966bceSXin LI 135*81966bceSXin LI For FreeBSD 4.x: 136*81966bceSXin LI 137*81966bceSXin LI # cp hpt27xx.ko /modules/ 138*81966bceSXin LI 139*81966bceSXin LI For FreeBSD 5.x/6.x/7.x/8.x/9.x: 140*81966bceSXin LI 141*81966bceSXin LI # cp hpt27xx.ko /boot/kernel/ 142*81966bceSXin LI 143*81966bceSXin LI 6) Reboot and load the driver under loader prompt. e.g: 144*81966bceSXin LI 145*81966bceSXin LI BTX loader 1.00 BTX version is 1.01 146*81966bceSXin LI Console: internal video/keyboard 147*81966bceSXin LI BIOS driver A: is disk0 148*81966bceSXin LI BIOS driver C: is disk2 149*81966bceSXin LI BIOS 636kB/74512kB available memory 150*81966bceSXin LI 151*81966bceSXin LI FreeBSD/i386 bootstrap loader, Revision 0.8 152*81966bceSXin LI (mailto:jkh@narf.osd.bsdi.com, Sat Apr 21 08:46:19 GMT 2001) 153*81966bceSXin LI Loading /boot/defaults/loader.conf 154*81966bceSXin LI /kernel text=0x24f1db data=0x3007ec+0x2062c - 155*81966bceSXin LI 156*81966bceSXin LI Hit [Enter] to boot immediagely, or any other key for command prompt. 157*81966bceSXin LI Booting [kernel] in 9 seconds�� 158*81966bceSXin LI 159*81966bceSXin LI <-- press SPACE key here 160*81966bceSXin LI Type '?' for a list of commands, 'help' for more detailed help. 161*81966bceSXin LI ok load hpt27xx 162*81966bceSXin LI /modules/hpt27xx.ko text=0xf571 data=0x2c8+0x254 163*81966bceSXin LI ok boot 164*81966bceSXin LI 165*81966bceSXin LI For FreeBSD 5.x/6.x/7.x/8.x/9.x, you can select 6 on the boot menu to get a loader 166*81966bceSXin LI prompt. 167*81966bceSXin LI 168*81966bceSXin LI 7) You can add a below line into /boot/defaults/loader.conf to load the 169*81966bceSXin LI driver automatically: 170*81966bceSXin LI 171*81966bceSXin LI hpt27xx_load="YES" 172*81966bceSXin LI 173*81966bceSXin LI Please refer to the installation guide in HighPoint FreeBSD driver release 174*81966bceSXin LI package for more information. 175*81966bceSXin LI 176*81966bceSXin LI 177*81966bceSXin LI############################################################################# 178*81966bceSXin LITechnical support and service 179*81966bceSXin LI 180*81966bceSXin LI If you have questions about installing or using your HighPoint product, 181*81966bceSXin LI check the user's guide or readme file first, and you will find answers to 182*81966bceSXin LI most of your questions here. If you need further assistance, please 183*81966bceSXin LI contact us. We offer the following support and information services: 184*81966bceSXin LI 185*81966bceSXin LI 1) The HighPoint Web Site provides information on software upgrades, 186*81966bceSXin LI answers to common questions, and other topics. The Web Site is 187*81966bceSXin LI available from Internet 24 hours a day, 7 days a week, at 188*81966bceSXin LI http://www.highpoint-tech.com. 189*81966bceSXin LI 190*81966bceSXin LI 2) For technical support, send e-mail to support@highpoint-tech.com 191*81966bceSXin LI 192*81966bceSXin LI NOTE: Before you send an e-mail, please visit our Web Site 193*81966bceSXin LI (http://www.highpoint-tech.com) to check if there is a new or 194*81966bceSXin LI updated device driver for your system. 195*81966bceSXin LI 196*81966bceSXin LI$FreeBSD$ 197