Reconfiguring the Kernel in HP-UX Release 11i Version 1.5
Reconfiguring the kernel in HP-UX Release 11i Version 1.5
Reconfiguring the Kernel
Chapter 1 7
when adding or removing DLKMs).
Since the introduction of DLKMs, dynamic kernel configuration of the running kernel is
possible when adding or removing a DLKM. Although HP-UX Release 11i Version 1.5 is not
released with DLKM content, certain optional add-on HP-UX software is available as DLKM
modules.
If using HP-UX commands to add or remove static traditional kernel modules, follow the
instructions outlined in “Steps to Perform Whole Kernel Configuration Using HP-UX
Commands” on page 7. To add or remove DLKM kernel modules, refer to the white paper
Managing and Developing Dynamically Loadable Kernel Modules.
NOTE If you would like to permanently save the running kernel before performing
whole kernel configuration for the first time, refer to “Saving a Backup Kernel
Permanently” on page 10.
Steps to Perform Whole Kernel Configuration Using HP-UX Commands
To use HP-UX commands to reconfigure the kernel:
1. Log in as superuser on the machine for which a new kernel is being generated. You can log
in remotely from another location by using the /usr/bin/rlogin command.
2. Change directory to the build environment (/stand/build). There, execute a system
preparation script, system_prep. system_prep writes a system file based on your current
kernel in the current directory. (That is, it creates /stand/build/system.) The -v
provides verbose explanation as the script executes.
cd /stand/build
/usr/lbin/sysadm/system_prep -v -s system
3. Use the kmsystem (1M) command:
/usr/sbin/kmsystem -S /stand/build/system
to view the kernel modules that were already explicitly selected for the next kernel build:
Note that additional kernel modules may be configured because of module dependencies or
because they are required kernel modules as indicated in their master files.
Add absent kernel modules (like device drivers) using the kmsystem command. The -c Y
option specifies the module name to be configured into the system:
/usr/sbin/kmsystem -S /stand/build/system -c Y driver-name
NOTE Direct edits to the HP-UX system description files to add or remove kernel