User`s guide
364 XgOS User’s Guide • September 2014
Build Option 3: Kernel With Upgraded
OFED Stack
Source RPMs are available by request from Oracle Customer Support. If you will be
building a source RPM, contact Oracle Customer Support, who will provide
instructions for obtaining the image and can provide assistance with using the
source. You will need to provide Oracle Customer Support with some basic
information For more information, see “Required Information for Contacting
Customer Support” on page 368.
Be aware of the following:
■ Tested Environments: 2.6.16.21 + OFED-1.2, 2.6.16.21 + OFED-1.1, RHEL4 +
OFED-1.1
■ Dependencies: Compiled kernel source trees and updated OFED headers
Replacing the InfiniBand driver stack with an updated OFED stack can and likely
will result in API changes for the drivers. It is likely that you will need to modify the
existing native InfiniBand calls to conform to the current headers. In order to have
kbuild look in the proper location for the InfiniBand stack, you will need to set the
environment variable XSIGOFLAGS. This modifies the search path when kbuild is
compiling to look for the header files before looking in the default kernel source
directory.
Command sequence procedure:
A suggestion to find the proper include path is to find the “include/rdma” directory
in your build tree:
In this scenario, you want to set XSIGOFLAGS to this:
# rpm -ivh xsigo-hostdrivers-kmod-linux_<#version>-1.src.rpm
# export XSIGOFLAGS=" -I /usr/src/ofa_kernel-1.2.5.1/include "
# rpmbuild -bb /usr/src/redhat/SPECS/xsigo-hostdrivers.spec
# find /root/ofed-1.2.5 -name rdma
/root/ofed-1.2.5/include/rdma
# export XSIGOFLAGS=” -I /root/ofed-1.2.5/include ”