3Ware 9500S-4LP Installation Guide - Page 103

Build the driver, whereas specifying 10 prints a LOT of debug messages.

Page 103 highlights

Installing the 3ware Driver on a FreeBSD System that Boots from a Differ- 3 Unpack the driver source files. cd /sys/dev/twa tar -xzvf twa.tgz 4 Move the Makefile to /sys/modules/twa mv Makefile /sys/modules/twa 5 Change the directory to /sys/modules/twa/ cd /sys/modules/twa 6 Uncomment or comment the following line in Makefile, based on whether or not you intend to bundle the firmware image with the driver: TWA_FLASH_FIRMWARE=1 7 If you intend to enable printing of debug messages in the driver, uncomment the following line in Makefile: CFLAGS+=-DTWA_DEBUG= Specifying 0 in the above line prints no debug messages, whereas specifying 10 prints a LOT of debug messages. 8 Build the driver make clean make depend make 9 Copy the driver to the appropriate directory. For FreeBSD 4.x, copy it to cp twa.ko /modules/twa.ko For FreeBSD 5.x, copy it to cp twa.ko /boot/kernel/twa.ko 10 Unload the existing driver, if any kldunload twa.ko 11 Load the new driver. kldload twa.ko www.3ware.com 95

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126

Installing the 3ware Driver on a FreeBSD System that Boots from a Differ-
www.3ware.com
95
3
Unpack the driver source files.
cd /sys/dev/twa
tar -xzvf twa.tgz
4
Move the Makefile to /sys/modules/twa
mv Makefile /sys/modules/twa
5
Change the directory to /sys/modules/twa/
cd /sys/modules/twa
6
Uncomment or comment the following line in Makefile, based
on whether or not you intend to bundle the firmware image
with the driver:
TWA_FLASH_FIRMWARE=1
7
If you intend to enable printing of debug messages in the driver,
uncomment the following line in Makefile:
CFLAGS+=-DTWA_DEBUG=<number from 0 to 10>
Specifying 0 in the above line prints no debug messages,
whereas specifying 10 prints a LOT of debug messages.
8
Build the driver
make clean
make depend
make
9
Copy the driver to the appropriate directory.
For FreeBSD 4.x, copy it to
cp twa.ko /modules/twa.ko
For FreeBSD 5.x, copy it to
cp twa.ko /boot/kernel/twa.ko
10
Unload the existing driver, if any
kldunload twa.ko
11
Load the new driver.
kldload twa.ko