Installing 3ware Drivers and Software under FreeBSD
www.lsi.com/channel/products 307
Compiling and Loading the Driver as a Module using
kldload
If you want to use a driver module and 3ware does not supply one for your
version of FreeBSD, use the following procedure. If you just want to install a
3ware-supplied module, see Updating the 3ware Kernel Driver Module Under
FreeBSD.
To compile the driver as a module
1 Boot to FreeBSD.
2 Download and extract the driver, as described under “Downloading the
Driver and Firmware” on page 178.
3Unpack tws.tgz.
Then copy the *.c and *.h files to
/sys/dev/tws and the Makefile to /sys/modules/tws
4 Build the tws.ko module
cd /sys/modules/tws
make
The tws.ko module is created in /sys/modules/tws.
To load the driver as a module
1 In the current configuration file under /usr/src/sys/i386/conf
or /usr/src/sys/amd64/conf comment out the entry: "Device
tws # 3ware 9750 series". This will unlink the old driver once
you rebuild the kernel.
2 Rebuild the kernel.
Run command config <config_name> specifying your configuration
file: (GENERIC, SMP, PAE, or your custom config), followed by:
cd ../compile/<config_name>
make clean
make cleandepend
make depend
make
make install
Note: You can only use kldload to load the driver as a module if your boot drive is
attached to the mother board and is not managed by the 3ware RAID controller.