Avago Technologies 3ware 9650SE-12ML (Channel) User Manual

Page 213

Advertising
background image

Updating the Firmware and Driver

www.3ware.com

201

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 181.

3

Unpack

twa.tgz. Then copy the *.c

and

*.h

files to

/sys/dev/twa and the

Makefile

to

/sys/modules/twa

.

4

Build the

twa.ko

module

cd /sys/modules/twa
make

The

twa.ko

module is created in

/sys/modules/twa

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 twa #

3ware 9000 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

3

Reboot to FreeBSD.

4

Load the kernel driver module from

/sys/modules/twa

cd /sys/modules/twa
kldload ./twa.ko

5

If you wish to load the driver automatically every time the system is
rebooted,

add the line

'

twa_load="YES"

'

to the file

/boot/loader.conf

Advertising