3DM 2 Online Help

Updating 3ware Drivers under FreeBSD
Drivers can be updated either from source files or with driver modules.
Using source files, you can compile drivers into the kernel or you can create modules for versions of FreeBSD for which 3ware does not supply modules.
In addition, there may be new modules included with future updates from 3ware. See http://www.3ware.com/support/index.asp.
This section includes these topics:

| Updating the Kernel with the New Driver Source

| Updating the 3ware Kernel Driver Module Under FreeBSD

| Compiling and Loading the Driver as a Module using kldload

Updating the Kernel with the New Driver Source
Use this procedure if module drivers are not available for your version of FreeBSD (pre 6.3) or if you wish to update your kernel from driver source files.
To obtain source files, see “Obtaining 3ware FreeBSD Drivers” in the 3ware SAS/SATA RAID Software User Guide.

1 | Unpack twa.tgz. Then copy the *.c and *.h files to /sys/dev/twa and the Makefile to /sys/modules/twa.

2 | Go to /usr/src/sys/i386/conf or /usr/src/sys/amd64/conf, depending on whether you have a 32-bit or 64-bit version of FreeBSD.

a | Open your current configuration file: (GENERIC, SMP, or PAE or custom config), with vi or other editor.

Make sure “Device twa # 3ware 9000 series” is not commented out.

b | Save changes.

c | 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

4 | Reboot your system.

When the system reboots, the new kernel driver module will load automatically.
Updating the 3ware Kernel Driver Module Under FreeBSD
The following steps describe how to update the 3ware driver with a kernel driver module under FreeBSD.

| Backup your original driver before updating in case you need to revert back to it. However, you will not be able to revert back to the original driver if you are booting from that unit.

To update the 3ware kernel driver module under FreeBSD

1 | Download and extract the driver, as described under Downloading the Driver and Firmware.

2 | Backup any critical data prior to updating the 3ware driver.

3 | Change the directory to the location with the extracted driver.

4 | Copy the driver into /boot/kernel.

Make sure the module version matches the FreeBSD version. If the versions don’t match there could be a kernel panic.

5 | Load the driver.

kldload twa.ko
If units are present, you should see unit information in the system log (usually, /var/log/messages).

6 | 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

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.

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

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.

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

Related Topics
  Downloading the Driver and Firmware
  Updating the Firmware Through 3DM 2
  Updating the Firmware Through DOS Using the 3ware Bootable CD
  Updating the 3ware Driver and Firmware Under Windows
  Using the Update Utility With Multiple Controllers
  Updating the 3ware Driver Under Windows
  Updating the 3ware Driver Under Red Hat or Fedora Core
  Updating the 3ware Driver Under SuSE
  Updating 3ware Drivers under VMware

www.3ware.com
1-858-535-6517
1-800-840-6055

Copyright AMCC 2004-2009
To contact Support, log in at https://www.3ware.com