xref: /netbsd-src/share/man/man8/man8.sparc/boot.8 (revision d710132b4b8ce7f7cccaaf660cb16aa16b4077a0)
1.\"	$NetBSD: boot.8,v 1.22 2003/04/29 13:13:10 wiz Exp $
2.\"
3.\" Copyright (c) 1992, 1993
4.\"	The Regents of the University of California.  All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
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. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"	This product includes software developed by the University of
17.\"	California, Berkeley and its contributors.
18.\" 4. 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.
21.\"
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
32.\" SUCH DAMAGE.
33.\"
34.\"     @(#)boot_sparc.8	8.2 (Berkeley) 4/19/94
35.\"
36.Dd April 8, 2003
37.Dt BOOT 8 sparc
38.Os
39.Sh NAME
40.Nm boot
41.Nd
42system bootstrapping procedures
43.Sh SYNOPSIS
44.Nm boot
45.Op Fl adqsv
46.Oo
47.Ar --
48.Aq Ar boot string
49.Oc
50.Sh DESCRIPTION
51.Ss Power fail and crash recovery
52Normally, the system will reboot itself at power-up or after crashes.
53An automatic consistency check of the file systems will be performed
54as described in
55.Xr fsck 8 ,
56and unless this fails, the system will resume multi-user operations.
57.Ss Cold starts
58The
59.Nx
60boot
61.Pa netbsd
62from partition a of the boot device,
63which must currently be an
64.Dq sd
65disk.
66.Ss Boot program options
67.Bl -tag -width xxx
68.It Fl a
69Prompt for the root file system device, the system crash dump
70device, and the path to
71.Xr init 8 .
72.It Fl d
73Bring the system up in debug mode.
74Here it waits for a kernel debugger connect; see
75.Xr gdb 1 .
76.It Fl q
77Boot the system in quiet mode.
78.It Fl s
79Bring the system up in single-user mode.
80.It Fl v
81Boot the system in verbose mode.
82.El
83.Pp
84Any extra flags or arguments, or the
85.Aq Ar boot string
86after the -- separator are passed to the boot PROM.
87Other flags are currently ignored.
88.Pp
89The SPARC boot ROM comes in two flavours: an
90.Dq old-style
91ROM is used in sun4 machines, while a
92.Dq new-style
93ROM can be found on sun4c and sun4m models.
94The
95.Dq new-style
96SPARC boot ROM is a full-featured Forth system with emacs key bindings.
97It can be put in
98.Dq old-style
99user-interface compatibility mode (in which case it shows a simple
100.Sq \*[Gt]
101prompt), but this is essentially useless.
102However, by default the ROM runs in old-mode; to enter new-mode type
103.Sq n .
104The ROM then shows a Forth-style
105.Dq ok
106prompt.
107It is recommended to have the ROM always start in its native
108.Dq new-style
109mode.
110Utter the following incantation in new-mode to force the ROM to always start
111in new-mode.
112.Pp
113.Pa \	ok
114setenv sunmon-compat? false
115.Pp
116The ROM will normally load the kernel from
117.Dq sd(0,0,0)vmunix .
118To change the default so that
119.Nx
120will be loaded from somewhere else, type the following
121.Pp
122.Pa \	ok
123setenv boot-from sd(0,0,0)netbsd
124.Pp
125At any time you can break back to the ROM by pressing the
126.Sq L1
127and
128.Sq a
129keys at the same time (if the console is a serial port the same is
130achieved by sending a
131.Sq break ) .
132If you do this accidentally you can continue whatever was in progress
133by typing
134.Sq go .
135.Sh FILES
136.Bl -tag -width /netbsdxx -compact
137.It Pa /netbsd
138system code
139.It Pa /boot
140system bootstrap
141.El
142.Sh SEE ALSO
143.\" .Xr crash 8 ,
144.Xr disklabel 8 ,
145.Xr fsck 8 ,
146.Xr halt 8 ,
147.Xr init 8 ,
148.Xr installboot 8 ,
149.Xr rc 8 ,
150.Xr shutdown 8 ,
151.Xr syslogd 8
152