2003-04-29 17:13:10 +04:00
|
|
|
.\" $NetBSD: boot.8,v 1.22 2003/04/29 13:13:10 wiz Exp $
|
1995-04-23 14:33:03 +04:00
|
|
|
.\"
|
1995-03-18 18:17:32 +03:00
|
|
|
.\" Copyright (c) 1992, 1993
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgement:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
|
|
|
.\" @(#)boot_sparc.8 8.2 (Berkeley) 4/19/94
|
|
|
|
.\"
|
2003-04-08 07:49:44 +04:00
|
|
|
.Dd April 8, 2003
|
1997-03-13 08:00:55 +03:00
|
|
|
.Dt BOOT 8 sparc
|
1995-03-18 18:17:32 +03:00
|
|
|
.Os
|
|
|
|
.Sh NAME
|
1997-03-13 08:00:55 +03:00
|
|
|
.Nm boot
|
1995-03-18 18:17:32 +03:00
|
|
|
.Nd
|
1997-03-13 08:00:55 +03:00
|
|
|
system bootstrapping procedures
|
1997-04-13 17:46:56 +04:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm boot
|
2003-04-08 07:49:44 +04:00
|
|
|
.Op Fl adqsv
|
1997-04-13 17:46:56 +04:00
|
|
|
.Oo
|
2003-04-29 17:13:10 +04:00
|
|
|
.Ar --
|
|
|
|
.Aq Ar boot string
|
1997-04-13 17:46:56 +04:00
|
|
|
.Oc
|
1995-03-18 18:17:32 +03:00
|
|
|
.Sh DESCRIPTION
|
2003-04-08 07:49:44 +04:00
|
|
|
.Ss Power fail and crash recovery
|
1995-03-18 18:17:32 +03:00
|
|
|
Normally, the system will reboot itself at power-up or after crashes.
|
|
|
|
An automatic consistency check of the file systems will be performed
|
|
|
|
as described in
|
2003-04-29 17:13:10 +04:00
|
|
|
.Xr fsck 8 ,
|
1995-03-18 18:17:32 +03:00
|
|
|
and unless this fails, the system will resume multi-user operations.
|
2003-04-08 07:49:44 +04:00
|
|
|
.Ss Cold starts
|
1997-04-13 17:46:56 +04:00
|
|
|
The
|
|
|
|
.Nx
|
|
|
|
boot
|
1995-03-18 19:11:33 +03:00
|
|
|
.Pa netbsd
|
1997-04-13 17:46:56 +04:00
|
|
|
from partition a of the boot device,
|
2003-04-29 17:13:10 +04:00
|
|
|
which must currently be an
|
|
|
|
.Dq sd
|
|
|
|
disk.
|
2003-04-08 07:49:44 +04:00
|
|
|
.Ss Boot program options
|
|
|
|
.Bl -tag -width xxx
|
|
|
|
.It Fl a
|
|
|
|
Prompt for the root file system device, the system crash dump
|
|
|
|
device, and the path to
|
|
|
|
.Xr init 8 .
|
|
|
|
.It Fl d
|
|
|
|
Bring the system up in debug mode.
|
1997-04-13 17:46:56 +04:00
|
|
|
Here it waits for a kernel debugger connect; see
|
2003-04-08 11:58:56 +04:00
|
|
|
.Xr gdb 1 .
|
2003-04-08 07:49:44 +04:00
|
|
|
.It Fl q
|
|
|
|
Boot the system in quiet mode.
|
|
|
|
.It Fl s
|
|
|
|
Bring the system up in single-user mode.
|
|
|
|
.It Fl v
|
|
|
|
Boot the system in verbose mode.
|
|
|
|
.El
|
|
|
|
.Pp
|
|
|
|
Any extra flags or arguments, or the
|
2003-04-29 17:13:10 +04:00
|
|
|
.Aq Ar boot string
|
2003-04-08 07:49:44 +04:00
|
|
|
after the -- separator are passed to the boot PROM.
|
1995-03-18 18:17:32 +03:00
|
|
|
Other flags are currently ignored.
|
1995-04-25 15:37:25 +04:00
|
|
|
.Pp
|
2003-04-29 17:13:10 +04:00
|
|
|
The SPARC boot ROM comes in two flavours: an
|
|
|
|
.Dq old-style
|
|
|
|
ROM is used in sun4 machines, while a
|
|
|
|
.Dq new-style
|
|
|
|
ROM can be found on sun4c and sun4m models.
|
|
|
|
The
|
|
|
|
.Dq new-style
|
|
|
|
SPARC boot ROM is a full-featured Forth system with emacs key bindings.
|
|
|
|
It can be put in
|
|
|
|
.Dq old-style
|
|
|
|
user-interface compatibility mode (in which case it shows a simple
|
|
|
|
.Sq \*[Gt]
|
|
|
|
prompt), but this is essentially useless.
|
|
|
|
However, by default the ROM runs in old-mode; to enter new-mode type
|
|
|
|
.Sq n .
|
|
|
|
The ROM then shows a Forth-style
|
|
|
|
.Dq ok
|
|
|
|
prompt.
|
|
|
|
It is recommended to have the ROM always start in its native
|
|
|
|
.Dq new-style
|
|
|
|
mode.
|
|
|
|
Utter the following incantation in new-mode to force the ROM to always start
|
|
|
|
in new-mode.
|
1995-04-25 15:37:25 +04:00
|
|
|
.Pp
|
|
|
|
.Pa \ ok
|
|
|
|
setenv sunmon-compat? false
|
|
|
|
.Pp
|
2003-04-29 17:13:10 +04:00
|
|
|
The ROM will normally load the kernel from
|
|
|
|
.Dq sd(0,0,0)vmunix .
|
|
|
|
To change the default so that
|
1998-02-06 08:54:12 +03:00
|
|
|
.Nx
|
2003-04-29 17:13:10 +04:00
|
|
|
will be loaded from somewhere else, type the following
|
1995-04-25 15:37:25 +04:00
|
|
|
.Pp
|
|
|
|
.Pa \ ok
|
|
|
|
setenv boot-from sd(0,0,0)netbsd
|
|
|
|
.Pp
|
2003-04-29 17:13:10 +04:00
|
|
|
At any time you can break back to the ROM by pressing the
|
|
|
|
.Sq L1
|
|
|
|
and
|
|
|
|
.Sq a
|
1995-04-25 15:37:25 +04:00
|
|
|
keys at the same time (if the console is a serial port the same is
|
2003-04-29 17:13:10 +04:00
|
|
|
achieved by sending a
|
|
|
|
.Sq break ) .
|
1995-04-25 15:37:25 +04:00
|
|
|
If you do this accidentally you can continue whatever was in progress
|
2003-04-29 17:13:10 +04:00
|
|
|
by typing
|
|
|
|
.Sq go .
|
1995-03-18 18:17:32 +03:00
|
|
|
.Sh FILES
|
1995-03-18 19:11:33 +03:00
|
|
|
.Bl -tag -width /netbsdxx -compact
|
|
|
|
.It Pa /netbsd
|
1995-03-18 18:17:32 +03:00
|
|
|
system code
|
|
|
|
.It Pa /boot
|
|
|
|
system bootstrap
|
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
2003-04-29 17:13:10 +04:00
|
|
|
.\" .Xr crash 8 ,
|
1995-03-18 18:17:32 +03:00
|
|
|
.Xr disklabel 8 ,
|
|
|
|
.Xr fsck 8 ,
|
|
|
|
.Xr halt 8 ,
|
|
|
|
.Xr init 8 ,
|
2001-12-26 05:09:22 +03:00
|
|
|
.Xr installboot 8 ,
|
1995-03-18 18:17:32 +03:00
|
|
|
.Xr rc 8 ,
|
|
|
|
.Xr shutdown 8 ,
|
2001-12-26 05:09:22 +03:00
|
|
|
.Xr syslogd 8
|