Chapter 4. Driver Installation
54
3ware Serial ATA RAID Controller User Guide
3
Go to
/usr/src/sys/conf/
and edit
kern.pre.mk
(use vi or any
other editor).
Below this line:
I= -I$S/contrib/ngatm
Add this line:
I= -I$S/dev/twa
Save changes.
4
Go to
usr/src/sys/i386/conf
or
/usr/src/sys/amd64/conf
,
depending on whether you have a 32-bit or 64-bit version of FreeBSD 5.4
(respectively).
a
Edit the
GENERIC
file (use vi or any other editor).
b
Make sure
Device twa # 3ware 9000 series
is not commented
out.
c
Save changes.
d
Do
config
(GENERIC, SMP, PAE), using the flags required for your
hardware, followed by
cd ../compile/SMP
make clean
make cleandepend
make depend
make
make install
5
Reboot your system.
When the system reboots, the new kernel driver module will load
automatically.
Installing the 3ware Kernel Driver Module on a FreeBSD
System that Boots from a Device on the Motherboard
Use the steps in this section if FreeBSD is installed on a boot drive attached to
the motherboard ATA controller, and you will be using the unit on your 3ware
RAID controller for secondary storage.
When you use the controller for secondary storage, you do not need to install
the kernel driver module, however you may want to update the kernel with it.
Note:
If you have more than 4 GBytes of system memory, you will need to use the
PAE kernel. The FreeBSD PAE kernel has a bug that requires the 3ware driver to
be statically compiled. Do not dynamically load the kernel driver module (e.g.
kldload twa.ko
); doing so will cause the kernel to panic.