Installing the 3ware Driver on a FreeBSD System that Boots from a Differ-

3 Unpack the driver source files.

cd /sys/dev/twa tar -xzvf twa.tgz

4 Move the Makefile to /sys/modules/twa

mv Makefile /sys/modules/twa

5 Change the directory to /sys/modules/twa/

cd /sys/modules/twa

6Uncomment or comment the following line in Makefile, based on whether or not you intend to bundle the firmware image with the driver:

TWA_FLASH_FIRMWARE=1

7If you intend to enable printing of debug messages in the driver, uncomment the following line in Makefile:

CFLAGS+=-DTWA_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.

8 Build the driver

make clean make depend make

9 Copy the driver to the appropriate directory. For FreeBSD 4.x, copy it to

cp twa.ko /modules/twa.ko

For FreeBSD 5.x, copy it to

cp twa.ko /boot/kernel/twa.ko

10 Unload the existing driver, if any

kldunload twa.ko

11 Load the new driver.

kldload twa.ko

www.3ware.com

95

Page 103
Image 103
AMCC 9000 manual Unpack the driver source files