
Driver Installation Under FreeBSD
h Add the following line to “Makefile.i386’
i If you intend to bundle the firmware image with the driver, add the following line to /sys/conf/options:
TWA_FIRMWARE_FLASHopt_twa.h
and the following line to your kernel configuration file (“custom” in the example above):
optionsTWA_FLASH_FIRMWARE
j If you intend to enable printing of debug messages in the driver, add the following line to /sys/conf/options:
TWA_DEBUGopt_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.
5Rebuild the kernel and install the new kernel.
6Reboot 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.
943ware 9000 Series Serial ATA RAID Controller Installation Guide