SAM is still the easiest way to build a new kernel under HP-UX. However, you can build one manually if you prefer:
cd /standMove to kernel directory. #
mv vmunix vmunix.saveSave current kernel. #
cd buildMove to build subdirectory. #
/usr/lbin/sysadm/system_prep -v -s systemExtract system file. #
-S /stand/build/systemModify kernel parameters. ... #
mk_kernel -s ./system -o ./vmunix_newBuild new kernel. #
kmupdate /stand/build/vmunix_newSchedule kernel install. #
mv /stand/system /stand/system.prevSave old system file. #
mv /stand/build/system /stand/systemInstall new system file.
system_prep script creates a new system configuration file by extracting the information from the
running kernel. The
specify the values of kernel variables for the new kernel.
mk_kernel script calls the
config command and initiates the
make process automatically. Once the kernel is
built, you use the
command to schedule its installation at the next reboot.
You can then reboot to activate it.
If there is a problem with the new kernel, you can boot the saved kernel with a command like the following:
To determine what kernel object files are available, use the following command to list the contents of the /stand directory:
hpux ll /stand
The system file contains information about system devices and settings for various kernel parameters. Here are some examples of the latter: