User`s guide

366 XgOS User’s Guide September 2014
While Oracle intends their drivers to be installed on a system which leverages the
RPM (Redhat Package Manager), it is still possible for advanced users to extract the
source code and build each driver manually.
When you do this, you should also take care to include the appropriate xsigod
userland configuration application and startup scripts.
Here is a command sequence to build the 1.5 drivers manually from the src-RPM
file:
Activate the init.d script.
OFED Patch Files
The patch program takes a patch file containing a difference listing produced by the
diff program and applies those differences to one or more original files, producing
patched versions.
Oracle uses two patches:
1. xsigo-linux-2.6.9-55.patch is used to handle a change in
ib_fmr_pool_map_phys API in xsigoib/xsigoib.c
2. ofed-1.2.patch is used to handle changes in OFED 1.2 as compared with
Xsigo’s source code base and affects a number of files.
The patches are normally invoked as part of Xsigo’s spec file. If they need to be
manually applied, invoke the patch program.
# rpm2cpio xsigo-hostdrivers-kmod-linux_3.8.0-1.src.rpm|cpio -iud
# tar xzvf xsigo_branch_3.8.0.tar.gz
# make -C/lib/modules/`uname -r`/build M=`pwd`/ksrc/xsigoib
# make -C/lib/modules/`uname -r`/build M=`pwd`/ksrc/xcpm
# make -C/lib/modules/`uname -r`/build M=`pwd`/ksrc/vnic
# make -C/lib/modules/`uname -r`/build M=`pwd`/ksrc/vhba
# make -C/lib/modules/`uname -r`/build M=`pwd`/ksrc/kxsigod
# mkdir –p /lib/modules/`uname –r`/updates/kernel/drivers/kxsigod/ulp
# cp ksrc/*/*.ko /lib/modules/`uname –r`/updates/kernel/drivers/ulp
# depmod –a
# cp scripts/xsigo /etc/init.d/xsigo
# make -C apps/xsigod
# cp apps/xsigod/xsigod /usr/bin/xsigod