Converted 'vmunix' to 'kernel'.
This commit is contained in:
parent
404c1a5fc1
commit
b3bfc7199e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1856
@ -98,7 +98,7 @@ Sort by memory usage, instead of by process
|
|||||||
.Tn ID .
|
.Tn ID .
|
||||||
.It Fl N
|
.It Fl N
|
||||||
Extract the name list from the specified system instead of the default
|
Extract the name list from the specified system instead of the default
|
||||||
.Dq Pa /vmunix .
|
.Dq Pa /kernel .
|
||||||
.It Fl O
|
.It Fl O
|
||||||
Add the information associated with the space or comma separated list
|
Add the information associated with the space or comma separated list
|
||||||
of keywords specified, after the process
|
of keywords specified, after the process
|
||||||
@ -475,7 +475,7 @@ wait channel (as a symbolic name)
|
|||||||
exit or stop status (valid only for stopped or zombie process)
|
exit or stop status (valid only for stopped or zombie process)
|
||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /var/run/kvm_vmunix.db -compact
|
.Bl -tag -width /var/run/kvm_kernel.db -compact
|
||||||
.It Pa /dev
|
.It Pa /dev
|
||||||
special files and device names
|
special files and device names
|
||||||
.It Pa /dev/drum
|
.It Pa /dev/drum
|
||||||
@ -484,9 +484,9 @@ default swap device
|
|||||||
default kernel memory
|
default kernel memory
|
||||||
.It Pa /var/run/dev.db
|
.It Pa /var/run/dev.db
|
||||||
/dev name database
|
/dev name database
|
||||||
.It Pa /var/run/kvm_vmunix.db
|
.It Pa /var/run/kvm_kernel.db
|
||||||
system namelist database
|
system namelist database
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
default system namelist
|
default system namelist
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
|
@ -62,7 +62,7 @@ The default, causing the system to reboot in its usual fashion.
|
|||||||
Interpreted by the bootstrap program itself, causing it to
|
Interpreted by the bootstrap program itself, causing it to
|
||||||
prompt on the console as to what file should be booted.
|
prompt on the console as to what file should be booted.
|
||||||
Normally, the system is booted from the file
|
Normally, the system is booted from the file
|
||||||
.Dq Em xx Ns No (0,0)vmunix ,
|
.Dq Em xx Ns No (0,0)kernel ,
|
||||||
where
|
where
|
||||||
.Em xx
|
.Em xx
|
||||||
is the default disk name,
|
is the default disk name,
|
||||||
@ -123,7 +123,7 @@ program in the newly booted system.
|
|||||||
When no options are given (i.e.,
|
When no options are given (i.e.,
|
||||||
.Dv RB_AUTOBOOT
|
.Dv RB_AUTOBOOT
|
||||||
is used), the system is
|
is used), the system is
|
||||||
rebooted from file ``vmunix'' in the root file system of unit 0
|
rebooted from file ``kernel'' in the root file system of unit 0
|
||||||
of a disk chosen in a processor specific way.
|
of a disk chosen in a processor specific way.
|
||||||
An automatic consistency check of the disks is normally performed
|
An automatic consistency check of the disks is normally performed
|
||||||
(see
|
(see
|
||||||
|
@ -226,7 +226,7 @@ _kvm_open(kd, uf, mf, sf, flag, errout)
|
|||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Open kvm nlist database. We go ahead and do this
|
* Open kvm nlist database. We go ahead and do this
|
||||||
* here so that we don't have to hold on to the vmunix
|
* here so that we don't have to hold on to the kernel
|
||||||
* path name. Since a kvm application will surely do
|
* path name. Since a kvm application will surely do
|
||||||
* a kvm_nlist(), this probably won't be a wasted effort.
|
* a kvm_nlist(), this probably won't be a wasted effort.
|
||||||
* If the database cannot be opened, open the namelist
|
* If the database cannot be opened, open the namelist
|
||||||
|
@ -71,8 +71,8 @@ The
|
|||||||
function returns the number of invalid entries found.
|
function returns the number of invalid entries found.
|
||||||
If the kernel symbol table was unreadable, -1 is returned.
|
If the kernel symbol table was unreadable, -1 is returned.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /var/db/kvm_vmunix.db -compact
|
.Bl -tag -width /var/db/kvm_kernel.db -compact
|
||||||
.It Pa /var/db/kvm_vmunix.db
|
.It Pa /var/db/kvm_kernel.db
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr kvm 3 ,
|
.Xr kvm 3 ,
|
||||||
|
@ -51,7 +51,7 @@ struct __kvm {
|
|||||||
int pmfd; /* physical memory file (or crashdump) */
|
int pmfd; /* physical memory file (or crashdump) */
|
||||||
int vmfd; /* virtual memory file (-1 if crashdump) */
|
int vmfd; /* virtual memory file (-1 if crashdump) */
|
||||||
int swfd; /* swap file (e.g., /dev/drum) */
|
int swfd; /* swap file (e.g., /dev/drum) */
|
||||||
int nlfd; /* namelist file (e.g., /vmunix) */
|
int nlfd; /* namelist file (e.g., /kernel) */
|
||||||
struct kinfo_proc *procbase;
|
struct kinfo_proc *procbase;
|
||||||
char *argspc; /* (dynamic) storage for argv strings */
|
char *argspc; /* (dynamic) storage for argv strings */
|
||||||
int arglen; /* length of the above */
|
int arglen; /* length of the above */
|
||||||
|
@ -52,7 +52,7 @@ Extract values associated with the name list from the specified core
|
|||||||
instead of the default ``/dev/kmem''.
|
instead of the default ``/dev/kmem''.
|
||||||
.It Fl N
|
.It Fl N
|
||||||
Extract the name list from the specified system instead of the default
|
Extract the name list from the specified system instead of the default
|
||||||
``/vmunix''.
|
``/kernel''.
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr syslogd 8
|
.Xr syslogd 8
|
||||||
|
@ -64,7 +64,7 @@ This
|
|||||||
.Em boot
|
.Em boot
|
||||||
program
|
program
|
||||||
finds the corresponding file on the given device
|
finds the corresponding file on the given device
|
||||||
.Pf ( Ar vmunix
|
.Pf ( Ar kernel
|
||||||
by default),
|
by default),
|
||||||
loads that file into memory,
|
loads that file into memory,
|
||||||
and starts the program at the entry address specified in the program header.
|
and starts the program at the entry address specified in the program header.
|
||||||
@ -94,7 +94,7 @@ specifiers.
|
|||||||
For example,
|
For example,
|
||||||
to boot from the `a' file system of unit 0 on HP-IB 2,
|
to boot from the `a' file system of unit 0 on HP-IB 2,
|
||||||
type
|
type
|
||||||
.Ql rd(16, 0)vmunix
|
.Ql rd(16, 0)kernel
|
||||||
to the boot prompt.
|
to the boot prompt.
|
||||||
For tapes, the minor device number gives a file offset.
|
For tapes, the minor device number gives a file offset.
|
||||||
.Pp
|
.Pp
|
||||||
@ -103,7 +103,7 @@ In an emergency, the bootstrap methods described in the paper
|
|||||||
can be used to boot from a distribution tape.
|
can be used to boot from a distribution tape.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /usr/mdec/installboot -compact
|
.Bl -tag -width /usr/mdec/installboot -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
system code
|
system code
|
||||||
.It Pa /usr/mdec/bootrd
|
.It Pa /usr/mdec/bootrd
|
||||||
.Tn LIF
|
.Tn LIF
|
||||||
|
@ -54,7 +54,7 @@ clones attempt to boot the floppy disk drive A (otherwise known as drive
|
|||||||
0) first, and failing that, attempt to boot the hard disk C (otherwise
|
0) first, and failing that, attempt to boot the hard disk C (otherwise
|
||||||
known as hard disk controller 1, drive 0).
|
known as hard disk controller 1, drive 0).
|
||||||
The automatic boot will attempt to load
|
The automatic boot will attempt to load
|
||||||
.Pa vmunix
|
.Pa kernel
|
||||||
from partition A of either the floppy or the hard disk.
|
from partition A of either the floppy or the hard disk.
|
||||||
This boot may be aborted by typing any character on the keyboard repeatedly
|
This boot may be aborted by typing any character on the keyboard repeatedly
|
||||||
(four or five times at least) during the operating system load phase, after
|
(four or five times at least) during the operating system load phase, after
|
||||||
@ -99,9 +99,9 @@ fd 5 1/4" or 3 1/2" High density floppies
|
|||||||
For example,
|
For example,
|
||||||
to boot from a file system which starts at cylinder 0
|
to boot from a file system which starts at cylinder 0
|
||||||
of unit 0 of an IDE disk, type
|
of unit 0 of an IDE disk, type
|
||||||
.Dq Li wd0a:vmunix
|
.Dq Li wd0a:kernel
|
||||||
to the boot prompt;
|
to the boot prompt;
|
||||||
.Dq Li fd0a:vmunix
|
.Dq Li fd0a:kernel
|
||||||
would specify a 3 1/2" floppy drive 0 .
|
would specify a 3 1/2" floppy drive 0 .
|
||||||
.Pp
|
.Pp
|
||||||
In an emergency, the bootstrap methods described in the paper
|
In an emergency, the bootstrap methods described in the paper
|
||||||
@ -109,8 +109,8 @@ In an emergency, the bootstrap methods described in the paper
|
|||||||
can be used
|
can be used
|
||||||
to boot from a distribution tape.
|
to boot from a distribution tape.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /vmunixxx -compact
|
.Bl -tag -width /kernelxx -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
system code
|
system code
|
||||||
.It Pa /boot
|
.It Pa /boot
|
||||||
system bootstrap
|
system bootstrap
|
||||||
|
@ -55,7 +55,7 @@ and unless this fails, the system will resume multi-user operations.
|
|||||||
The SPARC system currently uses the SunOS bootstrap loaders.
|
The SPARC system currently uses the SunOS bootstrap loaders.
|
||||||
This will be changed in a future version of the system.
|
This will be changed in a future version of the system.
|
||||||
The SunOS boot will attempt to load
|
The SunOS boot will attempt to load
|
||||||
.Pa vmunix
|
.Pa kernel
|
||||||
from partition A of the boot device,
|
from partition A of the boot device,
|
||||||
which must currently be an ``sd'' disk.
|
which must currently be an ``sd'' disk.
|
||||||
.Pp
|
.Pp
|
||||||
@ -69,8 +69,8 @@ Here it waits for a kernel debugger connect; see
|
|||||||
.Xr kgdb 8 .
|
.Xr kgdb 8 .
|
||||||
Other flags are currently ignored.
|
Other flags are currently ignored.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /vmunixxx -compact
|
.Bl -tag -width /kernelxx -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
system code
|
system code
|
||||||
.It Pa /boot
|
.It Pa /boot
|
||||||
system bootstrap
|
system bootstrap
|
||||||
|
@ -122,9 +122,9 @@ to boot from a file system which starts at cylinder 0
|
|||||||
of unit 0 of an
|
of unit 0 of an
|
||||||
.Tn SMD-E
|
.Tn SMD-E
|
||||||
disk, type
|
disk, type
|
||||||
.Ql dk(0,0)vmunix
|
.Ql dk(0,0)kernel
|
||||||
to the boot prompt;
|
to the boot prompt;
|
||||||
.Ql dk(2,1,0)vmunix
|
.Ql dk(2,1,0)kernel
|
||||||
would specify drive 1 on
|
would specify drive 1 on
|
||||||
.Tn SMD-E
|
.Tn SMD-E
|
||||||
controller 2.
|
controller 2.
|
||||||
@ -134,8 +134,8 @@ In an emergency, the bootstrap methods described in the paper
|
|||||||
can be used
|
can be used
|
||||||
to boot from a distribution tape.
|
to boot from a distribution tape.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /vmunix -compact
|
.Bl -tag -width /kernel -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
system code
|
system code
|
||||||
.It Pa /boot
|
.It Pa /boot
|
||||||
system bootstrap
|
system bootstrap
|
||||||
|
@ -199,7 +199,7 @@ On any processor, the
|
|||||||
.Em boot
|
.Em boot
|
||||||
program
|
program
|
||||||
finds the corresponding file on the given device
|
finds the corresponding file on the given device
|
||||||
.Pf ( Pa vmunix
|
.Pf ( Pa kernel
|
||||||
by default), loads that file
|
by default), loads that file
|
||||||
into memory location zero, and starts the program at the entry address
|
into memory location zero, and starts the program at the entry address
|
||||||
specified in the program header (after clearing off the high bit
|
specified in the program header (after clearing off the high bit
|
||||||
@ -257,26 +257,26 @@ to boot from a file system which starts at cylinder 0
|
|||||||
of unit 0 of a
|
of unit 0 of a
|
||||||
.Tn MASSBUS
|
.Tn MASSBUS
|
||||||
disk, type
|
disk, type
|
||||||
.Ql hp(0,0)vmunix
|
.Ql hp(0,0)kernel
|
||||||
to the boot prompt;
|
to the boot prompt;
|
||||||
.Ql hp(2,0,1,0)vmunix
|
.Ql hp(2,0,1,0)kernel
|
||||||
would specify drive 1 on
|
would specify drive 1 on
|
||||||
.Tn MASSBUS
|
.Tn MASSBUS
|
||||||
adaptor 2;
|
adaptor 2;
|
||||||
.Ql up(0,0)vmunix
|
.Ql up(0,0)kernel
|
||||||
would specify a
|
would specify a
|
||||||
.Tn UNIBUS
|
.Tn UNIBUS
|
||||||
drive,
|
drive,
|
||||||
.Ql hk(0,0)vmunix
|
.Ql hk(0,0)kernel
|
||||||
would specify
|
would specify
|
||||||
an RK07 disk drive,
|
an RK07 disk drive,
|
||||||
.Ql ra(1,0,0,0)vmunix
|
.Ql ra(1,0,0,0)kernel
|
||||||
would specify a
|
would specify a
|
||||||
.Tn UDA50
|
.Tn UDA50
|
||||||
disk drive on a second
|
disk drive on a second
|
||||||
.Tn UNIBUS ,
|
.Tn UNIBUS ,
|
||||||
and
|
and
|
||||||
.Ql rb(0,0)vmunix
|
.Ql rb(0,0)kernel
|
||||||
would specify a
|
would specify a
|
||||||
disk on a 730
|
disk on a 730
|
||||||
.Tn IDC .
|
.Tn IDC .
|
||||||
@ -299,7 +299,7 @@ In an emergency, the bootstrap methods described in the paper
|
|||||||
can be used to boot from a distribution tape.
|
can be used to boot from a distribution tape.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /usr/mdec/xxboot -compact
|
.Bl -tag -width /usr/mdec/xxboot -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
system code
|
system code
|
||||||
.It Pa /boot
|
.It Pa /boot
|
||||||
system bootstrap
|
system bootstrap
|
||||||
|
@ -63,7 +63,7 @@ is insufficient disk space.
|
|||||||
.It Fl N
|
.It Fl N
|
||||||
Use
|
Use
|
||||||
.Ar system
|
.Ar system
|
||||||
as the kernel instead of the default ``/vmunix''.
|
as the kernel instead of the default ``/kernel''.
|
||||||
.It Fl v
|
.It Fl v
|
||||||
Prints out some additional debugging information.
|
Prints out some additional debugging information.
|
||||||
.It Fl z
|
.It Fl z
|
||||||
@ -77,7 +77,7 @@ that it corresponds to the currently running system.
|
|||||||
If it passes these checks, it saves the core image in
|
If it passes these checks, it saves the core image in
|
||||||
.Ar directory Ns Pa /vmcore.#
|
.Ar directory Ns Pa /vmcore.#
|
||||||
and the system in
|
and the system in
|
||||||
.Ar directory Ns Pa /vmunix.#
|
.Ar directory Ns Pa /kernel.#
|
||||||
The ``#'' is the number from the first line of the file
|
The ``#'' is the number from the first line of the file
|
||||||
.Ar directory Ns Pa /bounds ,
|
.Ar directory Ns Pa /bounds ,
|
||||||
and it is incremented and stored back into the file each time
|
and it is incremented and stored back into the file each time
|
||||||
@ -107,8 +107,8 @@ is meant to be called near the end of the initialization file
|
|||||||
(see
|
(see
|
||||||
.Xr rc 8 ) .
|
.Xr rc 8 ) .
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /vmunixxx -compact
|
.Bl -tag -width /kernelxx -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
current
|
current
|
||||||
.Tn UNIX
|
.Tn UNIX
|
||||||
.El
|
.El
|
||||||
|
@ -99,7 +99,7 @@ long dumplo; /* where dump starts on dumpdev */
|
|||||||
int dumpmag; /* magic number in dump */
|
int dumpmag; /* magic number in dump */
|
||||||
int dumpsize; /* amount of memory dumped */
|
int dumpsize; /* amount of memory dumped */
|
||||||
|
|
||||||
char *vmunix;
|
char *kernel;
|
||||||
char *dirname; /* directory to save dumps in */
|
char *dirname; /* directory to save dumps in */
|
||||||
char *ddname; /* name of dump device */
|
char *ddname; /* name of dump device */
|
||||||
dev_t dumpdev; /* dump device */
|
dev_t dumpdev; /* dump device */
|
||||||
@ -150,7 +150,7 @@ main(argc, argv)
|
|||||||
force = 1;
|
force = 1;
|
||||||
break;
|
break;
|
||||||
case 'N':
|
case 'N':
|
||||||
vmunix = optarg;
|
kernel = optarg;
|
||||||
break;
|
break;
|
||||||
case 'z':
|
case 'z':
|
||||||
compress = 1;
|
compress = 1;
|
||||||
@ -168,7 +168,7 @@ main(argc, argv)
|
|||||||
dirname = argv[0];
|
dirname = argv[0];
|
||||||
}
|
}
|
||||||
if (argc == 2)
|
if (argc == 2)
|
||||||
vmunix = argv[1];
|
kernel = argv[1];
|
||||||
|
|
||||||
(void)time(&now);
|
(void)time(&now);
|
||||||
kmem_setup();
|
kmem_setup();
|
||||||
@ -221,7 +221,7 @@ kmem_setup()
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
dump_sys = vmunix ? vmunix : _PATH_UNIX;
|
dump_sys = kernel ? kernel : _PATH_UNIX;
|
||||||
if ((nlist(dump_sys, dump_nl)) == -1)
|
if ((nlist(dump_sys, dump_nl)) == -1)
|
||||||
syslog(LOG_ERR, "%s: nlist: %s", dump_sys, strerror(errno));
|
syslog(LOG_ERR, "%s: nlist: %s", dump_sys, strerror(errno));
|
||||||
for (i = 0; dumpsyms[i] != -1; i++)
|
for (i = 0; dumpsyms[i] != -1; i++)
|
||||||
@ -253,7 +253,7 @@ kmem_setup()
|
|||||||
syslog(LOG_ERR, "%s: fdopen: %m", _PATH_KMEM);
|
syslog(LOG_ERR, "%s: fdopen: %m", _PATH_KMEM);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (vmunix)
|
if (kernel)
|
||||||
return;
|
return;
|
||||||
(void)fseek(fp, (off_t)current_nl[X_VERSION].n_value, L_SET);
|
(void)fseek(fp, (off_t)current_nl[X_VERSION].n_value, L_SET);
|
||||||
(void)fgets(vers, sizeof(vers), fp);
|
(void)fgets(vers, sizeof(vers), fp);
|
||||||
@ -275,7 +275,7 @@ check_kmem()
|
|||||||
}
|
}
|
||||||
fseek(fp, (off_t)(dumplo + ok(dump_nl[X_VERSION].n_value)), L_SET);
|
fseek(fp, (off_t)(dumplo + ok(dump_nl[X_VERSION].n_value)), L_SET);
|
||||||
fgets(core_vers, sizeof(core_vers), fp);
|
fgets(core_vers, sizeof(core_vers), fp);
|
||||||
if (strcmp(vers, core_vers) && vmunix == 0)
|
if (strcmp(vers, core_vers) && kernel == 0)
|
||||||
syslog(LOG_WARNING,
|
syslog(LOG_WARNING,
|
||||||
"warning: %s version mismatch:\n\t%s\nand\t%s\n",
|
"warning: %s version mismatch:\n\t%s\nand\t%s\n",
|
||||||
_PATH_UNIX, vers, core_vers);
|
_PATH_UNIX, vers, core_vers);
|
||||||
@ -413,8 +413,8 @@ err2: syslog(LOG_WARNING,
|
|||||||
(void)close(ofd);
|
(void)close(ofd);
|
||||||
|
|
||||||
/* Copy the kernel. */
|
/* Copy the kernel. */
|
||||||
ifd = Open(vmunix ? vmunix : _PATH_UNIX, O_RDONLY);
|
ifd = Open(kernel ? kernel : _PATH_UNIX, O_RDONLY);
|
||||||
(void)snprintf(path, sizeof(path), "%s/vmunix.%d%s",
|
(void)snprintf(path, sizeof(path), "%s/kernel.%d%s",
|
||||||
dirname, bounds, compress ? ".Z" : "");
|
dirname, bounds, compress ? ".Z" : "");
|
||||||
if (compress) {
|
if (compress) {
|
||||||
if ((fp = zopen(path, "w", 0)) == NULL) {
|
if ((fp = zopen(path, "w", 0)) == NULL) {
|
||||||
@ -434,15 +434,15 @@ err2: syslog(LOG_WARNING,
|
|||||||
syslog(LOG_ERR, "%s: %s",
|
syslog(LOG_ERR, "%s: %s",
|
||||||
path, strerror(nw == 0 ? EIO : errno));
|
path, strerror(nw == 0 ? EIO : errno));
|
||||||
syslog(LOG_WARNING,
|
syslog(LOG_WARNING,
|
||||||
"WARNING: vmunix may be incomplete");
|
"WARNING: kernel may be incomplete");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (nr < 0) {
|
if (nr < 0) {
|
||||||
syslog(LOG_ERR, "%s: %s",
|
syslog(LOG_ERR, "%s: %s",
|
||||||
vmunix ? vmunix : _PATH_UNIX, strerror(errno));
|
kernel ? kernel : _PATH_UNIX, strerror(errno));
|
||||||
syslog(LOG_WARNING,
|
syslog(LOG_WARNING,
|
||||||
"WARNING: vmunix may be incomplete");
|
"WARNING: kernel may be incomplete");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (compress)
|
if (compress)
|
||||||
@ -532,18 +532,18 @@ int
|
|||||||
check_space()
|
check_space()
|
||||||
{
|
{
|
||||||
register FILE *fp;
|
register FILE *fp;
|
||||||
char *tvmunix;
|
char *tkernel;
|
||||||
off_t minfree, spacefree, vmunixsize, needed;
|
off_t minfree, spacefree, kernelsize, needed;
|
||||||
struct stat st;
|
struct stat st;
|
||||||
struct statfs fsbuf;
|
struct statfs fsbuf;
|
||||||
char buf[100], path[MAXPATHLEN];
|
char buf[100], path[MAXPATHLEN];
|
||||||
|
|
||||||
tvmunix = vmunix ? vmunix : _PATH_UNIX;
|
tkernel = kernel ? kernel : _PATH_UNIX;
|
||||||
if (stat(tvmunix, &st) < 0) {
|
if (stat(tkernel, &st) < 0) {
|
||||||
syslog(LOG_ERR, "%s: %m", tvmunix);
|
syslog(LOG_ERR, "%s: %m", tkernel);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
vmunixsize = st.st_blocks * S_BLKSIZE;
|
kernelsize = st.st_blocks * S_BLKSIZE;
|
||||||
if (statfs(dirname, &fsbuf) < 0) {
|
if (statfs(dirname, &fsbuf) < 0) {
|
||||||
syslog(LOG_ERR, "%s: %m", dirname);
|
syslog(LOG_ERR, "%s: %m", dirname);
|
||||||
exit(1);
|
exit(1);
|
||||||
@ -561,7 +561,7 @@ check_space()
|
|||||||
(void)fclose(fp);
|
(void)fclose(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
needed = (dumpsize + vmunixsize) / 1024;
|
needed = (dumpsize + kernelsize) / 1024;
|
||||||
if (minfree > 0 && spacefree - needed < minfree) {
|
if (minfree > 0 && spacefree - needed < minfree) {
|
||||||
syslog(LOG_WARNING,
|
syslog(LOG_WARNING,
|
||||||
"no dump, not enough free space on device");
|
"no dump, not enough free space on device");
|
||||||
|
@ -370,7 +370,7 @@ prompt for a kernel file to boot:
|
|||||||
HP433 CPU
|
HP433 CPU
|
||||||
Boot
|
Boot
|
||||||
.R
|
.R
|
||||||
\fB:\fP \fI/vmunix\fP
|
\fB:\fP \fI/kernel\fP
|
||||||
.DE
|
.DE
|
||||||
.LP
|
.LP
|
||||||
After providing the kernel name, the machine will boot \*(4B with
|
After providing the kernel name, the machine will boot \*(4B with
|
||||||
@ -755,7 +755,7 @@ Boot the supplied kernel:
|
|||||||
.DS
|
.DS
|
||||||
.ft CW
|
.ft CW
|
||||||
# halt
|
# halt
|
||||||
ok boot sd(0,3)vmunix -s [for old proms] OR
|
ok boot sd(0,3)kernel -s [for old proms] OR
|
||||||
ok boot disk3 -s [for new proms]
|
ok boot disk3 -s [for new proms]
|
||||||
\&... [\*(4B boot messages]
|
\&... [\*(4B boot messages]
|
||||||
.DE
|
.DE
|
||||||
@ -773,7 +773,7 @@ to set up \*(4B to reboot automatically:
|
|||||||
.DS
|
.DS
|
||||||
.ft CW
|
.ft CW
|
||||||
# halt
|
# halt
|
||||||
ok setenv boot-from sd(0,3)vmunix [for old proms] OR
|
ok setenv boot-from sd(0,3)kernel [for old proms] OR
|
||||||
ok setenv boot-device disk3 [for new proms]
|
ok setenv boot-device disk3 [for new proms]
|
||||||
.DE
|
.DE
|
||||||
If you build backwards-compatible filesystems, either with the SunOS
|
If you build backwards-compatible filesystems, either with the SunOS
|
||||||
@ -857,8 +857,8 @@ tar xf /dev/rmt0
|
|||||||
will extract the following four files:
|
will extract the following four files:
|
||||||
.DS
|
.DS
|
||||||
A) root.image: \fIdd\fP image of the root filesystem
|
A) root.image: \fIdd\fP image of the root filesystem
|
||||||
B) vmunix.tape: \fIdd\fP image for creating boot tapes
|
B) kernel.tape: \fIdd\fP image for creating boot tapes
|
||||||
C) vmunix.net: file for booting over the network
|
C) kernel.net: file for booting over the network
|
||||||
D) root.dump: \fIdump\fP image of the root filesystem
|
D) root.dump: \fIdump\fP image of the root filesystem
|
||||||
.DE
|
.DE
|
||||||
There are three basic ways a system can be bootstrapped corresponding to the
|
There are three basic ways a system can be bootstrapped corresponding to the
|
||||||
@ -886,8 +886,8 @@ following PROM commands. If you are booting on a 3100, the disk must be SCSI
|
|||||||
id zero because of a bug.
|
id zero because of a bug.
|
||||||
.DS
|
.DS
|
||||||
.ft CW
|
.ft CW
|
||||||
DEC 3100: boot \-f rz(0,0,0)vmunix
|
DEC 3100: boot \-f rz(0,0,0)kernel
|
||||||
DEC 5000: boot 5/rz0/vmunix
|
DEC 5000: boot 5/rz0/kernel
|
||||||
.DE
|
.DE
|
||||||
You can then proceed to section 2.5
|
You can then proceed to section 2.5
|
||||||
to create reasonable disk partitions for your machine
|
to create reasonable disk partitions for your machine
|
||||||
@ -903,7 +903,7 @@ First, you will need to create a boot tape. This can be done using
|
|||||||
\fIdd\fP as in the following example.
|
\fIdd\fP as in the following example.
|
||||||
.DS
|
.DS
|
||||||
.ft CW
|
.ft CW
|
||||||
dd if=vmunix.tape of=/dev/nrmt0 bs=1b
|
dd if=kernel.tape of=/dev/nrmt0 bs=1b
|
||||||
dd if=root.dump of=/dev/nrmt0 bs=\*(Bzb
|
dd if=root.dump of=/dev/nrmt0 bs=\*(Bzb
|
||||||
.DE
|
.DE
|
||||||
The actual special file syntax for the tape drive will vary depending on
|
The actual special file syntax for the tape drive will vary depending on
|
||||||
@ -925,15 +925,15 @@ Next you should proceed to section 2.4.3 to build a disk-based root filesystem.
|
|||||||
.PP
|
.PP
|
||||||
You will need a host machine that is running the \fIbootp\fP server
|
You will need a host machine that is running the \fIbootp\fP server
|
||||||
with the
|
with the
|
||||||
.Pn vmunix.net
|
.Pn kernel.net
|
||||||
file installed in the default directory defined by the
|
file installed in the default directory defined by the
|
||||||
configuration file for
|
configuration file for
|
||||||
.Xr bootp .
|
.Xr bootp .
|
||||||
Here are two example PROM commands to boot across the net:
|
Here are two example PROM commands to boot across the net:
|
||||||
.DS
|
.DS
|
||||||
.ft CW
|
.ft CW
|
||||||
DEC 3100: boot \-f tftp()vmunix.net m
|
DEC 3100: boot \-f tftp()kernel.net m
|
||||||
DEC 5000: boot 6/tftp/vmunix.net m
|
DEC 5000: boot 6/tftp/kernel.net m
|
||||||
.DE
|
.DE
|
||||||
This command should load the kernel and mini-root into memory and
|
This command should load the kernel and mini-root into memory and
|
||||||
run the same as the tape install (procedure B).
|
run the same as the tape install (procedure B).
|
||||||
@ -1001,8 +1001,8 @@ When the restore finishes, clean up with:
|
|||||||
Reset the system and initialize the PROM monitor to boot automatically.
|
Reset the system and initialize the PROM monitor to boot automatically.
|
||||||
.DS
|
.DS
|
||||||
.ft CW
|
.ft CW
|
||||||
DEC 3100: setenv bootpath boot \-f rz(0,?,0)vmunix
|
DEC 3100: setenv bootpath boot \-f rz(0,?,0)kernel
|
||||||
DEC 5000: setenv bootpath 5/rz?/vmunix -a
|
DEC 5000: setenv bootpath 5/rz?/kernel -a
|
||||||
.DE
|
.DE
|
||||||
.IP 4)
|
.IP 4)
|
||||||
After booting UNIX, you will need to create
|
After booting UNIX, you will need to create
|
||||||
@ -1370,7 +1370,7 @@ directory is a memory-based filesystem.
|
|||||||
Note that to interleave the paging between the two disks
|
Note that to interleave the paging between the two disks
|
||||||
you must build a system configuration that specifies:
|
you must build a system configuration that specifies:
|
||||||
.DS
|
.DS
|
||||||
config vmunix root on \*(Dk0 swap on \*(Dk0 and \*(Dk1
|
config kernel root on \*(Dk0 swap on \*(Dk0 and \*(Dk1
|
||||||
.DE
|
.DE
|
||||||
The
|
The
|
||||||
.Pn /etc/fstab
|
.Pn /etc/fstab
|
||||||
|
@ -200,24 +200,24 @@ and look at the sample configuration files in the
|
|||||||
directory.
|
directory.
|
||||||
.PP
|
.PP
|
||||||
The configured system image
|
The configured system image
|
||||||
.Pn vmunix
|
.Pn kernel
|
||||||
should be copied to the root, and then booted to try it out.
|
should be copied to the root, and then booted to try it out.
|
||||||
It is best to name it
|
It is best to name it
|
||||||
.Pn /newvmunix
|
.Pn /newkernel
|
||||||
so as not to destroy the working system until you are sure it does work:
|
so as not to destroy the working system until you are sure it does work:
|
||||||
.DS
|
.DS
|
||||||
\fB#\fP \fIcp vmunix /newvmunix\fP
|
\fB#\fP \fIcp kernel /newkernel\fP
|
||||||
\fB#\fP \fIsync\fP
|
\fB#\fP \fIsync\fP
|
||||||
.DE
|
.DE
|
||||||
It is also a good idea to keep the previous system around under some other
|
It is also a good idea to keep the previous system around under some other
|
||||||
name. In particular, we recommend that you save the generic distribution
|
name. In particular, we recommend that you save the generic distribution
|
||||||
version of the system permanently as
|
version of the system permanently as
|
||||||
.Pn /genvmunix
|
.Pn /genkernel
|
||||||
for use in emergencies.
|
for use in emergencies.
|
||||||
To boot the new version of the system you should follow the
|
To boot the new version of the system you should follow the
|
||||||
bootstrap procedures outlined in section 6.1.
|
bootstrap procedures outlined in section 6.1.
|
||||||
After having booted and tested the new system, it should be installed as
|
After having booted and tested the new system, it should be installed as
|
||||||
.Pn /vmunix
|
.Pn /kernel
|
||||||
before going into multiuser operation.
|
before going into multiuser operation.
|
||||||
A systematic scheme for numbering and saving old versions
|
A systematic scheme for numbering and saving old versions
|
||||||
of the system may be useful.
|
of the system may be useful.
|
||||||
|
@ -294,7 +294,7 @@ ftpwelcome
|
|||||||
fts
|
fts
|
||||||
funopen
|
funopen
|
||||||
gcc
|
gcc
|
||||||
genvmunix
|
genkernel
|
||||||
getcap
|
getcap
|
||||||
gettytab
|
gettytab
|
||||||
gid
|
gid
|
||||||
@ -411,7 +411,7 @@ netx25
|
|||||||
newdev
|
newdev
|
||||||
newlfs
|
newlfs
|
||||||
news3400
|
news3400
|
||||||
newvmunix
|
newkernel
|
||||||
nfs
|
nfs
|
||||||
nfsd
|
nfsd
|
||||||
nfsiod
|
nfsiod
|
||||||
@ -590,9 +590,9 @@ vax
|
|||||||
ventel
|
ventel
|
||||||
vfs
|
vfs
|
||||||
vm
|
vm
|
||||||
vmunix
|
kernel
|
||||||
vmunix.net
|
kernel.net
|
||||||
vmunix.tape
|
kernel.tape
|
||||||
vnode
|
vnode
|
||||||
vnodes
|
vnodes
|
||||||
vol
|
vol
|
||||||
|
@ -512,7 +512,7 @@ planning (dreaming) stage.
|
|||||||
The NFS client does include kernel support for diskless/dataless operation
|
The NFS client does include kernel support for diskless/dataless operation
|
||||||
where the root file system and optionally the swap area is remote NFS mounted.
|
where the root file system and optionally the swap area is remote NFS mounted.
|
||||||
A diskless/dataless client is configured using a version of the
|
A diskless/dataless client is configured using a version of the
|
||||||
``swapvmunix.c'' file as provided in the directory \fIcontrib/diskless.nfs\fR.
|
``swapkernel.c'' file as provided in the directory \fIcontrib/diskless.nfs\fR.
|
||||||
If the swap device == NODEV, it specifies an NFS mounted swap area and should
|
If the swap device == NODEV, it specifies an NFS mounted swap area and should
|
||||||
be configured the same size as set up by diskless_setup when run on the server.
|
be configured the same size as set up by diskless_setup when run on the server.
|
||||||
This file must be put in the \fIsys/compile/<machine_name>\fR kernel build
|
This file must be put in the \fIsys/compile/<machine_name>\fR kernel build
|
||||||
@ -529,7 +529,7 @@ flexibility when setting up different servers.
|
|||||||
.lp
|
.lp
|
||||||
The tools are as follows:
|
The tools are as follows:
|
||||||
.ip \(bu
|
.ip \(bu
|
||||||
diskless_offset.c - This little program reads a ``vmunix'' object file and
|
diskless_offset.c - This little program reads a ``kernel'' object file and
|
||||||
writes the file byte offset of the nfs_diskless structure in it to
|
writes the file byte offset of the nfs_diskless structure in it to
|
||||||
standard out. It was kept separate because it sometimes has to
|
standard out. It was kept separate because it sometimes has to
|
||||||
be compiled/linked in funny ways depending on the client architecture.
|
be compiled/linked in funny ways depending on the client architecture.
|
||||||
@ -537,47 +537,47 @@ be compiled/linked in funny ways depending on the client architecture.
|
|||||||
.ip \(bu
|
.ip \(bu
|
||||||
diskless_setup.c - This program is run on the server and sets up files for a
|
diskless_setup.c - This program is run on the server and sets up files for a
|
||||||
given client. It mostly just fills in an nfs_diskless structure and
|
given client. It mostly just fills in an nfs_diskless structure and
|
||||||
writes it out to either the "vmunix" file or a separate file called
|
writes it out to either the "kernel" file or a separate file called
|
||||||
/var/diskless/setup.<official-hostname>
|
/var/diskless/setup.<official-hostname>
|
||||||
.ip \(bu
|
.ip \(bu
|
||||||
diskless_boot.c - There are two functions in here that may be used
|
diskless_boot.c - There are two functions in here that may be used
|
||||||
by a bootstrap server such as tftpd to permit sharing of the ``vmunix''
|
by a bootstrap server such as tftpd to permit sharing of the ``kernel''
|
||||||
object file for similar clients. This saves disk space on the bootstrap
|
object file for similar clients. This saves disk space on the bootstrap
|
||||||
server and simplify organization, but are not critical for correct operation.
|
server and simplify organization, but are not critical for correct operation.
|
||||||
They read the ``vmunix''
|
They read the ``kernel''
|
||||||
file, but optionally fill in the nfs_diskless structure from a
|
file, but optionally fill in the nfs_diskless structure from a
|
||||||
separate "setup.<official-hostname>" file so that there is only
|
separate "setup.<official-hostname>" file so that there is only
|
||||||
one copy of "vmunix" for all similar (same arch etc.) clients.
|
one copy of "kernel" for all similar (same arch etc.) clients.
|
||||||
These functions use a text file called
|
These functions use a text file called
|
||||||
/var/diskless/boot.<official-hostname> to control the netboot.
|
/var/diskless/boot.<official-hostname> to control the netboot.
|
||||||
.lp
|
.lp
|
||||||
The basic setup steps are:
|
The basic setup steps are:
|
||||||
.ip \(bu
|
.ip \(bu
|
||||||
make a "vmunix" for the client(s) with mountroot() == nfs_mountroot()
|
make a "kernel" for the client(s) with mountroot() == nfs_mountroot()
|
||||||
and swdevt[0].sw_dev == NODEV if it is to do nfs swapping as well
|
and swdevt[0].sw_dev == NODEV if it is to do nfs swapping as well
|
||||||
(See the same swapvmunix.c file)
|
(See the same swapkernel.c file)
|
||||||
.ip \(bu
|
.ip \(bu
|
||||||
run diskless_offset on the vmunix file to find out the byte offset
|
run diskless_offset on the kernel file to find out the byte offset
|
||||||
of the nfs_diskless structure
|
of the nfs_diskless structure
|
||||||
.ip \(bu
|
.ip \(bu
|
||||||
Run diskless_setup on the server to set up the server and fill in the
|
Run diskless_setup on the server to set up the server and fill in the
|
||||||
nfs_diskless structure for that client.
|
nfs_diskless structure for that client.
|
||||||
The nfs_diskless structure can either be written into the
|
The nfs_diskless structure can either be written into the
|
||||||
vmunix file (the -x option) or
|
kernel file (the -x option) or
|
||||||
saved in /var/diskless/setup.<official-hostname>.
|
saved in /var/diskless/setup.<official-hostname>.
|
||||||
.ip \(bu
|
.ip \(bu
|
||||||
Set up the bootstrap server. If the nfs_diskless structure was written into
|
Set up the bootstrap server. If the nfs_diskless structure was written into
|
||||||
the ``vmunix'' file, any vanilla bootstrap protocol such as bootp/tftp can
|
the ``kernel'' file, any vanilla bootstrap protocol such as bootp/tftp can
|
||||||
be used. If the bootstrap server has been modified to use the functions in
|
be used. If the bootstrap server has been modified to use the functions in
|
||||||
diskless_boot.c, then a
|
diskless_boot.c, then a
|
||||||
file called /var/diskless/boot.<official-hostname>
|
file called /var/diskless/boot.<official-hostname>
|
||||||
must be created.
|
must be created.
|
||||||
It is simply a two line text file, where the first line is the pathname
|
It is simply a two line text file, where the first line is the pathname
|
||||||
of the correct ``vmunix'' file and the second line has the pathname of
|
of the correct ``kernel'' file and the second line has the pathname of
|
||||||
the nfs_diskless structure file and its byte offset in it.
|
the nfs_diskless structure file and its byte offset in it.
|
||||||
For example:
|
For example:
|
||||||
.br
|
.br
|
||||||
/var/diskless/vmunix.pmax
|
/var/diskless/kernel.pmax
|
||||||
.br
|
.br
|
||||||
/var/diskless/setup.rickers.cis.uoguelph.ca 642308
|
/var/diskless/setup.rickers.cis.uoguelph.ca 642308
|
||||||
.br
|
.br
|
||||||
|
@ -368,7 +368,7 @@ commonly ~uucp; public uucp temporary directory
|
|||||||
.It Li tmp/
|
.It Li tmp/
|
||||||
temporary files that are kept between system reboots
|
temporary files that are kept between system reboots
|
||||||
.El
|
.El
|
||||||
.It Li /vmunix
|
.It Li /kernel
|
||||||
pure kernel executable (the operating system loaded into memory
|
pure kernel executable (the operating system loaded into memory
|
||||||
at boot time).
|
at boot time).
|
||||||
.El
|
.El
|
||||||
|
@ -1059,7 +1059,7 @@ vk
|
|||||||
vlp
|
vlp
|
||||||
vlpmacs
|
vlpmacs
|
||||||
vmcore
|
vmcore
|
||||||
vmunix
|
kernel
|
||||||
vol
|
vol
|
||||||
vpd
|
vpd
|
||||||
vpf
|
vpf
|
||||||
@ -1570,7 +1570,7 @@ tzp
|
|||||||
uio.h
|
uio.h
|
||||||
usec
|
usec
|
||||||
vec
|
vec
|
||||||
vmunix
|
kernel
|
||||||
wait.h
|
wait.h
|
||||||
writefds
|
writefds
|
||||||
writen
|
writen
|
||||||
@ -2526,7 +2526,7 @@ vidnorm
|
|||||||
vlimit.3c
|
vlimit.3c
|
||||||
vlimit.h
|
vlimit.h
|
||||||
vm
|
vm
|
||||||
vmunix
|
kernel
|
||||||
vrbose
|
vrbose
|
||||||
vtimes.3c
|
vtimes.3c
|
||||||
vtimes.h
|
vtimes.h
|
||||||
@ -3931,7 +3931,7 @@ vaxif
|
|||||||
vaxmba
|
vaxmba
|
||||||
vaxuba
|
vaxuba
|
||||||
versatec
|
versatec
|
||||||
vmunix
|
kernel
|
||||||
vpacct
|
vpacct
|
||||||
vv.c
|
vv.c
|
||||||
wd
|
wd
|
||||||
@ -4564,8 +4564,8 @@ vipw
|
|||||||
vipw.8
|
vipw.8
|
||||||
vmcore
|
vmcore
|
||||||
vmcore.n
|
vmcore.n
|
||||||
vmunix
|
kernel
|
||||||
vmunix.n
|
kernel.n
|
||||||
whod
|
whod
|
||||||
whoent
|
whoent
|
||||||
xfc
|
xfc
|
||||||
|
@ -72,7 +72,7 @@ instead of the default
|
|||||||
.Pa /dev/kmem .
|
.Pa /dev/kmem .
|
||||||
.It Fl N
|
.It Fl N
|
||||||
Extract the name list from the specified system instead of the default
|
Extract the name list from the specified system instead of the default
|
||||||
.Pa /vmunix .
|
.Pa /kernel .
|
||||||
.It Fl n
|
.It Fl n
|
||||||
Numerical format. Print the device number (maj,min) of the filesystem
|
Numerical format. Print the device number (maj,min) of the filesystem
|
||||||
the file resides in rather than the mount point name; for special
|
the file resides in rather than the mount point name; for special
|
||||||
|
@ -145,7 +145,7 @@ Show statistics recorded by the memory management routines
|
|||||||
(the network manages a private pool of memory buffers).
|
(the network manages a private pool of memory buffers).
|
||||||
.It Fl N
|
.It Fl N
|
||||||
Extract the name list from the specified system instead of the default
|
Extract the name list from the specified system instead of the default
|
||||||
.Pa /vmunix .
|
.Pa /kernel .
|
||||||
.It Fl n
|
.It Fl n
|
||||||
Show network addresses as numbers (normally
|
Show network addresses as numbers (normally
|
||||||
.Nm netstat
|
.Nm netstat
|
||||||
@ -280,7 +280,7 @@ command appeared in
|
|||||||
.Bx 4.2 .
|
.Bx 4.2 .
|
||||||
.\" .Sh FILES
|
.\" .Sh FILES
|
||||||
.\" .Bl -tag -width /dev/kmem -compact
|
.\" .Bl -tag -width /dev/kmem -compact
|
||||||
.\" .It Pa /vmunix
|
.\" .It Pa /kernel
|
||||||
.\" default kernel namelist
|
.\" default kernel namelist
|
||||||
.\" .It Pa /dev/kmem
|
.\" .It Pa /dev/kmem
|
||||||
.\" default memory file
|
.\" default memory file
|
||||||
|
@ -58,7 +58,7 @@ instead of the default
|
|||||||
.Pa /dev/kmem .
|
.Pa /dev/kmem .
|
||||||
.It Fl N
|
.It Fl N
|
||||||
Extract the name list from the specified system instead of the default
|
Extract the name list from the specified system instead of the default
|
||||||
.Pa /vmunix .
|
.Pa /kernel .
|
||||||
.It Fl w
|
.It Fl w
|
||||||
Display a shorter summary of
|
Display a shorter summary of
|
||||||
.Tn NFS
|
.Tn NFS
|
||||||
@ -68,7 +68,7 @@ second intervals.
|
|||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /dev/kmem -compact
|
.Bl -tag -width /dev/kmem -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
default kernel namelist
|
default kernel namelist
|
||||||
.It Pa /dev/kmem
|
.It Pa /dev/kmem
|
||||||
default memory file
|
default memory file
|
||||||
|
@ -396,7 +396,7 @@ may be specified, separated by spaces.
|
|||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /etc/networks -compact
|
.Bl -tag -width /etc/networks -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
For the namelist.
|
For the namelist.
|
||||||
.It Pa /dev/kmem
|
.It Pa /dev/kmem
|
||||||
For information in main memory.
|
For information in main memory.
|
||||||
|
@ -139,7 +139,7 @@ Worked over many times by W.Sebok
|
|||||||
.RI ( i . e .
|
.RI ( i . e .
|
||||||
hacked to death)
|
hacked to death)
|
||||||
.SH FILES
|
.SH FILES
|
||||||
/dev/kmem, /vmunix, /etc/ttys, /etc/utmp, /dev/tty*
|
/dev/kmem, /kernel, /etc/ttys, /etc/utmp, /dev/tty*
|
||||||
.SH BUGS
|
.SH BUGS
|
||||||
.PP
|
.PP
|
||||||
Sensing carrier requires the 4.2 BSD TIOCMGET ioctl call. Unfortunately this
|
Sensing carrier requires the 4.2 BSD TIOCMGET ioctl call. Unfortunately this
|
||||||
|
@ -78,7 +78,7 @@ instead of the default ``/dev/kmem''.
|
|||||||
.TP
|
.TP
|
||||||
\-N
|
\-N
|
||||||
Extract the name list from the specified system instead of the default
|
Extract the name list from the specified system instead of the default
|
||||||
``/vmunix''.
|
``/kernel''.
|
||||||
.TP
|
.TP
|
||||||
\-m
|
\-m
|
||||||
Report on the usage of kernel dynamic memory listed first by size of
|
Report on the usage of kernel dynamic memory listed first by size of
|
||||||
@ -188,7 +188,7 @@ Others vary every second and running the output for a while will make it
|
|||||||
apparent which are recomputed every second.
|
apparent which are recomputed every second.
|
||||||
.SH FILES
|
.SH FILES
|
||||||
.ta \w'/dev/kmem 'u
|
.ta \w'/dev/kmem 'u
|
||||||
/vmunix default kernel namelist
|
/kernel default kernel namelist
|
||||||
.br
|
.br
|
||||||
/dev/kmem default memory file
|
/dev/kmem default memory file
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
|
@ -47,8 +47,8 @@ the length of time the system has been up,
|
|||||||
the number of users, and the load average of the system over the last
|
the number of users, and the load average of the system over the last
|
||||||
1, 5, and 15 minutes.
|
1, 5, and 15 minutes.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /vmunix
|
.Bl -tag -width /kernel
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
system name list
|
system name list
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
|
@ -72,7 +72,7 @@ core instead of the default
|
|||||||
.It Fl N
|
.It Fl N
|
||||||
Extract the name list from the specified system instead of the
|
Extract the name list from the specified system instead of the
|
||||||
default
|
default
|
||||||
.Dq /vmunix .
|
.Dq /kernel .
|
||||||
.It Fl n
|
.It Fl n
|
||||||
Show network addresses as numbers (normally
|
Show network addresses as numbers (normally
|
||||||
.Nm w
|
.Nm w
|
||||||
|
@ -73,7 +73,7 @@ int kmem;
|
|||||||
int supplier; /* process should supply updates */
|
int supplier; /* process should supply updates */
|
||||||
int install; /* if 1 call kernel */
|
int install; /* if 1 call kernel */
|
||||||
int lookforinterfaces; /* if 1 probe kernel for new up interfaces */
|
int lookforinterfaces; /* if 1 probe kernel for new up interfaces */
|
||||||
int performnlist; /* if 1 check if /vmunix has changed */
|
int performnlist; /* if 1 check if /kernel has changed */
|
||||||
int externalinterfaces; /* # of remote and local interfaces */
|
int externalinterfaces; /* # of remote and local interfaces */
|
||||||
int timeval; /* local idea of time */
|
int timeval; /* local idea of time */
|
||||||
int noteremoterequests; /* squawk on requests from non-local nets */
|
int noteremoterequests; /* squawk on requests from non-local nets */
|
||||||
|
@ -172,7 +172,7 @@ errors, or the special
|
|||||||
.Tn SSE
|
.Tn SSE
|
||||||
(skip sector) errors of RM80-type disks.
|
(skip sector) errors of RM80-type disks.
|
||||||
This means that none of these errors can occur when reading the file
|
This means that none of these errors can occur when reading the file
|
||||||
.Pa /vmunix
|
.Pa /kernel
|
||||||
to boot. Sectors 0-15 of the disk drive
|
to boot. Sectors 0-15 of the disk drive
|
||||||
must also not have any of these errors.
|
must also not have any of these errors.
|
||||||
.Pp
|
.Pp
|
||||||
|
@ -63,7 +63,7 @@ struct nvlist {
|
|||||||
*/
|
*/
|
||||||
struct config {
|
struct config {
|
||||||
struct config *cf_next; /* linked list */
|
struct config *cf_next; /* linked list */
|
||||||
const char *cf_name; /* "vmunix" */
|
const char *cf_name; /* "kernel" */
|
||||||
int cf_lineno; /* source line */
|
int cf_lineno; /* source line */
|
||||||
struct nvlist *cf_root; /* "root on ra0a" */
|
struct nvlist *cf_root; /* "root on ra0a" */
|
||||||
struct nvlist *cf_swap; /* "swap on ra0b and ra1b" */
|
struct nvlist *cf_swap; /* "swap on ra0b and ra1b" */
|
||||||
|
@ -194,17 +194,17 @@ Building the system
|
|||||||
The makefile constructed by
|
The makefile constructed by
|
||||||
.I config
|
.I config
|
||||||
should allow a new system to be rebuilt by simply typing ``make image-name''.
|
should allow a new system to be rebuilt by simply typing ``make image-name''.
|
||||||
For example, if you have named your bootable system image ``vmunix'',
|
For example, if you have named your bootable system image ``kernel'',
|
||||||
then ``make vmunix''
|
then ``make kernel''
|
||||||
will generate a bootable image named ``vmunix''. Alternate system image names
|
will generate a bootable image named ``kernel''. Alternate system image names
|
||||||
are used when the root file system location and/or swapping configuration
|
are used when the root file system location and/or swapping configuration
|
||||||
is done in more than one way. The makefile which
|
is done in more than one way. The makefile which
|
||||||
.I config
|
.I config
|
||||||
creates has entry points for each system image defined in
|
creates has entry points for each system image defined in
|
||||||
the configuration file.
|
the configuration file.
|
||||||
Thus, if you have configured ``vmunix'' to be a system with the root file
|
Thus, if you have configured ``kernel'' to be a system with the root file
|
||||||
system on an ``hp'' device and ``hkvmunix'' to be a system with the root
|
system on an ``hp'' device and ``hkkernel'' to be a system with the root
|
||||||
file system on an ``hk'' device, then ``make vmunix hkvmunix'' will generate
|
file system on an ``hk'' device, then ``make kernel hkkernel'' will generate
|
||||||
binary images for each.
|
binary images for each.
|
||||||
As the system will generally use the disk from which it is loaded
|
As the system will generally use the disk from which it is loaded
|
||||||
as the root filesystem, separate system images are only required
|
as the root filesystem, separate system images are only required
|
||||||
@ -225,8 +225,8 @@ This is advantageous for programs such as
|
|||||||
which run much faster when the symbols they need are located at
|
which run much faster when the symbols they need are located at
|
||||||
the front of the symbol table.
|
the front of the symbol table.
|
||||||
Remember also that many programs expect
|
Remember also that many programs expect
|
||||||
the currently executing system to be named ``/vmunix''. If you install
|
the currently executing system to be named ``/kernel''. If you install
|
||||||
a new system and name it something other than ``/vmunix'', many programs
|
a new system and name it something other than ``/kernel'', many programs
|
||||||
are likely to give strange results.
|
are likely to give strange results.
|
||||||
.NH 2
|
.NH 2
|
||||||
Sharing object modules
|
Sharing object modules
|
||||||
|
@ -150,7 +150,7 @@ with a ``config'' line:
|
|||||||
The
|
The
|
||||||
.I sysname
|
.I sysname
|
||||||
field is the name given to the loaded system image; almost everyone
|
field is the name given to the loaded system image; almost everyone
|
||||||
names their standard system image ``vmunix''. The configuration clauses
|
names their standard system image ``kernel''. The configuration clauses
|
||||||
are one or more specifications indicating where the root file system
|
are one or more specifications indicating where the root file system
|
||||||
is located and the number and location of paging devices.
|
is located and the number and location of paging devices.
|
||||||
The device used by the system to process argument lists during
|
The device used by the system to process argument lists during
|
||||||
@ -218,7 +218,7 @@ This is done by substituting
|
|||||||
where the device name would normally be found. For example,
|
where the device name would normally be found. For example,
|
||||||
.IP
|
.IP
|
||||||
.nf
|
.nf
|
||||||
\fBconfig\fP vmunix \fBroot\fP \fBon\fP \fBmajor\fP 99 \fBminor\fP 1
|
\fBconfig\fP kernel \fBroot\fP \fBon\fP \fBmajor\fP 99 \fBminor\fP 1
|
||||||
.fi
|
.fi
|
||||||
.PP
|
.PP
|
||||||
Normally, the areas configured for swap space are sized by the system
|
Normally, the areas configured for swap space are sized by the system
|
||||||
@ -229,7 +229,7 @@ device name specified for a swap area should have a ``size''
|
|||||||
specification appended. For example,
|
specification appended. For example,
|
||||||
.IP
|
.IP
|
||||||
.nf
|
.nf
|
||||||
\fBconfig\fP vmunix \fBroot\fP \fBon\fP hp0 \fBswap\fP \fBon\fP hp0b \fBsize\fP 1200
|
\fBconfig\fP kernel \fBroot\fP \fBon\fP hp0 \fBswap\fP \fBon\fP hp0b \fBsize\fP 1200
|
||||||
.fi
|
.fi
|
||||||
.LP
|
.LP
|
||||||
would force swapping to be done in partition ``b'' of ``hp0'' and
|
would force swapping to be done in partition ``b'' of ``hp0'' and
|
||||||
|
@ -109,9 +109,9 @@ Finally, the third will be a generic system,
|
|||||||
to allow us to boot off any of the four disk drives.
|
to allow us to boot off any of the four disk drives.
|
||||||
.DS
|
.DS
|
||||||
.ta 1.5i 2.5i
|
.ta 1.5i 2.5i
|
||||||
config vmunix root on hp0
|
config kernel root on hp0
|
||||||
config hpvmunix root on hp0 swap on hp0 and hp2
|
config hpkernel root on hp0 swap on hp0 and hp2
|
||||||
config genvmunix swap generic
|
config genkernel swap generic
|
||||||
.DE
|
.DE
|
||||||
.PP
|
.PP
|
||||||
Finally, the hardware must be specified. Let us first just try
|
Finally, the hardware must be specified. Let us first just try
|
||||||
@ -206,9 +206,9 @@ the network protocol options do not require corresponding pseudo devices.
|
|||||||
The system images and disks are configured next.
|
The system images and disks are configured next.
|
||||||
.DS
|
.DS
|
||||||
.ta 1.5i 2.5i 4.0i
|
.ta 1.5i 2.5i 4.0i
|
||||||
config vmunix root on hp swap on hp and rk0 and rk1
|
config kernel root on hp swap on hp and rk0 and rk1
|
||||||
config upvmunix root on up
|
config upkernel root on up
|
||||||
config hkvmunix root on hk swap on rk0 and rk1
|
config hkkernel root on hk swap on rk0 and rk1
|
||||||
|
|
||||||
controller mba0 at nexus ?
|
controller mba0 at nexus ?
|
||||||
controller uba0 at nexus ?
|
controller uba0 at nexus ?
|
||||||
|
@ -110,7 +110,7 @@ the dump. The \fIsavecore\fP\|(8)
|
|||||||
program then copies the information from the dump partition to
|
program then copies the information from the dump partition to
|
||||||
a file in a ``crash'' directory and also makes a copy of the
|
a file in a ``crash'' directory and also makes a copy of the
|
||||||
system which was running at the time of the crash (usually
|
system which was running at the time of the crash (usually
|
||||||
``/vmunix''). The offset to the system dump is defined in the
|
``/kernel''). The offset to the system dump is defined in the
|
||||||
system variable \fIdumplo\fP (a sector offset from
|
system variable \fIdumplo\fP (a sector offset from
|
||||||
the front of the dump partition). The
|
the front of the dump partition). The
|
||||||
.I savecore
|
.I savecore
|
||||||
|
@ -55,9 +55,9 @@ timezone 8 dst
|
|||||||
ident ANSEL
|
ident ANSEL
|
||||||
maxusers 40
|
maxusers 40
|
||||||
|
|
||||||
config vmunix root on hp0
|
config kernel root on hp0
|
||||||
config hpvmunix root on hp0 swap on hp0 and hp2
|
config hpkernel root on hp0 swap on hp0 and hp2
|
||||||
config genvmunix swap generic
|
config genkernel swap generic
|
||||||
|
|
||||||
controller mba0 at nexus ?
|
controller mba0 at nexus ?
|
||||||
disk hp0 at mba? disk ?
|
disk hp0 at mba? disk ?
|
||||||
@ -86,9 +86,9 @@ maxusers 32
|
|||||||
options INET
|
options INET
|
||||||
options NS
|
options NS
|
||||||
|
|
||||||
config vmunix root on hp swap on hp and rk0 and rk1
|
config kernel root on hp swap on hp and rk0 and rk1
|
||||||
config upvmunix root on up
|
config upkernel root on up
|
||||||
config hkvmunix root on hk swap on rk0 and rk1
|
config hkkernel root on hk swap on rk0 and rk1
|
||||||
|
|
||||||
controller mba0 at nexus ?
|
controller mba0 at nexus ?
|
||||||
controller uba0 at nexus ?
|
controller uba0 at nexus ?
|
||||||
|
@ -157,7 +157,7 @@ files.machine
|
|||||||
filesystem
|
filesystem
|
||||||
foo
|
foo
|
||||||
foo.c
|
foo.c
|
||||||
genvmunix
|
genkernel
|
||||||
gettimeofday
|
gettimeofday
|
||||||
gigabytes
|
gigabytes
|
||||||
gprof
|
gprof
|
||||||
@ -165,14 +165,14 @@ hardwired
|
|||||||
hd
|
hd
|
||||||
hk
|
hk
|
||||||
hk0
|
hk0
|
||||||
hkvmunix
|
hkkernel
|
||||||
howmany
|
howmany
|
||||||
hp0
|
hp0
|
||||||
hp0b
|
hp0b
|
||||||
hp1
|
hp1
|
||||||
hp2
|
hp2
|
||||||
hp3
|
hp3
|
||||||
hpvmunix
|
hpkernel
|
||||||
ht0
|
ht0
|
||||||
hz
|
hz
|
||||||
ident
|
ident
|
||||||
@ -288,7 +288,7 @@ upminfo
|
|||||||
upprobe
|
upprobe
|
||||||
upslave
|
upslave
|
||||||
upstd
|
upstd
|
||||||
upvmunix
|
upkernel
|
||||||
upwatch
|
upwatch
|
||||||
upwstart
|
upwstart
|
||||||
value,name2
|
value,name2
|
||||||
@ -298,7 +298,7 @@ vaxif
|
|||||||
vaxmba
|
vaxmba
|
||||||
vaxuba
|
vaxuba
|
||||||
vmparam.h
|
vmparam.h
|
||||||
vmunix
|
kernel
|
||||||
wildcard
|
wildcard
|
||||||
wildcarded
|
wildcarded
|
||||||
wildcarding
|
wildcarding
|
||||||
|
@ -70,7 +70,7 @@ instead of the default
|
|||||||
.Dq Pa /dev/kmem .
|
.Dq Pa /dev/kmem .
|
||||||
.It Fl N
|
.It Fl N
|
||||||
Extract the name list from the specified system instead of the default
|
Extract the name list from the specified system instead of the default
|
||||||
.Dq Pa /vmunix .
|
.Dq Pa /kernel .
|
||||||
.It Fl w
|
.It Fl w
|
||||||
Pause
|
Pause
|
||||||
.Ar wait
|
.Ar wait
|
||||||
@ -124,7 +124,7 @@ seeks and rotational latency)
|
|||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /dev/kmem -compact
|
.Bl -tag -width /dev/kmem -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
Default kernel namelist.
|
Default kernel namelist.
|
||||||
.It Pa /dev/kmem
|
.It Pa /dev/kmem
|
||||||
Default memory file.
|
Default memory file.
|
||||||
|
@ -82,7 +82,7 @@ Extract values associated with the name list from the specified core
|
|||||||
instead of the default ``/dev/kmem''.
|
instead of the default ``/dev/kmem''.
|
||||||
.It Fl N
|
.It Fl N
|
||||||
Extract the name list from the specified system instead of the
|
Extract the name list from the specified system instead of the
|
||||||
default ``/vmunix''.
|
default ``/kernel''.
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
If neither
|
If neither
|
||||||
@ -98,7 +98,7 @@ the operating system profile buffers will be dumped,
|
|||||||
and profiling will be immediately resumed.
|
and profiling will be immediately resumed.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /dev/kmemx -compact
|
.Bl -tag -width /dev/kmemx -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
the default system
|
the default system
|
||||||
.It Pa /dev/kmem
|
.It Pa /dev/kmem
|
||||||
the default memory
|
the default memory
|
||||||
|
@ -46,7 +46,7 @@ creates a database in
|
|||||||
.Pa /var/db
|
.Pa /var/db
|
||||||
containing information about the specified file.
|
containing information about the specified file.
|
||||||
If no file is specified,
|
If no file is specified,
|
||||||
.Pa /vmunix
|
.Pa /kernel
|
||||||
is used by default.
|
is used by default.
|
||||||
The file is named ``kvm_filename.db'', where ``filename'' is the
|
The file is named ``kvm_filename.db'', where ``filename'' is the
|
||||||
name of the file read.
|
name of the file read.
|
||||||
@ -57,9 +57,9 @@ used by the
|
|||||||
function, however, in the future the database may contain other static
|
function, however, in the future the database may contain other static
|
||||||
information about the current system.
|
information about the current system.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /var/db/kvm_vmunix.db -compact
|
.Bl -tag -width /var/db/kvm_kernel.db -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
.It Pa /var/db/kvm_vmunix.db
|
.It Pa /var/db/kvm_kernel.db
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr kvm_nlist 3
|
.Xr kvm_nlist 3
|
||||||
|
@ -53,7 +53,7 @@ is given, the information is sought there, otherwise
|
|||||||
in
|
in
|
||||||
.Pa /dev/kmem .
|
.Pa /dev/kmem .
|
||||||
The required namelist is taken from
|
The required namelist is taken from
|
||||||
.Pa /vmunix
|
.Pa /kernel
|
||||||
unless
|
unless
|
||||||
.Ar system
|
.Ar system
|
||||||
is specified.
|
is specified.
|
||||||
@ -294,7 +294,7 @@ major and minor device of special file.
|
|||||||
.El
|
.El
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /dev/kmemxxx -compact
|
.Bl -tag -width /dev/kmemxxx -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
namelist
|
namelist
|
||||||
.It Pa /dev/kmem
|
.It Pa /dev/kmem
|
||||||
default source of tables
|
default source of tables
|
||||||
|
@ -76,7 +76,7 @@ int kmem;
|
|||||||
int supplier; /* process should supply updates */
|
int supplier; /* process should supply updates */
|
||||||
int install; /* if 1 call kernel */
|
int install; /* if 1 call kernel */
|
||||||
int lookforinterfaces; /* if 1 probe kernel for new up interfaces */
|
int lookforinterfaces; /* if 1 probe kernel for new up interfaces */
|
||||||
int performnlist; /* if 1 check if /vmunix has changed */
|
int performnlist; /* if 1 check if /kernel has changed */
|
||||||
int externalinterfaces; /* # of remote and local interfaces */
|
int externalinterfaces; /* # of remote and local interfaces */
|
||||||
struct timeval now; /* current idea of time */
|
struct timeval now; /* current idea of time */
|
||||||
struct timeval lastbcast; /* last time all/changes broadcast */
|
struct timeval lastbcast; /* last time all/changes broadcast */
|
||||||
|
@ -126,7 +126,7 @@ Status messages are generated approximately once every
|
|||||||
performs an
|
performs an
|
||||||
.Xr nlist 3
|
.Xr nlist 3
|
||||||
on
|
on
|
||||||
.Pa /vmunix
|
.Pa /kernel
|
||||||
every 30 minutes to guard against
|
every 30 minutes to guard against
|
||||||
the possibility that this file is not the system
|
the possibility that this file is not the system
|
||||||
image currently operating.
|
image currently operating.
|
||||||
|
@ -653,7 +653,7 @@ init_md(argc, argv)
|
|||||||
# if defined(SYSTEM5)
|
# if defined(SYSTEM5)
|
||||||
# define _PATH_UNIX "/unix"
|
# define _PATH_UNIX "/unix"
|
||||||
# else
|
# else
|
||||||
# define _PATH_UNIX "/vmunix"
|
# define _PATH_UNIX "/kernel"
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -428,7 +428,7 @@ printsys(msg)
|
|||||||
int c, pri, flags;
|
int c, pri, flags;
|
||||||
char *lp, *p, *q, line[MAXLINE + 1];
|
char *lp, *p, *q, line[MAXLINE + 1];
|
||||||
|
|
||||||
(void)strcpy(line, "vmunix: ");
|
(void)strcpy(line, "kernel: ");
|
||||||
lp = line + strlen(line);
|
lp = line + strlen(line);
|
||||||
for (p = msg; *p != '\0'; ) {
|
for (p = msg; *p != '\0'; ) {
|
||||||
flags = SYNC_FILE | ADDDATE; /* fsync file after write */
|
flags = SYNC_FILE | ADDDATE; /* fsync file after write */
|
||||||
|
@ -124,7 +124,7 @@ core file other than the default, the last two
|
|||||||
arguments may be used to supplant the defaults.
|
arguments may be used to supplant the defaults.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /dev/kmem -compact
|
.Bl -tag -width /dev/kmem -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
.It Pa /dev/kmem
|
.It Pa /dev/kmem
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
|
@ -116,7 +116,7 @@ core file other than the default, the last two
|
|||||||
arguments may be used to supplant the defaults.
|
arguments may be used to supplant the defaults.
|
||||||
.Sh FILES
|
.Sh FILES
|
||||||
.Bl -tag -width /dev/kmem -compact
|
.Bl -tag -width /dev/kmem -compact
|
||||||
.It Pa /vmunix
|
.It Pa /kernel
|
||||||
.It Pa /dev/kmem
|
.It Pa /dev/kmem
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
|
Loading…
Reference in New Issue
Block a user