xref: /netbsd-src/share/man/man8/man8.hp300/boot.8 (revision 839a072b215b7e118dbc42d1d410a87ab556409b)
1.\"	$NetBSD: boot.8,v 1.9 2008/09/24 20:07:05 reed Exp $
2.\"
3.\" Copyright (c) 1990, 1991, 1993
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" This code is derived from software contributed to Berkeley by
7.\" the Systems Programming Group of the University of Utah Computer
8.\" Science Department.
9.\"
10.\" Redistribution and use in source and binary forms, with or without
11.\" modification, are permitted provided that the following conditions
12.\" are met:
13.\" 1. Redistributions of source code must retain the above copyright
14.\"    notice, this list of conditions and the following disclaimer.
15.\" 2. Redistributions in binary form must reproduce the above copyright
16.\"    notice, this list of conditions and the following disclaimer in the
17.\"    documentation and/or other materials provided with the distribution.
18.\" 3. Neither the name of the University nor the names of its contributors
19.\"    may be used to endorse or promote products derived from this software
20.\"    without specific prior written permission.
21.\"
22.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32.\" SUCH DAMAGE.
33.\"
34.\"	@(#)boot_hp300.8	8.2 (Berkeley) 4/19/94
35.\"
36.Dd April 19, 1994
37.Dt BOOT 8 hp300
38.Os
39.Sh NAME
40.Nm boot
41.Nd
42system bootstrapping procedures
43.Sh DESCRIPTION
44.Ss Power fail and crash recovery
45Normally, the system will reboot itself at power-up or after crashes.
46An automatic consistency check of the file systems will be performed,
47and unless this fails, the system will resume multi-user operations.
48.Pp
49.Ss Cold starts
50On an HP300, the boot procedure uses the boot ROM to load a boot program
51from an
52.Tn LIF
53format directory at the beginning of an attached disk.
54The
55.Pa /usr/mdec
56directory contains a disk boot programs which should be placed in a
57new pack automatically by
58.Xr newfs 8
59when the
60.Dq a
61partition file system on the pack is created.
62.Pp
63This
64.Em boot
65program
66finds the corresponding file on the given device
67.Pf ( Ar netbsd
68by default),
69loads that file into memory,
70and starts the program at the entry address specified in the program header.
71.Pp
72The boot program can be interrupted by typing
73.Sq \&^C
74(ctrl-C).
75This will force the boot program to interactively prompt for a system to boot.
76If not interrupted, it will boot from the device from which the boot
77program itself was loaded.
78.Pp
79The file specifications used for an interactive boot are of the form:
80.Pp
81.Dl device(unit, minor)
82.Pp
83where
84.Ar device
85is the type of the device to be searched,
86.Ar unit
87is 8 * the HP-IB number plus the unit number of the disk or tape,
88and
89.Ar minor
90is the disk partition or tape file number.
91Normal line editing characters can be used when typing the file specification.
92Currently,
93.Dq rd
94and
95.Dq sd
96are the only valid
97.Ar device
98specifiers.
99.Pp
100For example,
101to boot from the
102.Sq a
103file system of unit 0 on HP-IB 2,
104type
105.Ql rd(16, 0)netbsd
106to the boot prompt.
107For tapes, the minor device number gives a file offset.
108.Pp
109In an emergency, the bootstrap methods described in the paper
110.%T Installing 4.3bsd on the HP300
111can be used to boot from a distribution tape.
112.Sh FILES
113.Bl -tag -width /usr/mdec/installboot -compact
114.It Pa /netbsd
115system code
116.It Pa /usr/mdec/bootrd
117.Tn LIF
118format boot block
119.It Pa /usr/mdec/installboot
120program to install boot blocks
121.El
122.Sh SEE ALSO
123.Xr halt 8 ,
124.Xr reboot 8 ,
125.Xr shutdown 8
126