HP StorageWorks X5500 Network Storage Gateway for Linux setup guide (AP811-96003, October 2009)

A Building a custom kernel
This appendix contains the following procedures for SLES10 installations:
Compile a third-party kernel module
Extract HP X5500 Storage Gateway for Linux kernel patches
Rebuild the entire kernel from source
SLES10
Compile a third-party kernel module
In general, third-party kernel modules are compiled using a skeletal kernel source tree and pre-computed
symbols for the specific kernel configuration they will be loaded into. To set up this expected build
environment, you will need to install the following RPMs (from the pmxs-kernels rpm):
The kernel binary RPM:
kernel-HPPS-2.6.16.600.21.370.<xxxx>.<arch>.rpm
The kernel architecture-specific source RPM:
kernel-source-2.6.16.600.21.370.<xxxx>.<arch>.rpm
After installing the RPMs, reboot on the new binary kernel and verify that uname -r reports
2.6.16.600.21HPPS. If desired, edit the default setting in /boot/grub/menu.lst to select
the new kernel automatically. The newly installed kernel will be the first entry in the list (default=0).
If everything is set up properly, the symlink:
/lib/modules/2.6.16.600.21.370.<xxxx>-HPPS/build
will point to:
/usr/src/linux/2.6.16.600.21.370.<xxxx>-obj/<arch>/HPPS
and the symlink:
/lib/modules/2.6.16.600.21.370.<xxxx>-HPPS/source
will point to:
/usr/src/linux/2.6.16.600.21.370.<xxxx>
The environment is now ready to support compilation of third-party kernel modules. Refer to the
documentation provided with the module for installation, configuration and build process information.
Extract HP X5500 Storage Gateway for Linux kernel patches
Compiling third-party software using the HP X5500 Storage Gateway for Linux installed kernel build
environment, as described in the previous section, is a preferred technique. However, there may be
cases where you must extract the HP X5500 Storage Gateway for Linux kernel patches so they can
be integrated into your custom build environment.
HP StorageWorks X5500 Network Storage Gateway for Linux setup guide 43