| United States-English |
|
|
|
![]() |
HP-UX 11i Version 1.5 Reference Volume 2, Section 1M: System Administration Commands > mmk_kernel(1M) |
|
NAMEmk_kernel — build a bootable HP-UX kernel and/or kernel modules SYNOPSIS/usr/sbin/mk_kernel [-o pathname] [-s system_file] [-S] [-v] /usr/sbin/mk_kernel -M module_name [[-M module_name]...] [-v] DESCRIPTIONmk_kernel builds an executable file (a kernel) and associated kernel components that can be used to boot an HP-UX system. If the build succeeds, the following files are generated:
The build directory is the target directory where mk_kernel places its generated files and directories. In addition to the static kernel image, files such as conf.c, conf.o, and tune.h are also placed in the build directory. If the path used to designate the HP-UX system description file (also known as the traditional system file) is /stand/system, the build directory is /stand/build. If another path is used to designate the system description file, the build directory is the current working directory. In addition to the system-wide information maintained in the HP-UX system description file, mk_kernel takes the following as input to generate kernels and loadable module images: a set of kernel module description files (modular), a set of master configuration files that describe the kernel components installed on the system (modular and traditional), a set of kernel archive libraries (traditional), and a set of kernel module object files (modular). Refer to config(1M) for a definition of traditionally packaged and modularly packaged modules. If the -o option is not specified, the static kernel file remains in the build directory. The kmupdate command must be called explicitly to pre-enable the system to use this kernel and to trigger the replacement of the default kernel during the next shutdown. If -o /stand/vmunix is specified, the target default kernel file is not overwritten. The new kernel file vmunix_test is moved to the default path as the system shuts down, and the previous version of the default file is saved as /stand/vmunix.prev. Until the system reboots, the new kernel file must be kept as vmunix_test. If the -o option is specified with other than /stand/vmunix, the newly generated kernel file vmunix_test is renamed immediately. In case the administrator needs to later move this kernel to the system default path, the kmupdate command must be called explicitly. kmupdate pre-enables the system to use this kernel and triggers the replacement of the default kernel during the next shutdown. Manually replacing the default kernel (/stand/vmunix) or any file in its associated kernel component set (named via the kernel's KIS) can result in an unbootable kernel and must be avoided. mk_kernel exits with no action if the environment variable SW_INITIAL_INSTALL has the value of 1. SW_INITIAL_INSTALL is exported by SD with that value only when the system is undergoing its initial software system installation. Optionsmk_kernel recognizes the following options.
DIAGNOSTICSMessages 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 program to continue. EXAMPLES
WARNINGSDo not manually copy the kernel or manually update the current kernel file with its associated kernel component set. To update the default kernel, always use the kmupdate command. The kernel relies on several distributed files (the kernel component set) associated to the kernel via a unique kernel ID string. Missing files may result in a kernel that does not boot or is not fully enabled. These files include:
Never manually remove a kernel file; this will leave its associated component set orphaned. Instead, use kmupdate -d kernel_name to remove a kernel and the various distributed files that make up its associated kernel component set. |
||||||||||||||||||||||||||||
|
|||||||||||||||