1*62e03839Skn.\" $OpenBSD: boot_hppa.8,v 1.15 2022/09/05 10:29:27 kn Exp $ 275643a34Smiod.\" 375643a34Smiod.\" Copyright (c) 2002, Miodrag Vallat. 475643a34Smiod.\" All rights reserved. 575643a34Smiod.\" 675643a34Smiod.\" Redistribution and use in source and binary forms, with or without 775643a34Smiod.\" modification, are permitted provided that the following conditions 875643a34Smiod.\" are met: 975643a34Smiod.\" 1. Redistributions of source code must retain the above copyright 1075643a34Smiod.\" notice, this list of conditions and the following disclaimer. 1175643a34Smiod.\" 2. Redistributions in binary form must reproduce the above copyright 1275643a34Smiod.\" notice, this list of conditions and the following disclaimer in the 1375643a34Smiod.\" documentation and/or other materials provided with the distribution. 1475643a34Smiod.\" 1575643a34Smiod.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 1675643a34Smiod.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 1775643a34Smiod.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1875643a34Smiod.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 1975643a34Smiod.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2075643a34Smiod.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2175643a34Smiod.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2275643a34Smiod.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2375643a34Smiod.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2475643a34Smiod.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2575643a34Smiod.\" SUCH DAMAGE. 2675643a34Smiod.\" 27*62e03839Skn.Dd $Mdocdate: September 5 2022 $ 2875643a34Smiod.Dt BOOT_HPPA 8 hppa 2975643a34Smiod.Os 3075643a34Smiod.Sh NAME 3175643a34Smiod.Nm boot_hppa 3275643a34Smiod.Nd hppa system bootstrapping procedures 3375643a34Smiod.Sh DESCRIPTION 3475643a34Smiod.Ss System starts 3575643a34SmiodWhen powered on, after a panic, or if the system is rebooted via 3675643a34Smiod.Xr reboot 8 3775643a34Smiodor 3875643a34Smiod.Xr shutdown 8 , 3975643a34Smiodthe hppa firmware 4075643a34Smiod.Pq Dq PDC 4175643a34Smiodwill proceed to its initialization, and will boot an operating system 4275643a34Smiodif autoboot is enabled. 4375643a34Smiod.\" 4475643a34Smiod.Ss Boot process description 4575643a34SmiodSystem boot blocks are provided as a 4675643a34Smiod.Dq LIF 4775643a34Smiod.Pq Logical Interchange Format 4875643a34Smiodarchive, either on a disk device, or via the network, using the 4975643a34Smiod.Em bootp 5075643a34Smiodor 5175643a34Smiod.Em rboot 52c989ca0dSjmcprotocols, depending on the PDC version. 53583537b7SmickeyA small 54583537b7Smickey.Xr mkboot 8 55583537b7Smickeyutility 56583537b7Smickeyis provided for combining primary boot and a number 57583537b7Smickeyof images (OS kernels or standalone binaries) 58583537b7Smickeyinto one 59583537b7Smickey.Dq LIF 60583537b7Smickeyvolume suitable for booting. 6175643a34Smiod.Ss PDC concepts 6275643a34SmiodIf autoboot is enabled, the PDC will attempt to boot from the specified 6375643a34Smiod.Dq boot path 6475643a34Smiodvalue. 6575643a34SmiodIf no 6675643a34Smiod.Dq boot path 6775643a34Smiodhas been specified, the PDC will then scan for bootable devices and 6875643a34Smiodboot from the first found, after a few seconds allowing the user to 6975643a34Smiodinterrupt the boot process. 7075643a34SmiodIf autoboot is disabled, the PDC will enter interactive mode, after an 7175643a34Smiodoptional device scan. 7275643a34SmiodIn all cases, it is possible to enter interactive mode by holding the 7375643a34Smiodescape key during the selftests, or when prompted to do so to abort 7475643a34Smiodthe current operation, unless the PDC has been configured in 7575643a34Smiod.Dq secure mode . 7675643a34Smiod.\" 7744456a50Smickey.Ss ISL interaction 7844456a50Smickey.Dq ISL 7944456a50Smickeystands for 8044456a50Smickey.Dq Initial System Loader 8144456a50Smickeyand is the 8244456a50Smickey.Xr boot 8 8344456a50Smickeyprogram in 8444456a50Smickey.Ox . 85e9b55d33SmickeyOn all versions of the PDC except for the 712 and 725 models the 8644456a50Smickey.Dq boot 8744456a50Smickeycommand (see below) will be followed by the question: 8844456a50Smickey.Dq Interact with IPL (Y, N, or Cancel)?> 89b636d569Smickeywhere a positive answer will invoke an interactive prompt in the 9044456a50Smickey.Xr boot 8 91b636d569Smickeyprogram later and negative will thus suppress it. 92b636d569SmickeyA cancellation will abort the boot process. 9344456a50Smickey.Pp 94e9b55d33SmickeyOn the 712 and 725 models firmware an additional 9544456a50Smickey.Dq isl 9644456a50Smickeyargument should be given to the 9744456a50Smickey.Dq boot 9844456a50Smickeycommand to invoke the 9944456a50Smickey.Xr boot 8 10044456a50Smickeyinteractive prompt. 10144456a50SmickeyWith the default behaviour being a non-interactive boot process. 10244456a50Smickey.\" 10375643a34Smiod.Ss Old PDC operation 104583537b7SmickeyThis version is used on the following models: 105583537b7Smickey705, 7x0, 715/33/50/75, 725/50/75, 735, 755. 10675643a34SmiodThere are two levels of interactive commands in this version. 10775643a34SmiodThe first level is a short menu: 10875643a34Smiod.Bd -literal -offset indent 10975643a34Smiodb) Boot from specified device 11075643a34Smiods) Search for bootable device 11175643a34Smioda) Enter Boot Administration mode 11275643a34Smiodx) Exit and continue boot sequence 11375643a34Smiod 11475643a34SmiodSelect from menu: 11575643a34Smiod.Ed 11675643a34Smiod.Pp 11775643a34Smiodwhich provides the following commands: 118c989ca0dSjmc.Pp 119d427d14cSschwarze.Bl -tag -width "XXX" -offset indent -compact 120c989ca0dSjmc.It Cm b 12175643a34Smiodboot from a device found during the scan, 12275643a34Smiodeither with its short 12375643a34Smiod.Dq P# 12475643a34Smiodform, or a complete name specification. 12575643a34SmiodFor example, to boot from the 12675643a34Smiod.Tn SCSI 12775643a34Smioddisk with id 6 off the built-in (first) controller, 12875643a34Smiodone would enter 12975643a34Smiod.Ic b Ar scsi.6.0 . 130c989ca0dSjmc.It Cm s 13175643a34Smiodrescan for bootable devices. 132c989ca0dSjmc.It Cm a 13375643a34Smiodenter the second part of interactive mode. 134c989ca0dSjmc.It Cm x 13575643a34Smiodresume an interrupted boot sequence. 13675643a34Smiod.El 13775643a34Smiod.Pp 13875643a34SmiodThe 13975643a34Smiod.Dq Boot Administration 14075643a34Smiodmode, recognizable with its 14175643a34Smiod.Em BOOT_ADMIN> 14275643a34Smiodprompt, controls the various boot options. 143c989ca0dSjmcThe complete list of commands depends on the machine and PDC version. 14475643a34SmiodThe following list only mentions commands impacting the boot process. 14575643a34Smiod.Bl -tag -width AUTOSELECT -offset indent 14675643a34Smiod.It AUTOSELECT 14775643a34SmiodDisplays or changes the autoboot setting. 14875643a34SmiodIf autoselect is set to 14975643a34Smiod.Dq on , 15075643a34Smiodthe PDC will always attempt to boot the first bootable device found in 151c989ca0dSjmcthis order: 15275643a34Smiod.Bl -enum -offset indent -compact 15375643a34Smiod.It 154c989ca0dSjmcBoot device 15575643a34Smiod.Em path 15675643a34Smiodsetting. 15775643a34Smiod.It 15875643a34Smiod.Tn SCSI 15975643a34Smioddevices connected to the built-in 16075643a34Smiod.Tn SCSI 16175643a34Smiodcontroller, 16275643a34Smiodthe highest ID numbers being preferred. 16375643a34Smiod.It 16475643a34SmiodNetwork 16575643a34Smiod.Em rboot 166583537b7Smickeyserver (see also 167583537b7Smickey.Xr rbootd 8 ) . 16875643a34Smiod.It 16975643a34SmiodOther 17075643a34Smiod.Tn SCSI 17175643a34Smioddevices connected to secondary controllers, 17275643a34Smiodthe highest ID numbers being preferred. 17375643a34Smiod.El 17475643a34SmiodIf the 17575643a34Smiod.Em primary path 17675643a34Smiodsetting defines a bootable device, no device scan will occur. 17775643a34Smiod.It BOOT 17875643a34SmiodBoots off the specified device. 17975643a34SmiodIt is similar to the 18075643a34Smiod.Ic b 18175643a34Smiodcommand from the short menu above. 18275643a34SmiodThe 18375643a34Smiod.Dq primary 18475643a34Smiodand 18575643a34Smiod.Dq alternate 18675643a34Smiodpath settings may be booted with 18775643a34Smiod.Ic boot Ar pri 18875643a34Smiodand 18975643a34Smiod.Ic boot Ar alt 19075643a34Smiodrespectively. 19175643a34Smiod.It PATH 19275643a34SmiodDisplays or changes the boot and console devices. 19375643a34SmiodThe boot device is defined as the 19475643a34Smiod.Dq primary 19575643a34Smiodpath, and another setting may be stored as the 19675643a34Smiod.Dq alternate 19775643a34Smiodpath for rescue purposes. 19875643a34SmiodFor example, to define the primary boot path to the 19975643a34Smiod.Tn SCSI 20075643a34Smioddisk with ID 5 connected to the built-in controller, one would enter 20175643a34Smiod.Ic path primary Ar scsi.5 20275643a34Smiod.Pp 20375643a34SmiodWhen invoked without parameters, 20475643a34Smiod.Ic path 20575643a34Smiodwill list the various path settings. 20675643a34Smiod.El 20775643a34Smiod.\" 20875643a34Smiod.Ss Modern PDC operation 209583537b7SmickeyMachines equipped with 7100LC, 7200 or 7300LC CPU types are 2105ebae2a6Sjmcusually blessed with a different kind of PDC. 21175643a34SmiodThere is only one interactive mode, with a 21275643a34Smiod.Em BOOT_ADMIN> 21375643a34Smiodprompt, which provides both boot settings and commands. 214c989ca0dSjmcThe complete list of commands depends on the machine and PDC version. 21575643a34SmiodThe following list only mentions commands impacting the boot process. 21675643a34Smiod.Bl -tag -width auto\ search -offset indent 217c989ca0dSjmc.It Ic auto boot 21875643a34SmiodDisplays or changes the autoboot setting. 21975643a34SmiodIf 2200d8a9824Sjmc.Ic auto boot 22175643a34Smiodis set to 22275643a34Smiod.Dq on , 22375643a34Smiodthe PDC will always attempt to boot. 2245cd9ee9dSjmcThe booted device chosen will depend on the 2250d8a9824Sjmc.Ic auto search 22675643a34Smiodsetting. 227c989ca0dSjmc.It Ic auto search 22875643a34SmiodDisplays or changes the device scan setting. 22975643a34SmiodIf 2300d8a9824Sjmc.Ic auto search 23175643a34Smiodis set to 23275643a34Smiod.Dq on , 23375643a34Smiodthe PDC will attempt to boot the first bootable device found in 234c989ca0dSjmcthis order: 23575643a34Smiod.Bl -enum -offset indent -compact 23675643a34Smiod.It 237c989ca0dSjmcBoot device 23875643a34Smiod.Em path 23975643a34Smiodsetting. 24075643a34Smiod.It 24175643a34Smiod.Tn SCSI 24275643a34Smioddevices connected to the built-in 24375643a34Smiod.Tn SCSI 24475643a34Smiodcontroller, 24575643a34Smiodthe highest ID numbers being preferred. 24675643a34Smiod.It 24775643a34SmiodNetwork 24875643a34Smiod.Em bootp 249583537b7Smickeyserver (see also 250583537b7Smickey.Xr dhcpd 8 ) . 25175643a34Smiod.It 25275643a34SmiodOther 25375643a34Smiod.Tn SCSI 25475643a34Smioddevices connected to secondary controllers, 25575643a34Smiodthe highest ID numbers being preferred. 25675643a34Smiod.El 25775643a34SmiodIf 2580d8a9824Sjmc.Ic auto search 25975643a34Smiodis set to 26075643a34Smiod.Dq off 26175643a34Smiodand the primary boot path points to a bootable device, 26275643a34Smiodno device scan will occur. 26375643a34Smiod.Pp 26475643a34SmiodNote that setting 2650d8a9824Sjmc.Ic auto search 26675643a34Smiodto 26775643a34Smiod.Dq on 26875643a34Smiodwill force autoboot, regardless of the 2690d8a9824Sjmc.Ic auto boot 27075643a34Smiodvalue. 271c989ca0dSjmc.It Ic boot 27275643a34SmiodBoots off the specified device. 27375643a34SmiodThe 27475643a34Smiod.Dq primary 27575643a34Smiodand 27675643a34Smiod.Dq alternate 27775643a34Smiodpath settings may be booted with 27875643a34Smiod.Ic boot Ar pri 27975643a34Smiodand 28075643a34Smiod.Ic boot Ar alt 28175643a34Smiodrespectively. 282c989ca0dSjmc.It Ic path 28375643a34SmiodDisplays or changes the boot and console devices. 28475643a34SmiodThe boot device is defined as the 28575643a34Smiod.Dq primary 28675643a34Smiodpath, and another setting may be stored as the 28775643a34Smiod.Dq alternate 28875643a34Smiodpath for rescue purposes. 28975643a34SmiodFor example, to define the primary boot path to the 29075643a34Smiod.Tn SCSI 29175643a34Smioddisk with ID 5 connected to the built-in controller, one would enter 2925ebae2a6Sjmc.Ic path pri Ar scsi.5 . 29375643a34Smiod.Pp 29475643a34SmiodWhen invoked without parameters, 29575643a34Smiod.Ic path 29675643a34Smiodwill list the various path settings. 29775643a34Smiod.El 29875643a34Smiod.\" 29975643a34Smiod.Ss Boot process options 30075643a34SmiodThe 30175643a34Smiod.Ox 302c989ca0dSjmchppa boot loader program is extensively described in a separate document, 30375643a34Smiod.Xr boot 8 . 30475643a34Smiod.Ss Abnormal system termination 30575643a34SmiodIf the system crashes, it will enter the kernel debugger, 30675643a34Smiod.Xr ddb 4 , 30775643a34Smiodif it is configured in the kernel. 30875643a34SmiodIf the crash occurred during 30975643a34Smiodinitialization and the debugger is not present or is exited, the 31075643a34Smiodkernel will halt the system. 31175643a34SmiodIf the crash occurred during normal operation and the debugger 31275643a34Smiodis not present or is exited, the system will attempt a dump to the 31375643a34Smiodconfigured dump device (which will be automatically recovered with 31475643a34Smiod.Xr savecore 8 31575643a34Smiodduring the next multi-user boot cycle), and after the dump is complete 31675643a34Smiod(successful or not) the kernel will attempt a reboot. 31775643a34Smiod.Sh FILES 318583537b7Smickey.Bl -tag -width /usr/mdec/xxbootxx -compact 31975643a34Smiod.It Pa /bsd 32075643a34Smioddefault system kernel 321ad3220b1Smiod.It Pa /bsd.rd 322ad3220b1Smiodstandalone installation kernel, suitable for disaster recovery 32375643a34Smiod.It Pa boot.lif 32475643a34Smiodnetwork bootstrap and kernel combined image 325583537b7Smickey.It Pa /usr/mdec/cdboot 326583537b7Smickeyprimary bootstrap for 327583537b7Smickey.Dq cd9660 328583537b7Smickeyfile system 329583537b7Smickey.It Pa /usr/mdec/xxboot 330583537b7Smickeyprimary bootstrap for 331583537b7Smickey.Dq ffs 332583537b7Smickeyfile system 333583537b7Smickey.It Pa /usr/mdec/boot 334583537b7Smickeysystem bootstrap (usually also installed as 335583537b7Smickey.Pa /boot ) 33675643a34Smiod.El 33775643a34Smiod.Sh SEE ALSO 33875643a34Smiod.Xr ddb 4 , 33975643a34Smiod.Xr boot 8 , 340583537b7Smickey.Xr dhcpd 8 , 34175643a34Smiod.Xr halt 8 , 34275643a34Smiod.Xr init 8 , 343*62e03839Skn.Xr installboot 8 , 344583537b7Smickey.Xr rbootd 8 , 34575643a34Smiod.Xr reboot 8 , 34675643a34Smiod.Xr savecore 8 , 34775643a34Smiod.Xr shutdown 8 348