Updating 3ware drivers under freebsd, Updating the kernel with the new driver source – Avago Technologies 3ware 9650SE-12ML (Channel) User Manual
Page 211

Updating the Firmware and Driver
www.3ware.com
199
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” on page 53 .
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.