1 .\" $NetBSD: boot.8,v 1.5 2003/06/30 11:53:22 wiz Exp $
3 .\" Copyright (c) 1992, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)boot_sparc.8 8.2 (Berkeley) 4/19/94
37 .Nd system bootstrapping procedures
42 .Oo Pq Ar cntrl , unit , part
48 .Ss Power fail and crash recovery
49 Normally, the system will reboot itself at power-up or after crashes.
50 An automatic consistency check of the file systems will be performed
53 and unless this fails, the system will resume multi-user operations.
54 .Ss Selecting the device and kernel to boot
57 command alone is sufficient to boot the system, as the PROM chooses
61 The PROM chooses the first device present on
62 the system from the following ordered list:
64 .Bd -unfilled -offset indent -compact
70 Unless specified, the controller number
76 default to zero, which is almost always correct.
78 The controller number can
79 be specified if there is more than one of the given device in the system.
82 to boot off of the second Intel Ethernet in the system.
84 The unit number specifies one of the many devices attached to a
86 The exact meaning and values vary depending on the device name.
89 boots the disk at target 6 on the first SCSI controller, 18 being the target
90 number 6, multiplied by 4, and given in hexadecimal.
92 The partition number specifies one of the many partitions on a device.
93 The exact meaning and values vary depending on the device name.
96 boots the second partition on the disk at target 6 on the first SCSI
99 The PROM only loads a first-stage boot program, currently either
101 (for a disk boot), or
103 (for a network boot).
104 This first-stage boot program then loads the
105 second-stage boot program from the same device, currently either
106 .Pa /usr/mdec/ufsboot
107 (for a disk boot), or
108 .Pa /usr/mdec/netboot
109 (for a network boot).
111 The second-stage boot program will then attempt to load the kernel named
115 if none is specified).
116 The second-stage disk boot program
117 .Pa /usr/mdec/ufsboot
118 loads the kernel from the same device that it was loaded from,
119 while the second-stage network boot program
120 .Pa /usr/mdec/netboot
122 from the NFS root as determined by the procedure described in
124 .Ss Boot program options
127 Prompt for the root file system device, the system crash dump
128 device, and the path to
131 Bring the system up in debug mode.
132 Here it waits for a kernel debugger connect; see
135 Boot the system in quiet mode.
137 Bring the system up in single-user mode.
139 Boot the system in verbose mode.
142 Other flags are currently ignored.
144 At any time you can break back to the ROM by pressing the
148 keys at the same time (if the console is a serial port the same is
149 achieved by sending a
151 If you do this accidentally you can continue whatever was in progress
154 followed by the return key.
156 .Bl -tag -width /usr/mdec/installbootXX -compact
159 .It Pa /usr/mdec/bootxx
160 first-level boot block for disks
161 .It Pa /usr/mdec/bootyy
162 first-level boot block for NFS (diskless) boot
163 .It Pa /usr/mdec/netboot
164 boot program for NFS (diskless) boot
165 .It Pa /usr/mdec/ufsboot
166 second-level boot program for UFS disks
167 .It Pa /usr/sbin/installboot
168 program to install bootxx on a disk