AMCC 9000 User Manual

Page of 126
Driver Installation Under FreeBSD
94
3ware 9000 Series Serial ATA RAID Controller Installation Guide
h
Add the following line to “Makefile.i386’
CFLAGS+=-I/sys/dev/twa
i
If you intend to bundle the firmware image with the driver, 
add the following line to /sys/conf/options:
TWA_FIRMWARE_FLASH opt_twa.h
and the following line to your kernel configuration file 
(“custom” in the example above):
options TWA_FLASH_FIRMWARE
j
If you intend to enable printing of debug messages in the 
driver, add the following line to /sys/conf/options:
TWA_DEBUG
opt_twa.h
and the following line to your kernel configuration file 
(“custom” in the example above):
options
TWA_DEBUG=
<number from 0 to 10>
Specifying 0 in the above line prints no debug messages, 
whereas specifying 10 prints a LOT of debug messages.
5
Rebuild the kernel and install the new kernel.
6
Reboot with the rebuilt kernel.
Compiling the Driver as a Loadable 
Module
If you wish to compile the driver yourself (for a different kernel 
version that you are running), then perform the following steps.
1
Create the directories /sys/modules/twa and /sys/dev/twa
mkdir /sys/modules/twa
mkdir /sys/dev/twa
2
Copy the 3ware driver source file archive (twa.tgz) to 
 
/sys/dev/twa
.