1.\" $NetBSD: boot.8,v 1.7 1997/04/13 13:46:56 mrg 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 13, 1997 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 n 46.Op Fl q 47.Op Fl d 48.Oo 49.Ar -- <boot string> 50.Oc 51.Sh DESCRIPTION 52.Sy Power fail and crash recovery. 53Normally, the system will reboot itself at power-up or after crashes. 54An automatic consistency check of the file systems will be performed 55as described in 56.Xr fsck 8 . 57and unless this fails, the system will resume multi-user operations. 58.Pp 59.Sy Cold starts 60The 61.Nx 62boot 63.Pa netbsd 64from partition a of the boot device, 65which must currently be an ``sd'' disk. 66.Pp 67The 68.Op Fl s 69flag to the boot loader will being the system up in single-user mode. 70The 71.Op Fl a 72flag instructs the system to prompt for the location of the root filesystem 73and the primary swap partition. 74The 75.Op Fl d 76flag to the boot loader will bring the system up in debug mode. 77Here it waits for a kernel debugger connect; see 78.Xr gdb 8 . 79Any extra flags or arguments, the after the -- separator, 80.Ar <boot string> 81are passed to the boot prom. 82Other flags are currently ignored. 83.Pp 84The Sparc boot rom comes in two flavours: an ``old-style'' rom is used in 85sun4 machines, while A ``new-style'' rom can be found on sun4c and sun4m models. 86The ``new-style'' Sparc boot rom is a full-featured Forth system with emacs 87key bindings. It can be put in ``old-style'' user-interface compatibility 88mode (in which case it shows a simple `>' prompt), but this is essentially 89useless. However, by default the rom runs in old-mode; to enter new-mode type `n'. 90The rom then shows a Forth-style `ok' prompt. It is recommended to have 91the rom always start in its native ``new-style'' mode. Utter the following 92incantation in new-mode to force the rom to always start in new-mode. 93.Pp 94.Pa \ ok 95setenv sunmon-compat? false 96.Pp 97The rom will normally load the kernel from "sd(0,0,0)vmunix". To change the 98default so that 99.Pa NetBSD 100will be loaded type the following 101.Pp 102.Pa \ ok 103setenv boot-from sd(0,0,0)netbsd 104.Pp 105At any time you can break back to the rom by pressing the `L1' and `a' 106keys at the same time (if the console is a serial port the same is 107achieved by sending a `break'). 108If you do this accidentally you can continue whatever was in progress 109by typing `go'. 110.Pp 111.Sh FILES 112.Bl -tag -width /netbsdxx -compact 113.It Pa /netbsd 114system code 115.It Pa /boot 116system bootstrap 117.El 118.Sh SEE ALSO 119.Xr crash 8 , 120.Xr disklabel 8 , 121.Xr fsck 8 , 122.Xr halt 8 , 123.Xr init 8 , 124.Xr rc 8 , 125.Xr shutdown 8 , 126.Xr syslogd 8 , 127.Xr installboot 8 . 128