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