User`s guide
Chapter 19 Source RPM: Building OVN Host Drivers 359
headers, kernel symbol-files, kernel config (.config), additional patches, updates,
and fixes. In some cases, the OVN host drivers require updates or fixes in your base
kernel, dependent drivers, or related tools/compilers. One example of both updated
features and fixes is the ib_mthca.ko from pre-OFED-1.2.
Users looking to build a driver on their system should consult the target
distribution’s documentation on building drivers to insure that they have installed
all the necessary prerequisites of the target distribution.
Please also read thru the Source RPM Release Notes for an explanation of known
issues, workarounds and other common suggestions.
SRC RPM File
Oracle provides one generic source RPM for all supported kernel distributions:
The RPM itself is not specific to every supported Linux installation.
Basic rpmbuild Example
Using a basic example and all default values, the driver can be built as the root user
on a Redhat Enterprise Linux 5 System:
Note that two RPM files are built. The file containing the –debuginfo contains some
of the debugging information for use with a debugger such as gdb. The other file
contains the drivers, management, and startup scripts.
xsigo-hostdrivers-kmod-<build>.src.rpm
# rpmbuild -–rebuild xsigo
-hostdrivers-kmod-linux_3.8.0-1.src.rpm
<…extensive output…>
Wrote: /usr/src/redhat/RPMS/x86_64/xsigo-hostdrivers-kmod-2.6.18-
53.el5_3.8.0-1.x86_64.rpm
Wrote: /usr/src/redhat/RPMS/x86_64/xsigo-hostdrivers-kmod-debuginfo- 2.6.18-
53.el5_3.8.0-1.x86_64.rpm