1 .\" $NetBSD: boot.8,v 1.29 2006/06/20 05:43:37 jdc 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 system bootstrapping procedures
47 .Ss Power fail and crash recovery
48 Normally, the system will reboot itself at power-up or after crashes.
49 An automatic consistency check of the file systems will be performed
52 and unless this fails, the system will resume multi-user operations.
56 boot firmware, either old-style or new-style (Open Boot Prom),
57 performs a Power On Self Test
59 and then will boot an operating system according to
60 configuration in Open Firmware environment variables.
61 .Ss Boot program options
64 Prompt for the root file system device, the system crash dump
65 device, and the path to
68 Bring the system up in debug mode.
69 Here it waits for a kernel debugger connect; see
72 Boot kernel in compat mode.
73 Starting with revision 1.14
74 .Pq introduced on 2003/03/01 ,
75 the sparc boot program loads the
77 kernel at its linked virtual address.
78 This feature requires a kernel built after 2003/02/21
79 .Pq corresponding to kernel version 1.6Q .
80 To load older kernels, the
82 option must be used, which loads the kernel at physical address
84 The size of a kernel loaded in this way is limited to approximately
87 Boot the system in quiet mode.
89 Bring the system up in single-user mode.
91 Boot the system in verbose mode.
94 Any extra flags or arguments, or the
96 after the -- separator are passed to the boot PROM.
97 Other flags are currently ignored.
99 The SPARC boot ROM comes in two flavours: an
101 ROM is used in sun4 machines, while a
103 ROM can be found on sun4c and sun4m models.
106 SPARC boot ROM is a full-featured Forth system with emacs key bindings.
109 user-interface compatibility mode (in which case it shows a simple
111 prompt), but this is essentially useless.
112 However, by default on sun4c models, the ROM runs in old-mode; to
115 The ROM then shows a Forth-style
118 It is recommended to have the ROM always start in its native
121 Utter the following incantation in new-mode to force the ROM to always start
125 setenv sunmon-compat? false
127 The ROM will normally load the kernel from
128 .Dq sd(0,0,0)vmunix .
129 To change the default so that
131 will be loaded from somewhere else, type the following
134 setenv boot-from sd(0,0,0)netbsd
136 On newer SPARC machines, there are various aliases to access common devices.
137 A typical list of usable boot devices (extracted from the output of
138 the Open Boot PROM command
141 .Bd -literal -offset indent
142 floppy /obio/SUNW,fdtwo
143 net-aui /iommu/sbus/ledma@f,400010:aui/le@f,c00000
144 net-tpe /iommu/sbus/ledma@f,400010:tpe/le@f,c00000
145 net /iommu/sbus/ledma@f,400010/le@f,c00000
146 disk /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0
147 cdrom /iommu/sbus/espdma@f,400000/esp@f,800000/sd@6,0:d
148 tape /iommu/sbus/espdma@f,400000/esp@f,800000/st@4,0
149 tape1 /iommu/sbus/espdma@f,400000/esp@f,800000/st@5,0
150 tape0 /iommu/sbus/espdma@f,400000/esp@f,800000/st@4,0
151 disk3 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@3,0
152 disk2 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@2,0
153 disk1 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@1,0
154 disk0 /iommu/sbus/espdma@f,400000/esp@f,800000/sd@0,0
157 For new-style machines,
158 if a device specification includes a partition letter (for example
160 in above list), that partition is used by default, otherwise the first (a)
162 If booting from the net device, there is no partition involved.
164 At any time you can break back to the ROM by pressing the
168 keys at the same time (if the console is a serial port the same is
169 achieved by sending a
171 If you do this accidentally you can continue whatever was in progress
174 .Sh OPEN BOOT PROM ENVIRONMENT VARIABLES
175 This section only applies to new-style machines.
177 All Open Boot PROM environment variables can be printed with the
179 command and changed with the
182 The boot process relevant variables and their suggested value for
186 .Bd -literal -offset indent
193 Of course you may select any other boot device,
194 if you do not want to boot from the device aliased to
196 see the discussion on devices above.
197 .Sh OPEN BOOT PROM ABBREVIATED COMMAND SUMMARY
198 This section only applies to new-style machines.
200 The following Open Boot PROM commands are related to the boot process:
201 .Bd -literal -offset indent
202 boot boot the system from the default device
203 boot device filename arguments
204 boot the specified device, filename and arguments
205 probe-ide list devices on the primary IDE controller
206 probe-ide-all list devices on all known IDE controllers
207 probe-scsi list devices on the primary SCSI controller
208 probe-scsi-all list devices on all known SCSI controllers
209 reset reset the system
211 For disk and tape devices, the boot device is specified as
212 .Sq /path/device@target,lun:partition .
213 .Sh PROM MONITOR ABBREVIATED COMMAND SUMMARY
214 This section only applies to old-style machines.
216 The following PROM monitor commands are related to the boot process:
217 .Bd -literal -offset indent
218 b boot the system from the default device
219 b device filename arguments
220 boot the specified device, filename and arguments
221 b? list boot device types
225 For SCSI disk and tape devices, the boot device is specified as
226 .Sq device(controller,unit,partition) ,
229 is the hexidecimal value of the SCSI id of the target multiplied
230 by eight plus the lun, and
232 is the partition number, starting from 0.
234 .Bl -tag -width /netbsdxx -compact
252 On sun4 machines, the
254 sparc boot loader can only boot from RAID partitions that start at the
255 beginning of the disk.
257 On sun4 and early PROM version sun4c machines, the PROM can only boot from
258 the first 1Gb of the disk.
260 On later PROM version sun4c and early PROM version sun4m machines, the PROM
261 can only boot from the first 2Gb of the disk.
263 On later PROM version sun4m machines, the PROM can only boot from the first