HP 6100 HP 4x00/6x00/8x00 Enterprise Virtual Array User Guide (5697-0733, Marc - Page 85

Compiling the driver for multiple kernels, Uninstalling the Linux components, Using the source RPM - specs

Page 85 highlights

# ./INSTALL -F Compiling the driver for multiple kernels If your system has multiple kernels installed on it, you can compile the driver for all the installed kernels by setting the INSTALLALLKERNELS environmental variable to y and exporting it by issuing the following commands: # INSTALLALLKERNELS=y # export INSTALLALLKERNELS You can also use the -a option of the INSTALL script as follows: # ./INSTALL -a Uninstalling the Linux components To uninstall the components, use the INSTALL script with the -u option as shown in the following example: # ./INSTALL -u To manually uninstall all components, or to uninstall just one of the components, use one or all of the following commands: # rpm -e fibreutils # rpm -e hp_qla2x00 # rpm -e hp_qla2x00src Using the source RPM In some cases, you may have to build a binary hp_qla2x00 RPM from the source RPM and use that manual binary build in place of the scripted hp_qla2x00src RPM. You need to do this if your production servers do not have the kernel sources and gcc installed. If you need to build a binary RPM to install, you will need a development machine with the same kernel as your targeted production servers. You can install the binary RPM-produced RPM methods on your production servers. NOTE: The binary RPM that you build works only for the kernel and configuration that you build on (and possibly some errata kernels). Ensure that you use the 7.xx version of the hp_qla2x00 source RPM for 2.4 kernel-based distributions and the 8.xx version of the hp_qla2x00 source RPM for 2.6 kernel-based distributions. Use the following procedure to create the binary RPM from the source RPM: 1. Select one of the following options: • Enter the #./INSTALL -S command. The binary RPM creation is complete. You do not have to perform 2 through 4. • Install the source RPM by issuing the # rpm -ivh hp_qla2x00-version-revision.src.rpm command. Continue with 2. 2. Select one of the following directories: • For Red Hat distributions, use the /usr/src/redhat/SPECS directory. • For SUSE distributions, use the /usr/src/packages/SPECS directory. 3. Build the RPM by using the # rpmbuild -bb hp_qla2x00.spec command. NOTE: In some of the older Linux distributions, the RPM command contains the RPM build functionality. At the end of the command output, the following message appears: Linux 85

  • 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
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185

# ./INSTALL -F
Compiling the driver for multiple kernels
If your system has multiple kernels installed on it, you can compile the driver for all the installed
kernels by setting the
INSTALLALLKERNELS
environmental variable to
y
and exporting it by
issuing the following commands:
# INSTALLALLKERNELS=y
# export INSTALLALLKERNELS
You can also use the
-a
option of the
INSTALL
script as follows:
# ./INSTALL -a
Uninstalling the Linux components
To uninstall the components, use the
INSTALL
script with the
-u
option as shown in the following
example:
# ./INSTALL -u
To manually uninstall all components, or to uninstall just one of the components, use one or all of
the following commands:
# rpm -e fibreutils
# rpm -e hp_qla2x00
# rpm -e hp_qla2x00src
Using the source RPM
In some cases, you may have to build a binary
hp_qla2x00
RPM from the source RPM and use
that manual binary build in place of the scripted
hp_qla2x00src
RPM. You need to do this if
your production servers do not have the kernel sources and
gcc
installed.
If you need to build a binary RPM to install, you will need a development machine with the same
kernel as your targeted production servers. You can install the binary RPM-produced RPM methods
on your production servers.
NOTE:
The binary RPM that you build works only for the kernel and configuration that you build
on (and possibly some errata kernels). Ensure that you use the 7.xx version of the
hp_qla2x00
source RPM for 2.4 kernel-based distributions and the 8.xx version of the
hp_qla2x00
source
RPM for 2.6 kernel-based distributions.
Use the following procedure to create the binary RPM from the source RPM:
1.
Select one of the following options:
Enter the
#./INSTALL -S
command. The binary RPM creation is complete. You do not
have to perform
2
through
4
.
Install the source RPM by issuing the
# rpm -ivh
hp_qla2x00-
version-revision
.src.rpm
command. Continue with
2
.
2.
Select one of the following directories:
For Red Hat distributions, use the
/usr/src/redhat/SPECS
directory.
For SUSE distributions, use the
/usr/src/packages/SPECS
directory.
3.
Build the RPM by using the
# rpmbuild -bb hp_qla2x00.spec
command.
NOTE:
In some of the older Linux distributions, the RPM command contains the RPM build
functionality.
At the end of the command output, the following message appears:
Linux
85