HP-UX Reference (11i v1 00/12) - 1M System Administration Commands A-M (vol 3)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1m/!!!intro.1m
________________________________________________________________
___ ___
m
mk_kernel(1M) mk_kernel(1M)
RETURN VALUE
mk_kernel returns 0 upon normal completion, and 1 if an error occurred.
DIAGNOSTICS
Messages and warnings are sent to stdout. Messages from config and other commands are displayed
when invoked from mk_kernel. Errors cause mk_kernel to halt immediately; warnings allow the pro-
gram to continue.
EXAMPLES
mk_kernel -o /stand/vmunix
Uses the file /stand/system to build a new kernel and kernel module(s). The new kernel file is
placed in /stand/build/vmunix_test upon success. Kernel function set directory is placed in
/stand/build/dlkm.vmunix_test. These files are moved automatically to
/stand/vmunix and /stand/dlkm during shutdown or startup. The current set is saved as
/stand/vmunix.prev and /stand/dlkm.vmunix.prev.
mk_kernel -s /mnt/altsys/stand/system.new
Uses the file /mnt/altsys/stand/system.new
to build a new kernel and kernel module(s).
The new kernel is named
vmunix_test in the present working directory. The kernel function set
directory,
dlkm.vmunix_test
, is placed in the current working directory.
mk_kernel -s /stand/system -o /tmp/new_kernel
Uses the file /stand/system to build a new kernel and kernel module(s). The new kernel file is
placed in
/tmp/new_kernel
. The kernel function set directory is in
/tmp/dlkm.new_kernel.
If the administrator wants to use this kernel as the default kernel,
the
kmupdate command can be used.
WARNINGS
System administrators are expected to treat the kernel and dlkm, kernel_name, as a set. Do not manually
copy the kernel or manually update the current kernel file with its associated kernel function set directory.
To update the default kernel, always use the
kmupdate command.
Kernel modules are separate objects to be independently configured into the system without requiring a
reboot. To accomplish this, the kernel relies on several files under the kernel function set directory.
• kernel file: kernel_name or /stand/vmunix
• kernel function set directory: dlkm.kernel_name or /stand/dlkm
The kernel function set directory contains kernel modules, a module database file, and a kernel symbol
table file. These files and directories are expected to be found in a directory whose name matches the
booted kernel. If the kernel function set directory is not found, the dynamically loadable kernel module
feature is disabled.
FILES
/stand/vmunix Default kernel
/stand/dlkm Default kernel function set directory
/stand/system Default system file
/stand/build/vmunix_test
Kernel built by mk_kernel
/stand/build/dlkm.vmunix_test
Kernel function set directory build by mk_kernel
/stand/vmunix.prev
Saved kernel
/stand/dlkm.vmunix.prev Saved kernel function set directory
SEE ALSO
config(1M), kmupdate(1M).
HP-UX Release 11i: December 2000 − 2 − Section 1M−−487
___
___