Installing 3ware Drivers and Software under FreeBSD
www.lsi.com/channel/products 305
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 you wish to update your kernel from driver source files.
To obtain source files, see “Obtaining 3ware FreeBSD Drivers” on page 302.
1Unpack
tws.tgz then copy the *.c and *.h files to
/sys/dev/tws and the Makefile to /sys/modules/tws.
2Go 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 tws # 3ware 9750 series” is not
commented out.
b Save changes.
cIn /usr/src/sys/conf/files add the following entries
between the entries for twa and twe:
dev/tws/tws.c optional tws \
compile-with "${NORMAL_C} -I$S/dev/tws"
dev/tws/tws_cam.c optional tws \
compile-with "${NORMAL_C} -I$S/dev/tws"
dev/tws/tws_hdm.c optional tws \
compile-with "${NORMAL_C} -I$S/dev/tws"
dev/tws/tws_services.c optional tws \
compile-with "${NORMAL_C} -I$S/dev/tws"
dev/tws/tws_user.c optional tws \
compile-with "${NORMAL_C} -I$S/dev/tws"
dIn /usr/src/sys/conf/kern.pre.mk
Add the following after the entry for tws
# .. and the same for tws
INCLUDES+= -I$S/dev/tws
e Run command
config <config_name> specifying your
configuration file: (GENERIC, SMP, PAE, or your custom config),
followed by: