HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

c
config(1M) config(1M)
-S Statically link all kernel modules into the kernel file. This option only takes effect if kernel modules
are configured as loadable.
-s Stop after generating source files and makefiles.
make is not executed and no kernel
(
vmunix_test ) or kernel modules are created. The
-s option cannot be used with the -u option.
-t Give a short table of major device numbers for the character and block devices, the card drivers, the
streams drivers and modules that require link routines, the streams devices and the streams modules
named in system_file. These tables may be useful when creating special device files.
-u Invoke kmupdate after successfully configuring the new kernel environment. The
-u option cannot
be used together with the
-s option.
system_file
The file containing configuration information for the user’s system. The default system file is
/stand/system and when this file is used as input to
config, the resulting output is placed in
the directory
/stand/build . If a file other than
/stand/system is used for system_file,
con-
fig
places its output files in the current directory. The system file is divided into two parts: the first
part (mandatory) contains driver specifications; the second part (optional) contains system-dependent
information.
Constructing an HP-UX System File
The first part of system_file is used to configure:
device drivers
pseudo-drivers
subsystems
Each line has the following format:
devname where devname is the driver or subsystem name as it appears in the alias tables, driver install
tables or the device tables in the files in the directory, /usr/conf/master.d
. For example,
scsi selects the driver for SCSI disk drives, scsitape selects the driver for SCSI tape
drives, and nfs selects the NFS subsystem. Together, the files in
/usr/conf/master.d
contain a complete list of configurable devices, cards, subsystems, and pseudo-drivers.
The optional second part of system_file is used to:
define the swap device
define the dump device(s)
provide a mapping of a driver to a hardware path
define status and values of selected system parameters.
Lines are constructed as indicated below for each category.
(1) Swap device specification
No more than one swap specification is allowed. If a swap specification is not given, the system will be
configured to swap on the root device at the end of the filesystem.
swap hw_path offset [ blocks]
Configure the swap device location and its size as specified. Arguments are interpreted as fol-
lows:
hw_path The hardware path representing the device to configure as the swap device or the
string default may be used to indicate using the root device.
offset The swap area location. Boundaries are located at 1K-byte intervals. A negative
value specifies that a file system is expected on the device. At boot-up, the super
block is read to determine the exact size of the file system, and this value is put in
offset. If the swap device is auto-configured, this is the mechanism used. If the super
block is invalid, the entry will be skipped so that a corrupted super block will not later
cause the entire file system to be corrupted by configuring the swap area on top of it.
A positive or zero value for offset specifies the minimum area that must be reserved.
Zero means to reserve no area at the head of the device. A zero value implies that
there is no file system on the device.
Section 1M140 Hewlett-Packard Company 3 HP-UX 11i Version 1: September 2005