Updating the kernel with the new driver source – Avago Technologies 3ware SAS 9750-16i4e User Manual
Page 317
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.
1
Unpack
tws.tgz
then copy the
*.c
and
*.h
files to
/sys/dev/tws
and the Makefile to
/sys/modules/tws
.
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 tws # 3ware 9750 series
” is not
commented out.
b
Save changes.
c
In /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"
d
In /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:
- 3ware SAS 9750-24i4e 3ware SAS 9750-4i 3ware SAS 9750-4i4e 3ware SAS 9750-8e 3ware SAS 9750-8i 3ware 8006-2LP 3ware 8006-2LP (Channel) 3ware 9550SXU-4LP 3ware 9550SXU-4LP (Channel) 3ware 9550SXU-8LP 3ware 9550SXU-8LP (Channel) 3ware 9650SE-12ML 3ware 9650SE-12ML (Channel) 3ware 9650SE-16ML 3ware 9650SE-16ML (Channel) 3ware 9650SE-24M8 3ware 9650SE-24M8 (Channel) 3ware 9650SE-2LP 3ware 9650SE-2LP (Channel) 3ware 9650SE-4LPML 3ware 9650SE-4LPML (Channel) 3ware 9650SE-8LPML 3ware 9650SE-8LPML (Channel) 3ware 9690SA-4I 3ware 9690SA-4I (Channel) 3ware 9690SA-4I4E 3ware 9690SA-4I4E (Channel) 3ware 9690SA-8E 3ware 9690SA-8E (Channel) 3ware 9690SA-8I 3ware 9690SA-8I (Channel)