Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Configuring a System
Reconfiguring the Kernel (Prior to HP-UX 11i Version 2)
Chapter 3 285
To use SAM to reconfigure the kernel, log in as the superuser, ensure you
are logged on to the machine for which you are regenerating the kernel,
and start SAM. Select the “Kernel Configuration” menu item; use
SAM’s online help if needed. Generally, SAM is simpler and faster to use
than the equivalent HP-UX commands.
To use HP-UX commands to reconfigure the kernel:
Step 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.
Step 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
Step 3. Use the kmsystem command to view the kernel modules that were
already selected for the next kernel build:
/usr/sbin/kmsystem -S /stand/build/system
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 no longer work as in
previous releases. Direct edits have no supported kernel configuration
interface and are likely to introduce configuration errors. Instead, use
the commands kmsystem and kmtune. These commands are new for
Release 11.0; consult kmsystem (1M) and kmtune (1M) in the HP-UX
Reference.
Step 4. Build the new kernel by invoking the mk_kernel command:
/usr/sbin/mk_kernel -s /stand/build/system