1*01869ca4Swiz.\" $NetBSD: boot.8,v 1.2 2017/07/03 21:31:00 wiz Exp $ 26d3ceb1dSskrll.\" 36d3ceb1dSskrll.\" $OpenBSD: boot_hppa.8,v 1.11 2004/05/25 22:27:44 jmc Exp $ 46d3ceb1dSskrll.\" 56d3ceb1dSskrll.\" Copyright (c) 2002, Miodrag Vallat. 66d3ceb1dSskrll.\" All rights reserved. 76d3ceb1dSskrll.\" 86d3ceb1dSskrll.\" Redistribution and use in source and binary forms, with or without 96d3ceb1dSskrll.\" modification, are permitted provided that the following conditions 106d3ceb1dSskrll.\" are met: 116d3ceb1dSskrll.\" 1. Redistributions of source code must retain the above copyright 126d3ceb1dSskrll.\" notice, this list of conditions and the following disclaimer. 136d3ceb1dSskrll.\" 2. Redistributions in binary form must reproduce the above copyright 146d3ceb1dSskrll.\" notice, this list of conditions and the following disclaimer in the 156d3ceb1dSskrll.\" documentation and/or other materials provided with the distribution. 166d3ceb1dSskrll.\" 176d3ceb1dSskrll.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 186d3ceb1dSskrll.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 196d3ceb1dSskrll.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 206d3ceb1dSskrll.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 216d3ceb1dSskrll.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 226d3ceb1dSskrll.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 236d3ceb1dSskrll.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 246d3ceb1dSskrll.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 256d3ceb1dSskrll.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 266d3ceb1dSskrll.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 276d3ceb1dSskrll.\" SUCH DAMAGE. 286d3ceb1dSskrll.\" 296d3ceb1dSskrll.Dd July 27, 2004 306d3ceb1dSskrll.Dt BOOT 8 hppa 316d3ceb1dSskrll.Os 326d3ceb1dSskrll.Sh NAME 336d3ceb1dSskrll.Nm boot 346d3ceb1dSskrll.Nd hppa system bootstrapping procedures 356d3ceb1dSskrll.Sh DESCRIPTION 366d3ceb1dSskrll.Ss System starts 376d3ceb1dSskrllWhen powered on, after a panic, or if the system is rebooted via 386d3ceb1dSskrll.Xr reboot 8 396d3ceb1dSskrllor 406d3ceb1dSskrll.Xr shutdown 8 , 416d3ceb1dSskrllthe hppa firmware 426d3ceb1dSskrll.Pq Dq PDC 436d3ceb1dSskrllwill proceed to its initialization, and will boot an operating system 446d3ceb1dSskrllif autoboot is enabled. 456d3ceb1dSskrll.\" 466d3ceb1dSskrll.Ss Boot process description 476d3ceb1dSskrllSystem boot blocks are provided as a 486d3ceb1dSskrll.Dq LIF 496d3ceb1dSskrll.Pq Logical Interchange Format 506d3ceb1dSskrllarchive, either on a disk device, or via the network, using the 516d3ceb1dSskrll.Em bootp 526d3ceb1dSskrllor 536d3ceb1dSskrll.Em rboot 546d3ceb1dSskrllprotocols, depending on the PDC version. 556d3ceb1dSskrll.\" A small 566d3ceb1dSskrll.\" .Xr mkboot 8 576d3ceb1dSskrll.\" utility 586d3ceb1dSskrll.\" is provided for combining primary boot and a number 596d3ceb1dSskrll.\" of images (OS kernels or standalone binaries) 606d3ceb1dSskrll.\" into one 616d3ceb1dSskrll.\" .Dq LIF 626d3ceb1dSskrll.\" volume suitable for booting. 636d3ceb1dSskrll.Ss PDC concepts 646d3ceb1dSskrllIf autoboot is enabled, the PDC will attempt to boot from the specified 656d3ceb1dSskrll.Dq boot path 666d3ceb1dSskrllvalue. 676d3ceb1dSskrllIf no 686d3ceb1dSskrll.Dq boot path 696d3ceb1dSskrllhas been specified, the PDC will then scan for bootable devices and 706d3ceb1dSskrllboot from the first found, after a few seconds allowing the user to 716d3ceb1dSskrllinterrupt the boot process. 726d3ceb1dSskrllIf autoboot is disabled, the PDC will enter interactive mode, after an 736d3ceb1dSskrlloptional device scan. 746d3ceb1dSskrllIn all cases, it is possible to enter interactive mode by holding the 756d3ceb1dSskrllescape key during the selftests, or when prompted to do so to abort 766d3ceb1dSskrllthe current operation, unless the PDC has been configured in 776d3ceb1dSskrll.Dq secure mode . 786d3ceb1dSskrll.\" 796d3ceb1dSskrll.Ss ISL interaction 806d3ceb1dSskrll.Dq ISL 816d3ceb1dSskrllstands for 826d3ceb1dSskrll.Dq Initial System Loader 836d3ceb1dSskrlland is the 846d3ceb1dSskrll.Nm 856d3ceb1dSskrllprogram in 866d3ceb1dSskrll.Nx . 876d3ceb1dSskrllOn all versions of the PDC except for the 712 and 725 models the 886d3ceb1dSskrll.Dq boot 896d3ceb1dSskrllcommand (see below) will be followed by the question: 90*01869ca4Swiz.Dq Interact with IPL (Y, N, or Cancel)?> 916d3ceb1dSskrllwhere a positive answer will invoke an interactive prompt in the 926d3ceb1dSskrll.Nm 936d3ceb1dSskrllprogram later and negative will thus suppress it. 946d3ceb1dSskrllA cancellation will abort the boot process. 956d3ceb1dSskrll.Pp 966d3ceb1dSskrllOn the 712 and 725 models firmware an additional 976d3ceb1dSskrll.Dq isl 986d3ceb1dSskrllargument should be given to the 996d3ceb1dSskrll.Dq boot 1006d3ceb1dSskrllcommand to invoke the 1016d3ceb1dSskrll.Nm 1026d3ceb1dSskrllinteractive prompt. 1036d3ceb1dSskrllThe default behaviour is a non-interactive boot process. 1046d3ceb1dSskrll.\" 1056d3ceb1dSskrll.Ss Old PDC operation 1066d3ceb1dSskrllThis version is used on the following models: 1076d3ceb1dSskrll705, 7x0, 715/33/50/75, 725/50/75, 735, 755. 1086d3ceb1dSskrllThere are two levels of interactive commands in this version. 1096d3ceb1dSskrllThe first level is a short menu: 1106d3ceb1dSskrll.Bd -literal -offset indent 1116d3ceb1dSskrllb) Boot from specified device 1126d3ceb1dSskrlls) Search for bootable device 1136d3ceb1dSskrlla) Enter Boot Administration mode 1146d3ceb1dSskrllx) Exit and continue boot sequence 1156d3ceb1dSskrll 1166d3ceb1dSskrllSelect from menu: 1176d3ceb1dSskrll.Ed 1186d3ceb1dSskrll.Pp 1196d3ceb1dSskrllwhich provides the following commands: 1206d3ceb1dSskrll.Pp 1216d3ceb1dSskrll.Bl -tag -width "XXX" -offset indent -compact 1226d3ceb1dSskrll.It Cm b 1236d3ceb1dSskrllboot from a device found during the scan, 1246d3ceb1dSskrlleither with its short 1256d3ceb1dSskrll.Dq P# 1266d3ceb1dSskrllform, or a complete name specification. 1276d3ceb1dSskrllFor example, to boot from the 1286d3ceb1dSskrll.Tn SCSI 1296d3ceb1dSskrlldisk with id 6 off the built-in (first) controller, 1306d3ceb1dSskrllone would enter 1316d3ceb1dSskrll.Ic b Ar scsi.6.0 . 1326d3ceb1dSskrll.It Cm s 1336d3ceb1dSskrllrescan for bootable devices. 1346d3ceb1dSskrll.It Cm a 1356d3ceb1dSskrllenter the second part of interactive mode. 1366d3ceb1dSskrll.It Cm x 1376d3ceb1dSskrllresume an interrupted boot sequence. 1386d3ceb1dSskrll.El 1396d3ceb1dSskrll.Pp 1406d3ceb1dSskrllThe 1416d3ceb1dSskrll.Dq Boot Administration 1426d3ceb1dSskrllmode, recognizable with its 143*01869ca4Swiz.Em BOOT_ADMIN> 1446d3ceb1dSskrllprompt, controls the various boot options. 1456d3ceb1dSskrllThe complete list of commands depends on the machine and PDC version. 1466d3ceb1dSskrllThe following list only mentions commands impacting the boot process. 1476d3ceb1dSskrll.Bl -tag -width AUTOSELECT -offset indent 1486d3ceb1dSskrll.It AUTOSELECT 1496d3ceb1dSskrllDisplays or changes the autoboot setting. 1506d3ceb1dSskrllIf autoselect is set to 1516d3ceb1dSskrll.Dq on , 1526d3ceb1dSskrllthe PDC will always attempt to boot the first bootable device found in 1536d3ceb1dSskrllthis order: 1546d3ceb1dSskrll.Bl -enum -offset indent -compact 1556d3ceb1dSskrll.It 1566d3ceb1dSskrllBoot device 1576d3ceb1dSskrll.Em path 1586d3ceb1dSskrllsetting. 1596d3ceb1dSskrll.It 1606d3ceb1dSskrll.Tn SCSI 1616d3ceb1dSskrlldevices connected to the built-in 1626d3ceb1dSskrll.Tn SCSI 1636d3ceb1dSskrllcontroller, 1646d3ceb1dSskrllthe highest ID numbers being preferred. 1656d3ceb1dSskrll.It 1666d3ceb1dSskrllNetwork 1676d3ceb1dSskrll.Em rboot 1686d3ceb1dSskrllserver (see also 1696d3ceb1dSskrll.Xr rbootd 8 ) . 1706d3ceb1dSskrll.It 1716d3ceb1dSskrllOther 1726d3ceb1dSskrll.Tn SCSI 1736d3ceb1dSskrlldevices connected to secondary controllers, 1746d3ceb1dSskrllthe highest ID numbers being preferred. 1756d3ceb1dSskrll.El 1766d3ceb1dSskrllIf the 1776d3ceb1dSskrll.Em primary path 1786d3ceb1dSskrllsetting defines a bootable device, no device scan will occur. 1796d3ceb1dSskrll.It BOOT 1806d3ceb1dSskrllBoots off the specified device. 1816d3ceb1dSskrllIt is similar to the 1826d3ceb1dSskrll.Ic b 1836d3ceb1dSskrllcommand from the short menu above. 1846d3ceb1dSskrllThe 1856d3ceb1dSskrll.Dq primary 1866d3ceb1dSskrlland 1876d3ceb1dSskrll.Dq alternate 1886d3ceb1dSskrllpath settings may be booted with 1896d3ceb1dSskrll.Ic boot Ar pri 1906d3ceb1dSskrlland 1916d3ceb1dSskrll.Ic boot Ar alt 1926d3ceb1dSskrllrespectively. 1936d3ceb1dSskrll.It PATH 1946d3ceb1dSskrllDisplays or changes the boot and console devices. 1956d3ceb1dSskrllThe boot device is defined as the 1966d3ceb1dSskrll.Dq primary 1976d3ceb1dSskrllpath, and another setting may be stored as the 1986d3ceb1dSskrll.Dq alternate 1996d3ceb1dSskrllpath for rescue purposes. 2006d3ceb1dSskrllFor example, to define the primary boot path to the 2016d3ceb1dSskrll.Tn SCSI 2026d3ceb1dSskrlldisk with ID 5 connected to the built-in controller, one would enter 2036d3ceb1dSskrll.Ic path primary Ar scsi.5 2046d3ceb1dSskrll.Pp 2056d3ceb1dSskrllWhen invoked without parameters, 2066d3ceb1dSskrll.Ic path 2076d3ceb1dSskrllwill list the various path settings. 2086d3ceb1dSskrll.El 2096d3ceb1dSskrll.\" 2106d3ceb1dSskrll.Ss Modern PDC operation 2116d3ceb1dSskrllMachines equipped with 7100LC, 7200, or 7300LC CPU types are 2126d3ceb1dSskrllusually blessed with a different kind of PDC. 2136d3ceb1dSskrllThere is only one interactive mode, with a 214*01869ca4Swiz.Em BOOT_ADMIN> 2156d3ceb1dSskrllprompt, which provides both boot settings and commands. 2166d3ceb1dSskrllThe complete list of commands depends on the machine and PDC version. 2176d3ceb1dSskrllThe following list only mentions commands impacting the boot process. 2186d3ceb1dSskrll.Bl -tag -width auto\ search -offset indent 2196d3ceb1dSskrll.It Ic auto boot 2206d3ceb1dSskrllDisplays or changes the autoboot setting. 2216d3ceb1dSskrllIf 2226d3ceb1dSskrll.Ic auto boot 2236d3ceb1dSskrllis set to 2246d3ceb1dSskrll.Dq on , 2256d3ceb1dSskrllthe PDC will always attempt to boot. 2266d3ceb1dSskrllThe booted device chosen will depend on the 2276d3ceb1dSskrll.Ic auto search 2286d3ceb1dSskrllsetting. 2296d3ceb1dSskrll.It Ic auto search 2306d3ceb1dSskrllDisplays or changes the device scan setting. 2316d3ceb1dSskrllIf 2326d3ceb1dSskrll.Ic auto search 2336d3ceb1dSskrllis set to 2346d3ceb1dSskrll.Dq on , 2356d3ceb1dSskrllthe PDC will attempt to boot the first bootable device found in 2366d3ceb1dSskrllthis order: 2376d3ceb1dSskrll.Bl -enum -offset indent -compact 2386d3ceb1dSskrll.It 2396d3ceb1dSskrllBoot device 2406d3ceb1dSskrll.Em path 2416d3ceb1dSskrllsetting. 2426d3ceb1dSskrll.It 2436d3ceb1dSskrll.Tn SCSI 2446d3ceb1dSskrlldevices connected to the built-in 2456d3ceb1dSskrll.Tn SCSI 2466d3ceb1dSskrllcontroller, 2476d3ceb1dSskrllthe highest ID numbers being preferred. 2486d3ceb1dSskrll.It 2496d3ceb1dSskrllNetwork 2506d3ceb1dSskrll.Em bootp 2516d3ceb1dSskrllserver (see also 2526d3ceb1dSskrll.Xr dhcpd 8 ) . 2536d3ceb1dSskrll.It 2546d3ceb1dSskrllOther 2556d3ceb1dSskrll.Tn SCSI 2566d3ceb1dSskrlldevices connected to secondary controllers, 2576d3ceb1dSskrllthe highest ID numbers being preferred. 2586d3ceb1dSskrll.El 2596d3ceb1dSskrllIf 2606d3ceb1dSskrll.Ic auto search 2616d3ceb1dSskrllis set to 2626d3ceb1dSskrll.Dq off 2636d3ceb1dSskrlland the primary boot path points to a bootable device, 2646d3ceb1dSskrllno device scan will occur. 2656d3ceb1dSskrll.Pp 2666d3ceb1dSskrllNote that setting 2676d3ceb1dSskrll.Ic auto search 2686d3ceb1dSskrllto 2696d3ceb1dSskrll.Dq on 2706d3ceb1dSskrllwill force autoboot, regardless of the 2716d3ceb1dSskrll.Ic auto boot 2726d3ceb1dSskrllvalue. 2736d3ceb1dSskrll.It Ic boot 2746d3ceb1dSskrllBoots off the specified device. 2756d3ceb1dSskrllThe 2766d3ceb1dSskrll.Dq primary 2776d3ceb1dSskrlland 2786d3ceb1dSskrll.Dq alternate 2796d3ceb1dSskrllpath settings may be booted with 2806d3ceb1dSskrll.Ic boot Ar pri 2816d3ceb1dSskrlland 2826d3ceb1dSskrll.Ic boot Ar alt 2836d3ceb1dSskrllrespectively. 2846d3ceb1dSskrll.It Ic path 2856d3ceb1dSskrllDisplays or changes the boot and console devices. 2866d3ceb1dSskrllThe boot device is defined as the 2876d3ceb1dSskrll.Dq primary 2886d3ceb1dSskrllpath, and another setting may be stored as the 2896d3ceb1dSskrll.Dq alternate 2906d3ceb1dSskrllpath for rescue purposes. 2916d3ceb1dSskrllFor example, to define the primary boot path to the 2926d3ceb1dSskrll.Tn SCSI 2936d3ceb1dSskrlldisk with ID 5 connected to the built-in controller, one would enter 2946d3ceb1dSskrll.Ic path pri Ar scsi.5 . 2956d3ceb1dSskrll.Pp 2966d3ceb1dSskrllWhen invoked without parameters, 2976d3ceb1dSskrll.Ic path 2986d3ceb1dSskrllwill list the various path settings. 2996d3ceb1dSskrll.El 3006d3ceb1dSskrll.\" 3016d3ceb1dSskrll.Ss Abnormal system termination 3026d3ceb1dSskrllIf the system crashes, it will enter the kernel debugger, 3036d3ceb1dSskrll.Xr ddb 4 , 3046d3ceb1dSskrllif it is configured in the kernel. 3056d3ceb1dSskrllIf the crash occurred during 3066d3ceb1dSskrllinitialization and the debugger is not present or is exited, the 3076d3ceb1dSskrllkernel will halt the system. 3086d3ceb1dSskrllIf the crash occurred during normal operation and the debugger 3096d3ceb1dSskrllis not present or is exited, the system will attempt a dump to the 3106d3ceb1dSskrllconfigured dump device (which will be automatically recovered with 3116d3ceb1dSskrll.Xr savecore 8 3126d3ceb1dSskrllduring the next multi-user boot cycle), and after the dump is complete 3136d3ceb1dSskrll(successful or not) the kernel will attempt a reboot. 3146d3ceb1dSskrll.Sh FILES 3156d3ceb1dSskrll.Bl -tag -width /usr/mdec/xxbootxx -compact 3166d3ceb1dSskrll.It Pa boot.lif 3176d3ceb1dSskrllnetwork bootstrap and kernel combined image 3186d3ceb1dSskrll.It Pa /netbsd 3196d3ceb1dSskrlldefault 3206d3ceb1dSskrll.Nx 3216d3ceb1dSskrllsystem kernel 3226d3ceb1dSskrll.It Pa /usr/mdec/xxboot 3236d3ceb1dSskrllprimary bootstrap for 3246d3ceb1dSskrll.Dq ffs 3256d3ceb1dSskrllfile system 3266d3ceb1dSskrll.It Pa /usr/mdec/boot 3276d3ceb1dSskrllsystem bootstrap (usually also installed as 3286d3ceb1dSskrll.Pa /boot ) 3296d3ceb1dSskrll.El 3306d3ceb1dSskrll.Sh SEE ALSO 3316d3ceb1dSskrll.Xr ddb 4 , 3326d3ceb1dSskrll.Xr dhcpd 8 , 3336d3ceb1dSskrll.Xr halt 8 , 3346d3ceb1dSskrll.Xr init 8 , 3356d3ceb1dSskrll.Xr installboot 8 , 3366d3ceb1dSskrll.Xr rbootd 8 , 3376d3ceb1dSskrll.Xr reboot 8 , 3386d3ceb1dSskrll.Xr savecore 8 , 3396d3ceb1dSskrll.Xr shutdown 8 340