Driver Installation Under FreeBSD
www.3ware.com
55
To install the 3ware kernel driver module when FreeBSD is
installed on a device on the motherboard
1
Make sure the 3ware RAID controller is not installed in the system yet.
2
Install FreeBSD to a disk attached to the motherboard ATA controller.
Be sure to install the full FreeBSD source.
3
Once FreeBSD is installed, power down the system and install the 3ware
RAID controller. For assistance, see the installation guide that came with
the controller.
Create the RAID units on the controller using either 3BM (the BIOS of
the controller) or 3DM2/CLI (once FreeBSD is loaded).
4
Boot to FreeBSD.
5
Once the system boots up, replace the twa driver sources at
/sys/dev/twa
and
/sys/modules/twa
with the new sources that
have 9550SX/9590SE/9650 support, for the OS version being used.
The sources for the new kernel driver module for FreeBSD 5.4 can be
found on both the 3ware CD-ROM and the 3ware website.
For step-by-step instructions, see “To update the kernel with new driver
source” on page 53.
6
Build the kernel with the new driver sources.
For help with this, see
http://www.freebsd.org/doc/en_US.ISO8859-1/
books/handbook/kernelconfig-building.html
.
7
Reboot your system.
Compiling and Loading the driver as a Module
If you want to compile the driver and load it as a module without rebuilding
the kernel, follow these steps.
1
Disconnect all SCSI devices in the system, except the ones connected to
the 3ware RAID controller.
2
Create the RAID units on the 3ware RAID controller using 3BM (BIOS)
3
Unpack twa.tgz and copy (*.c and *.h) files to
sys/dev/twa
and
Makefile to
sys/modules/twa
Note:
The 6.x source files are located on the CD at
/packages/drivers/freebsd/src/6.x/twa.tgz
The 5.x source files are located on the CD at
/packages/drivers/freebsd/src/5.x/twa.tgz