1 .\" $NetBSD: boot.8,v 1.14 2008/05/23 15:25:25 spz 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
38 .Nd system bootstrapping procedures
49 systems support booting from locally attached storage media
50 .Pq e.g. hard disk, Tn CD-ROM ,
55 .Ss Power fail and crash recovery
56 Normally, the system will reboot itself at power-up or after crashes.
57 An automatic consistency check of the file systems will be performed
60 and unless this fails, the system will resume multi-user operations.
64 Open Firmware performs a Power On Self Test
66 and then will boot an operating system according to
67 configuration in Open Firmware environment variables.
68 .Ss Boot program options
71 Prompt for the root file system device, the system crash dump
72 device, and the path to
75 Bring the system up in debug mode.
76 Here it waits for a kernel debugger connect; see
79 Boot the system in quiet mode.
81 Bring the system up in single-user mode.
83 Boot the system in verbose mode.
86 Any extra flags or arguments, or the
88 after the -- separator are passed to the boot PROM.
89 Other flags are currently ignored.
91 At any time you can halt the running system and get back to the Open Firmware.
94 framebuffer and keyboard,
99 keys at the same time on the keyboard.
107 If the console is a serial port the same is
108 achieved by sending a
111 If you do this accidentally, you can continue whatever was in progress
116 Since machines vary greatly in the way their devices are connected,
117 there are aliases defined by the firmware.
118 You can either use the fully qualified
119 Open Firmware path of a device node, or the alias.
121 The secondary boot loader,
125 commands virtually the same as Open Firmware.
126 Thus, the following examples apply equally to
128 as well as Open Firmware.
130 A typical list of usable boot devices (extracted from the output of
131 the Open Firmware command
134 .Bd -literal -offset indent
135 net /sbus/SUNW,hme@e,8c00000
136 disk /sbus/SUNW,fas@e,8800000/sd@0,0
137 cdrom /sbus/SUNW,fas@e,8800000/sd@6,0:f
138 disk6 /sbus/SUNW,fas@e,8800000/sd@6,0
139 disk5 /sbus/SUNW,fas@e,8800000/sd@5,0
140 disk4 /sbus/SUNW,fas@e,8800000/sd@4,0
141 disk3 /sbus/SUNW,fas@e,8800000/sd@3,0
142 disk2 /sbus/SUNW,fas@e,8800000/sd@2,0
143 disk1 /sbus/SUNW,fas@e,8800000/sd@1,0
144 disk0 /sbus/SUNW,fas@e,8800000/sd@0,0
147 If a device specification includes a partition letter (for example
149 in above list), that partition is used by default, otherwise the first (a)
151 If booting from the net device, there is no partition involved.
153 The boot device is an optional first part of the boot string, if no device
154 is specified the default device is used (see below).
155 .Sh FIRMWARE ENVIRONMENT VARIABLES
156 All Open Firmware environment variables can be printed with the
158 command and changed with the
161 The boot process relevant variables and their suggested value for
165 .Bd -literal -offset indent
173 Of course you may select any other boot device,
174 if you do not want to boot from the device aliased to
176 see the discussion on devices above.
178 .Bl -tag -width /usr/mdec/ofwboot.netxx -compact
183 .It Pa /usr/mdec/ofwboot.net
184 alternate bootstrap when booting from the network, see
192 .Bd -literal -offset indent
196 Note that some multi-architecture CDs are not able to use the
197 default sparc64 partition for
200 so they may require an explicit partition letter, for example
201 .Bd -literal -offset indent
208 drives it is important to know two things: the
212 ID to be six, and the drive must support 512-byte block reads,
213 in addition to the standard 2048-byte reads.
216 .Bd -literal -offset indent
220 to boot single user from network and break into the kernel debugger as
224 .Bd -literal -offset indent
225 boot net tftp:netbsd -a
228 to boot a kernel named netbsd obtained via tftp and have it ask for
229 root filesystem, swap partition and init location once it is up.
231 During installation from a different operating system
232 .Bd -literal -offset indent
238 filesystem from the swap partition.
252 developed its firmware and promoted it to become
255 .Pa http://playground.sun.com/1275/
258 provides no way to boot
260 systems from floppy disks.
261 This is unlikely to change, due to very low demand for this feature.
263 The OBP on Ultra 1 and Ultra 2 machines can only boot from the first