1*c989ca0dSjmc.\"	$OpenBSD: boot_sparc64.8,v 1.4 2003/02/01 16:38:39 jmc Exp $
2cdfc4093Smiod.\"
3cdfc4093Smiod.\" Copyright (c) 1992, 1993
4cdfc4093Smiod.\"	The Regents of the University of California.  All rights reserved.
5cdfc4093Smiod.\"
6cdfc4093Smiod.\" Redistribution and use in source and binary forms, with or without
7cdfc4093Smiod.\" modification, are permitted provided that the following conditions
8cdfc4093Smiod.\" are met:
9cdfc4093Smiod.\" 1. Redistributions of source code must retain the above copyright
10cdfc4093Smiod.\"    notice, this list of conditions and the following disclaimer.
11cdfc4093Smiod.\" 2. Redistributions in binary form must reproduce the above copyright
12cdfc4093Smiod.\"    notice, this list of conditions and the following disclaimer in the
13cdfc4093Smiod.\"    documentation and/or other materials provided with the distribution.
14cdfc4093Smiod.\" 3. All advertising materials mentioning features or use of this software
15cdfc4093Smiod.\"    must display the following acknowledgement:
16cdfc4093Smiod.\"	This product includes software developed by the University of
17cdfc4093Smiod.\"	California, Berkeley and its contributors.
18cdfc4093Smiod.\" 4. Neither the name of the University nor the names of its contributors
19cdfc4093Smiod.\"    may be used to endorse or promote products derived from this software
20cdfc4093Smiod.\"    without specific prior written permission.
21cdfc4093Smiod.\"
22cdfc4093Smiod.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23cdfc4093Smiod.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24cdfc4093Smiod.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25cdfc4093Smiod.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26cdfc4093Smiod.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27cdfc4093Smiod.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28cdfc4093Smiod.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29cdfc4093Smiod.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30cdfc4093Smiod.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31cdfc4093Smiod.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32cdfc4093Smiod.\" SUCH DAMAGE.
33cdfc4093Smiod.\"
34cdfc4093Smiod.\"     @(#)boot_sparc.8	8.2 (Berkeley) 4/19/94
35cdfc4093Smiod.\"
36cdfc4093Smiod.Dd April 19, 1994
3775643a34Smiod.Dt BOOT_SPARC64 8 sparc64
38cdfc4093Smiod.Os
39cdfc4093Smiod.Sh NAME
40cdfc4093Smiod.Nm boot
4175643a34Smiod.Nd sparc64 system bootstrapping procedures
42cdfc4093Smiod.Sh DESCRIPTION
4375643a34Smiod.Ss System starts
4475643a34SmiodWhen powered on, after a panic, or if the system is rebooted via
4575643a34Smiod.Xr reboot 8
4675643a34Smiodor
4775643a34Smiod.Xr shutdown 8 ,
4875643a34Smiodthe PROM will proceed to its initialization, and will boot an operating
4975643a34Smiodsystem if autoboot is enabled.
5075643a34Smiod.Ss Boot process description
51cdfc4093SmiodSystem boot blocks are installed near the start of the boot disk
52cdfc4093Smiodusing the procedure described in
53cdfc4093Smiod.Xr installboot 8 .
5475643a34SmiodThe boot program attempts to load the kernel from the selected
5575643a34Smiodboot device,
56cdfc4093Smiodwhich must currently be an
5775643a34Smiod.Tn SCSI
5875643a34Smiod.Pq Dq sd
5975643a34Smiodor IDE
6075643a34Smiod.Pq Dq wd
6175643a34Smioddisk drive, or a cdrom
6275643a34Smiod.Pq Dq cd ,
6375643a34Smiodor an
6475643a34Smiod.Tn SCSI
6575643a34Smiodtape drive
6675643a34Smiod.Pq Dq st .
67cdfc4093Smiod.Pp
6875643a34SmiodThe UltraSPARC
6975643a34Smiod.Tn Open Firmware
70*c989ca0dSjmcwill normally look for a bootloader on the device specified by the
7175643a34Smiod.Ev Em boot-device
7275643a34Smiodvariable.
73cdfc4093SmiodThe
74cdfc4093Smiod.Ox
7575643a34Smiodbootloader will then look for a kernel named
7675643a34Smiod.Pa bsd
7775643a34Smiodby default, unless the
7875643a34Smiod.Ev Em boot-file
7975643a34Smiodvariable is set, or a different filename has been specified
8075643a34Smiodin the boot command.
81cdfc4093SmiodTo reset this variable to its default, empty, value, type the following:
82cdfc4093Smiod.Pp
83cdfc4093Smiod.Em \	ok
8475643a34Smiodset-default
8575643a34Smiod.Ev Em boot-file
8675643a34Smiod.Pp
8775643a34SmiodAutoboot is enabled by setting the
8875643a34Smiod.Ev Em auto-boot?
8975643a34Smiodvariable to
9075643a34Smiod.Dq true ,
9175643a34Smiodand is the factory default.
9275643a34Smiod.Ss Boot process options
9375643a34SmiodThe following options are recognized:
9475643a34Smiod.Bl -tag -width "-XXX" -offset indent -compact
95*c989ca0dSjmc.Pp
96*c989ca0dSjmc.It Fl a
9775643a34SmiodPrompt for the root filesystem and swap devices after the devices have
9875643a34Smiodbeen configured.
99*c989ca0dSjmc.It Fl c
10075643a34SmiodEnter the
10175643a34Smiod.Dq User Kernel Configuration
10275643a34Smiodmode upon startup
10375643a34Smiod.Pq see Xr boot_config 8 .
104*c989ca0dSjmc.It Fl d
10575643a34SmiodEnter the debugger,
10675643a34Smiod.Xr ddb 4 ,
10775643a34Smiodas soon as the kernel console has been initialized.
108*c989ca0dSjmc.It Fl s
10975643a34SmiodBoot the system single-user.
11075643a34SmiodThe system will be booted multi-user unless this option is specified.
11175643a34Smiod.El
1126c04b5e5Smiod.Ss Accessing the PROM during runtime
113cdfc4093SmiodIf the
114cdfc4093Smiod.Xr sysctl 8
115cdfc4093Smiodvariable
116*c989ca0dSjmc.Ev Em ddb.console
117cdfc4093Smiodis enabled, at any time you can break back to the ROM by pressing the
118cdfc4093Smiod.Dq L1
119cdfc4093Smiodand
120cdfc4093Smiod.Dq a
121cdfc4093Smiodkeys at the same time (if the console is a serial port the same is
122cdfc4093Smiodachieved by sending a
12375643a34Smiod.Dq break ) ,
12475643a34Smiodand entering
12575643a34Smiod.Ic machine prom
12675643a34Smiodat the prompt.
127cdfc4093SmiodIf you do this accidentally you can continue whatever was in progress
128cdfc4093Smiodby typing
12975643a34Smiod.Ic go
13075643a34Smiodat the PROM prompt, and then
13175643a34Smiod.Ic cont
13275643a34Smiodto return to the system.
133cdfc4093Smiod.Sh FILES
13475643a34Smiod.Bl -tag -width /usr/mdec/ofwboot.net -compact
135cdfc4093Smiod.It Pa /bsd
13675643a34Smioddefault system kernel
13775643a34Smiod.It Pa /usr/mdec/bootblk
13875643a34Smiodprimary bootstrap for
13975643a34Smiod.Dq ffs
14075643a34Smiodfile system
14175643a34Smiod.It Pa /usr/mdec/ofwboot
14275643a34Smiodsecondary bootstrap (usually also installed as
14375643a34Smiod.Pa /ofwboot )
14475643a34Smiod.It Pa /usr/mdec/ofwboot.net
14575643a34Smiodnetwork bootstrap
146cdfc4093Smiod.El
147cdfc4093Smiod.Sh SEE ALSO
14875643a34Smiod.Xr ddb 4 ,
1496c04b5e5Smiod.Xr boot_config 8 ,
150cdfc4093Smiod.Xr halt 8 ,
151cdfc4093Smiod.Xr init 8 ,
152cdfc4093Smiod.Xr installboot 8 ,
15375643a34Smiod.Xr reboot 8 ,
15475643a34Smiod.Xr savecore 8 ,
15575643a34Smiod.Xr shutdown 8
156