1 .\" $NetBSD: boot.8,v 1.14 2009/03/23 01:27:59 joerg Exp $
3 .\" Copyright (c) 1990, 1991 The Regents of the University of California.
4 .\" All rights reserved.
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.
10 .\" Redistribution and use in source and binary forms, with or without
11 .\" modification, are permitted provided that the following conditions
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.
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
39 .Nd system bootstrapping procedures
43 kernel is started by placing it near the beginning of physical
44 memory and transferring to the entry point.
45 Since the system is not reenterable,
46 it is necessary to read it in from disk or tape
47 each time it is to be bootstrapped.
48 .Ss Power fail and crash recovery
49 Normally, the system will boot itself at power-up or after crashes.
50 An automatic consistency check of the file systems will be performed,
51 and unless this fails, the system will resume multi-user operations.
53 At power up, all DECstation ROMs consult the
56 variable in EEPROM to determine whether or not to attempt to boot
58 If this variable is set to
60 the ROM prints a prompt on the console and
61 waits for user commands.
64 the ROM attempts to autoboot.
65 .Sh DECSTATION 2100 and 3100
66 On the DECstation 2100 and 3100, the path used for automatic booting is
70 The path is made up of a
71 device type specifier (e.g., rz, tz, mop or tftp) followed by
72 a triplet in the form (x,y,z), followed by a filename to load.
74 Within the triplet, x is the controller (always 0), y is the SCSI id of
76 boot from or 0 for net boots, and z is the partition to boot from
77 (usually 0 for SCSI devices, always zero for network booting).
78 For both disk and network boots, () may be specified instead of
81 The filename is optional for bootp/tftp and mop booting, since in
82 these cases the network protocol can be used to determine which
84 When booting off the tape, no filename should be specified.
85 When booting off of disk, the filename is optional but is usually specified.
86 If no filename is specified when booting off disk, the following
87 filenames are tried in order:
95 Generally, the kernel is named
98 An example bootpath setting would be:
99 .Dl Ic setenv bootpath rz(0,1,0)netbsd
101 At the PROM prompt, the user may boot
112 argument is passed to the kernel, requesting a multi-user boot; otherwise
115 argument is passed, requesting that
117 boot to single user mode.
123 command is issued with no arguments, the kernel specified in the bootpath
124 environment variable is booted.
127 command, an alternative kernel may be specified
130 flag, followed by the path of the kernel to boot, as described above.
132 .Dl Ic boot -f rz(0,4,0)netbsd.new
133 .Sh TURBOCHANNEL DECstations
134 On TurboChannel machines (all DECstation 5000 models), the boot path
135 is specified in the boot environment variable, along with any arguments
136 to be passed to the kernel.
137 Note that to specify boot arguments (e.g.,
141 environment variable, the filename and arguments
142 must be enclosed in quotes.
144 .Dl Ic setenv boot Dq Ic "3/rz4/netbsd -a"
146 The device from which to boot is specified as the TurboChannel slot
147 number, a TurboChannel-option-specific device name, and a path to the
148 file to load, all separated by slashes.
149 You can get a list of the
150 devices installed in your TurboChannel slots (as well as any built-in
151 devices which appear as TurboChannel slots) by typing the
155 You can get more detailed information about a specific
156 TurboChannel option by typing
158 followed by the slot number of that
161 For SCSI devices, the option-specific device identifier is either rz# for
162 disks or tz# for tapes, where # is the SCSI id of the device.
164 devices, the option-specific protocol identifier is either mop or tftp.
165 Filename requirements are as for the DECstation 2100 and 3100.
169 from the boot prompt, the
171 command must be used.
172 With no arguments, this simply boots the default
173 kernel with the default arguments as set with
176 If no boot environment variable is set or if an alternative kernel is to be
177 booted, the path of that kernel may be specified after the boot command as
178 described above, and any arguments may be passed similarly.
180 .Dl Ic boot 3/rz4/netbsd.new -a
182 The kernel supports the following arguments:
183 .Bl -tag -width xxx -offset indent
185 Autoboot -- try and boot to multi-user mode without
188 Use a miniroot already present in memory.
190 Prompt for the root file system device, the system crash dump
191 device, and the path to
194 Do not prompt for the root file system device, the system crash dump
195 device, and the path to
197 If the configured-in devices are present, use them.
199 Boot only to single-user mode.
202 Since DECstation PROMs also parse any arguments with a leading
203 "-", and reject unrecognized options, arguments other than "a" or "s"
204 should be specified after the kernel name with no leading "-".
206 .Dl Ic boot 3/rz4/netbsd \&ns