1*bb8490e5Sstsp.\" $OpenBSD: boot_sparc64.8,v 1.14 2014/11/26 22:30:47 stsp 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. 1429295d1cSmillert.\" 3. Neither the name of the University nor the names of its contributors 15cdfc4093Smiod.\" may be used to endorse or promote products derived from this software 16cdfc4093Smiod.\" without specific prior written permission. 17cdfc4093Smiod.\" 18cdfc4093Smiod.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19cdfc4093Smiod.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20cdfc4093Smiod.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21cdfc4093Smiod.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22cdfc4093Smiod.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23cdfc4093Smiod.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24cdfc4093Smiod.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25cdfc4093Smiod.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26cdfc4093Smiod.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27cdfc4093Smiod.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28cdfc4093Smiod.\" SUCH DAMAGE. 29cdfc4093Smiod.\" 30cdfc4093Smiod.\" @(#)boot_sparc.8 8.2 (Berkeley) 4/19/94 31cdfc4093Smiod.\" 32*bb8490e5Sstsp.Dd $Mdocdate: November 26 2014 $ 3375643a34Smiod.Dt BOOT_SPARC64 8 sparc64 34cdfc4093Smiod.Os 35cdfc4093Smiod.Sh NAME 360201bdceSespie.Nm boot_sparc64 3775643a34Smiod.Nd sparc64 system bootstrapping procedures 38cdfc4093Smiod.Sh DESCRIPTION 3975643a34Smiod.Ss System starts 4075643a34SmiodWhen powered on, after a panic, or if the system is rebooted via 4175643a34Smiod.Xr reboot 8 4275643a34Smiodor 4375643a34Smiod.Xr shutdown 8 , 4475643a34Smiodthe PROM will proceed to its initialization, and will boot an operating 4575643a34Smiodsystem if autoboot is enabled. 4675643a34Smiod.Ss Boot process description 47cdfc4093SmiodSystem boot blocks are installed near the start of the boot disk 48cdfc4093Smiodusing the procedure described in 49cdfc4093Smiod.Xr installboot 8 . 5075643a34SmiodThe boot program attempts to load the kernel from the selected 5175643a34Smiodboot device, 52cdfc4093Smiodwhich must currently be an 5375643a34Smiod.Tn SCSI 5475643a34Smiod.Pq Dq sd 5575643a34Smiodor IDE 5675643a34Smiod.Pq Dq wd 571791c573Sjmcdisk drive, or a CD-ROM 5875643a34Smiod.Pq Dq cd , 5975643a34Smiodor an 6075643a34Smiod.Tn SCSI 6175643a34Smiodtape drive 6275643a34Smiod.Pq Dq st . 63cdfc4093Smiod.Pp 6475643a34SmiodThe UltraSPARC 6575643a34Smiod.Tn Open Firmware 66c989ca0dSjmcwill normally look for a bootloader on the device specified by the 670d8a9824Sjmc.Em boot-device 6875643a34Smiodvariable. 69cdfc4093SmiodThe 70cdfc4093Smiod.Ox 7175643a34Smiodbootloader will then look for a kernel named 7275643a34Smiod.Pa bsd 7375643a34Smiodby default, unless the 740d8a9824Sjmc.Em boot-file 7575643a34Smiodvariable is set, or a different filename has been specified 7675643a34Smiodin the boot command. 77cdfc4093SmiodTo reset this variable to its default, empty, value, type the following: 78cdfc4093Smiod.Pp 79cdfc4093Smiod.Em \ ok 8075643a34Smiodset-default 810d8a9824Sjmc.Em boot-file 8275643a34Smiod.Pp 83*bb8490e5SstspTo boot from a 84*bb8490e5Sstsp.Xr softraid 4 85*bb8490e5Sstspvolume by default, 86*bb8490e5Sstsp.Em boot-device 87*bb8490e5Sstspmust be set to a disk device hosting a chunk of the softraid volume: 88*bb8490e5Sstsp.Pp 89*bb8490e5Sstsp.Em \ ok 90*bb8490e5Sstspsetenv 91*bb8490e5Sstsp.Em boot-device 92*bb8490e5Sstspdisk0 93*bb8490e5Sstsp.Pp 94*bb8490e5Sstspand 95*bb8490e5Sstsp.Em boot-file 96*bb8490e5Sstspmust contain the 97*bb8490e5Sstsp.Pq Dq sr 98*bb8490e5Sstspdevice name of the softraid volume and optionally a partition letter 99*bb8490e5Sstspand/or kernel: 100*bb8490e5Sstsp.Pp 101*bb8490e5Sstsp.Em \ ok 102*bb8490e5Sstspsetenv 103*bb8490e5Sstsp.Em boot-file 104*bb8490e5Sstspsr0a:/bsd 105*bb8490e5Sstsp.Pp 10675643a34SmiodAutoboot is enabled by setting the 107e0ba81e6Sjmc.Em auto-boot?\& 10875643a34Smiodvariable to 10975643a34Smiod.Dq true , 11075643a34Smiodand is the factory default. 11175643a34Smiod.Ss Boot process options 11275643a34SmiodThe following options are recognized: 113c989ca0dSjmc.Pp 114d427d14cSschwarze.Bl -tag -width "-XXX" -offset indent -compact 115c989ca0dSjmc.It Fl a 11675643a34SmiodPrompt for the root filesystem and swap devices after the devices have 11775643a34Smiodbeen configured. 118c989ca0dSjmc.It Fl c 11975643a34SmiodEnter the 12075643a34Smiod.Dq User Kernel Configuration 12175643a34Smiodmode upon startup 12275643a34Smiod.Pq see Xr boot_config 8 . 123c989ca0dSjmc.It Fl d 12475643a34SmiodEnter the debugger, 12575643a34Smiod.Xr ddb 4 , 12675643a34Smiodas soon as the kernel console has been initialized. 127c989ca0dSjmc.It Fl s 12875643a34SmiodBoot the system single-user. 12975643a34SmiodThe system will be booted multi-user unless this option is specified. 13075643a34Smiod.El 1316c04b5e5Smiod.Ss Accessing the PROM during runtime 132cdfc4093SmiodIf the 133cdfc4093Smiod.Xr sysctl 8 134cdfc4093Smiodvariable 1350d8a9824Sjmc.Em ddb.console 136cdfc4093Smiodis enabled, at any time you can break back to the ROM by pressing the 137cdfc4093Smiod.Dq L1 138877d806cSjmc.Pq also known as the Dq stop key 139cdfc4093Smiodand 140cdfc4093Smiod.Dq a 141cdfc4093Smiodkeys at the same time (if the console is a serial port the same is 142cdfc4093Smiodachieved by sending a 14375643a34Smiod.Dq break ) , 14475643a34Smiodand entering 14575643a34Smiod.Ic machine prom 14675643a34Smiodat the prompt. 147cdfc4093SmiodIf you do this accidentally you can continue whatever was in progress 148cdfc4093Smiodby typing 14975643a34Smiod.Ic go 15075643a34Smiodat the PROM prompt, and then 15175643a34Smiod.Ic cont 15275643a34Smiodto return to the system. 153cdfc4093Smiod.Sh FILES 15475643a34Smiod.Bl -tag -width /usr/mdec/ofwboot.net -compact 155cdfc4093Smiod.It Pa /bsd 15675643a34Smioddefault system kernel 157ad3220b1Smiod.It Pa /bsd.rd 158ad3220b1Smiodstandalone installation kernel, suitable for disaster recovery 15975643a34Smiod.It Pa /usr/mdec/bootblk 16075643a34Smiodprimary bootstrap for 16175643a34Smiod.Dq ffs 16275643a34Smiodfile system 16375643a34Smiod.It Pa /usr/mdec/ofwboot 16475643a34Smiodsecondary bootstrap (usually also installed as 16575643a34Smiod.Pa /ofwboot ) 16675643a34Smiod.It Pa /usr/mdec/ofwboot.net 16775643a34Smiodnetwork bootstrap 168*bb8490e5Sstsp.It Pa /usr/mdec/ofwbootfd 169*bb8490e5Sstspfloppy disk bootstrap 170cdfc4093Smiod.El 171cdfc4093Smiod.Sh SEE ALSO 17275643a34Smiod.Xr ddb 4 , 173*bb8490e5Sstsp.Xr softraid 4 , 1746c04b5e5Smiod.Xr boot_config 8 , 175cdfc4093Smiod.Xr halt 8 , 176cdfc4093Smiod.Xr init 8 , 177cdfc4093Smiod.Xr installboot 8 , 17875643a34Smiod.Xr reboot 8 , 17975643a34Smiod.Xr savecore 8 , 18075643a34Smiod.Xr shutdown 8 181