1*09f0676aSragge.\" $NetBSD: boot.8,v 1.15 2018/03/18 10:54:54 ragge Exp $ 2555d4b51Scgd.\" 3369451e4Scgd.\" Copyright (c) 1980, 1991, 1993 4369451e4Scgd.\" The Regents of the University of California. All rights reserved. 5369451e4Scgd.\" 6369451e4Scgd.\" Redistribution and use in source and binary forms, with or without 7369451e4Scgd.\" modification, are permitted provided that the following conditions 8369451e4Scgd.\" are met: 9369451e4Scgd.\" 1. Redistributions of source code must retain the above copyright 10369451e4Scgd.\" notice, this list of conditions and the following disclaimer. 11369451e4Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 12369451e4Scgd.\" notice, this list of conditions and the following disclaimer in the 13369451e4Scgd.\" documentation and/or other materials provided with the distribution. 14075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors 15369451e4Scgd.\" may be used to endorse or promote products derived from this software 16369451e4Scgd.\" without specific prior written permission. 17369451e4Scgd.\" 18369451e4Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19369451e4Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20369451e4Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21369451e4Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22369451e4Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23369451e4Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24369451e4Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25369451e4Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26369451e4Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27369451e4Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28369451e4Scgd.\" SUCH DAMAGE. 29369451e4Scgd.\" 30369451e4Scgd.\" @(#)boot_vax.8 8.2 (Berkeley) 4/19/94 31369451e4Scgd.\" 32369451e4Scgd.Dd April 19, 1994 33369451e4Scgd.Dt BOOT 8 vax 34369451e4Scgd.Os 35369451e4Scgd.Sh NAME 36369451e4Scgd.Nm boot 37369451e4Scgd.Nd 38369451e4Scgdsystem bootstrapping procedures 39369451e4Scgd.Sh DESCRIPTION 40839a072bSreed.Ss Power fail and crash recovery 41369451e4ScgdNormally, the system will reboot itself at power-up or after crashes. 42369451e4ScgdProvided the auto-restart is enabled on the machine front panel, 43369451e4Scgdan automatic consistency check of the file systems will be performed, 44369451e4Scgdand unless this fails, the system will resume multi-user operations. 45369451e4Scgd.Pp 46839a072bSreed.Ss Cold starts 47369451e4ScgdThese are processor-type dependent. 48369451e4ScgdOn an 11/780, there are two floppy files for each disk controller, 49369451e4Scgdboth of which cause boots from unit 0 of the root file system 50369451e4Scgdof a controller located on mba0 or uba0. 51369451e4ScgdOne gives a single user shell, while the other invokes the multi-user 52369451e4Scgdautomatic reboot. 53369451e4ScgdThus these files are 54369451e4Scgd.Tn HPS 55369451e4Scgdand 56369451e4Scgd.Tn HPM 57369451e4Scgdfor the single 58369451e4Scgdand multi-user boot from 59369451e4Scgd.Tn MASSBUS 60369451e4ScgdRP06/RM03/RM05 disks, 61369451e4Scgd.Tn UPS 62369451e4Scgdand 63369451e4Scgd.Tn UPM 64369451e4Scgdfor 65369451e4Scgd.Tn UNIBUS 66369451e4Scgdstorage module controller and disks 67369451e4Scgdsuch as the 68369451e4Scgd.Tn EMULEX 69369451e4ScgdSC-21 70369451e4Scgdand 71369451e4Scgd.Tn AMPEX 72369451e4Scgd9300 pair, 73369451e4Scgd.Tn RAS 74369451e4Scgdand 75369451e4Scgd.Tn RAM 76369451e4Scgdto boot from 77369451e4Scgd.Tn MSCP 78369451e4Scgdcontrollers and disks such as the RA81, 79369451e4Scgdor 80369451e4Scgd.Tn HKS 81369451e4Scgdand 82369451e4Scgd.Tn HKM 83369451e4Scgdfor RK07 disks. 84369451e4ScgdThere is also a script for booting from the default device, 85369451e4Scgdwhich is normally a copy of one of the standard multi-user boot scripts, 86369451e4Scgdbut which may be modified to perform other actions 87369451e4Scgdor to boot from a different unit. 88369451e4ScgdThe situation on the 8600 is similar, with scripts loaded from the console RL02. 89369451e4Scgd.Pp 90369451e4ScgdGiving the command 91369451e4Scgd.Pp 9201869ca4Swiz.Dl >>>BOOT HPM 93369451e4Scgd.Pp 94369451e4Scgdwould boot the system from (e.g.) an RP06 and run the automatic consistency 95369451e4Scgdcheck as described in 96369451e4Scgd.Xr fsck 8 . 97369451e4Scgd(Note that it may 98369451e4Scgdbe necessary to type control-P 99369451e4Scgdand halt the processor 100369451e4Scgdto gain the attention of the 101369451e4Scgd.Tn LSI-11 10201869ca4Swizbefore getting the >>> prompt.) 103369451e4ScgdThe command 104369451e4Scgd.Pp 10501869ca4Swiz.Dl >>>BOOT ANY 106369451e4Scgd.Pp 107369451e4Scgdinvokes a version of the boot program in a way which allows you to 108369451e4Scgdspecify any system as the system to be booted. 109369451e4ScgdIt reads from the console a device specification (see below) followed 110369451e4Scgdimmediately by a pathname. 111369451e4Scgd.Pp 112369451e4ScgdThe scripts may be modified for local configuration if necessary. 113369451e4ScgdThe flags are placed in register 11 (as defined in 1145e015e5eSjoerg.In sys/reboot.h ) . 115369451e4ScgdThe boot device is specified in register 10. 116369451e4ScgdThe encoding of this register is also defined in 1175e015e5eSjoerg.In sys/reboot.h . 118369451e4ScgdThe current encoding has a historical basis, and is shown in the following 119369451e4Scgdtable: 120369451e4Scgd.Pp 121369451e4Scgd.Bd -unfilled -offset indent -compact 122369451e4Scgdbits usage 123369451e4Scgd0-7 boot device type (the device major number) 124369451e4Scgd8-15 disk partition 125369451e4Scgd16-19 drive unit 126369451e4Scgd20-23 controller number 127369451e4Scgd24-27 adaptor number (UNIBUS or MASSBUS as appropriate) 128369451e4Scgd.Ed 129369451e4Scgd.Pp 130369451e4ScgdThe adaptor number corresponds to the normal configuration on the 11/750, 131369451e4Scgdand to the order in which adaptors are found on the 11/780 and 8600 132369451e4Scgd(generally the same as the numbers used by 133dc026e05Sfair.Ux ) . 134369451e4Scgd.Pp 135369451e4ScgdOn an 11/750, the reset button will boot from the device 136dc026e05Sfairselected by the front panel boot device switch. 137dc026e05SfairIn systems with RK07's, position B normally selects the RK07 for boot. 138dc026e05SfairThis will boot multi-user. 139dc026e05SfairTo boot from RK07 with boot flags you may specify 140369451e4Scgd.Pp 141369451e4Scgd.Bd -unfilled -offset indent -compact 14201869ca4Swiz.Li \&>>>B/ Ns Fl n No DMA0 143369451e4Scgd.Ed 144369451e4Scgd.Pp 145369451e4Scgdwhere, giving a 146369451e4Scgd.Ar n 147369451e4Scgdof 1 causes the boot program 148369451e4Scgdto ask for the name of the system to be bootstrapped, 149369451e4Scgdgiving a 150369451e4Scgd.Ar n 151369451e4Scgdof 2 causes the boot program to come up single 152369451e4Scgduser, and a 153369451e4Scgd.Ar n 154369451e4Scgdof 3 causes both of these actions to occur. 155369451e4ScgdThe ``DM'' specifies RK07, the ``A'' represents the adaptor number 156369451e4Scgd.Pf ( Tn UNIBUS 157369451e4Scgdor 158369451e4Scgd.Tn MASSBUS ) , 159369451e4Scgdand the ``0'' is the drive unit number. 160369451e4ScgdOther disk types which may be used are DB 161369451e4Scgd.Pq Tn MASSBUS , 162369451e4ScgdDD (TU58), 163369451e4Scgdand DU 164369451e4Scgd.Pf ( Tn UDA-50/RA 165369451e4Scgddisk). 166369451e4ScgdA non-zero disk partition can be used by adding (partition times 1000 hex) 167369451e4Scgdto 168369451e4Scgd.Ar n . 169369451e4Scgd.Pp 170369451e4ScgdThe boot procedure on the Micro 171369451e4Scgd.Tn VAX 172369451e4ScgdII 173369451e4Scgdis similar. 174369451e4ScgdA switch on the back panel sets the power-up action 175369451e4Scgdto autoboot or to halt. 176369451e4ScgdWhen halted, the processor may be booted using the same syntax 177369451e4Scgdas on the 11/750. 178369451e4Scgd.Pp 179f15ca23eSwizThe 11/750 boot procedure uses the boot ROMs to load block 0 off of 180ed449c06Swizthe specified device. 181ed449c06SwizThe 182ed449c06Swiz.Pa /usr/mdec 183ed449c06Swizdirectory contains a number 184369451e4Scgdof bootstrap programs for the various disks which should be placed 185369451e4Scgdin a new pack by 186369451e4Scgd.Xr disklabel 8 . 187369451e4ScgdSimilarly, the Micro 188369451e4Scgd.Tn VAX 189369451e4ScgdII boot procedure loads a boot parameter block 190369451e4Scgdfrom block 0 of the disk. 191369451e4ScgdThe 192a4e2e678Swiz.Ic rdboot 193369451e4Scgd.Dq bootstrap 194369451e4Scgdcontains the correct parameters for an 195369451e4Scgd.Tn MSCP 196369451e4Scgddisk such 197369451e4Scgdas the RD53. 198369451e4Scgd.Pp 199369451e4ScgdOn any processor, the 200369451e4Scgd.Em boot 201369451e4Scgdprogram 202369451e4Scgdfinds the corresponding file on the given device 203ce5ebe99Scgd.Pf ( Pa netbsd 204369451e4Scgdby default), loads that file 205369451e4Scgdinto memory location zero, and starts the program at the entry address 206369451e4Scgdspecified in the program header (after clearing off the high bit 207369451e4Scgdof the specified entry address). 208369451e4Scgd.Pp 209369451e4ScgdThe file specifications used with 210369451e4Scgd.Dq BOOT ANY 211369451e4Scgdor 212369451e4Scgd.Dq \&B/3 213369451e4Scgdare of the form: 214369451e4Scgd.Pp 215369451e4Scgd.Dl device(adaptor,controller,unit,minor) 216369451e4Scgd.Pp 217369451e4Scgdwhere 218369451e4Scgd.Ar device 219369451e4Scgdis the type of the device to be searched, 220369451e4Scgd.Ar adaptor 221369451e4Scgdis the 222369451e4Scgd.Tn UNIBUS 223369451e4Scgdor 224369451e4Scgd.Tn MASSBUS 225369451e4Scgdnumber of the adaptor to which the device is attached, 226369451e4Scgd.Ar controller 227369451e4Scgdis the unit number of the controller or 228369451e4Scgd.Tn MASSBUS 229369451e4Scgdtape formatter on that adaptor, 230369451e4Scgd.Ar unit 231369451e4Scgdis the unit number of the disk or transport slave unit of the tape, 232369451e4Scgdand 233369451e4Scgd.Ar minor 234369451e4Scgdis the disk partition or tape file number. 235369451e4ScgdLeading adaptor or controller numbers default to 0. 236369451e4ScgdNormal line editing characters can be used when typing the file specification. 237369451e4ScgdThe following list of supported devices may vary from installation to 238369451e4Scgdinstallation: 239369451e4Scgd.Pp 240369451e4Scgd.Bd -unfilled -offset indent -compact 241369451e4Scgdhp MASSBUS disk drive 242369451e4Scgdup UNIBUS storage module drive 243369451e4Scgdht TE16,TU45,TU77 on MASSBUS 244369451e4Scgdkra storage module on a KDB50 245369451e4Scgdmt TU78 on MASSBUS 246369451e4Scgdhk RK07 on UNIBUS 247369451e4Scgdra storage module on a MSCP-compatible UNIBUS controller 248369451e4Scgdrb storage module on a 730 IDC 249369451e4Scgdrl RL02 on UNIBUS 250369451e4Scgdtm TM11 emulation tape drives on UNIBUS 251369451e4Scgdtms TMSCP-compatible tape 252369451e4Scgdts TS11 on UNIBUS 253369451e4Scgdut UNIBUS TU45 emulator 254369451e4Scgd.Ed 255369451e4Scgd.Pp 256369451e4ScgdFor example, 257369451e4Scgdto boot from a file system which starts at cylinder 0 258369451e4Scgdof unit 0 of a 259369451e4Scgd.Tn MASSBUS 260369451e4Scgddisk, type 261ce5ebe99Scgd.Ql hp(0,0)netbsd 262369451e4Scgdto the boot prompt; 263ce5ebe99Scgd.Ql hp(2,0,1,0)netbsd 264369451e4Scgdwould specify drive 1 on 265369451e4Scgd.Tn MASSBUS 266369451e4Scgdadaptor 2; 267ce5ebe99Scgd.Ql up(0,0)netbsd 268369451e4Scgdwould specify a 269369451e4Scgd.Tn UNIBUS 270369451e4Scgddrive, 271ce5ebe99Scgd.Ql hk(0,0)netbsd 272369451e4Scgdwould specify 273369451e4Scgdan RK07 disk drive, 274ce5ebe99Scgd.Ql ra(1,0,0,0)netbsd 275369451e4Scgdwould specify a 276369451e4Scgd.Tn UDA50 277369451e4Scgddisk drive on a second 278369451e4Scgd.Tn UNIBUS , 279369451e4Scgdand 280ce5ebe99Scgd.Ql rb(0,0)netbsd 281369451e4Scgdwould specify a 282369451e4Scgddisk on a 730 283369451e4Scgd.Tn IDC . 284369451e4ScgdFor tapes, the minor device number gives a file offset; 285369451e4Scgd.Ql mt(1,2,3,4) 286369451e4Scgdwould specify the fifth file on slave 3 of the formatter 287369451e4Scgdat 288369451e4Scgd.Ql drive 289369451e4Scgd2 on mba 1. 290369451e4Scgd.Pp 291369451e4ScgdOn an 11/750 with patchable control store, 292369451e4Scgdmicrocode patches will be installed by 293369451e4Scgd.Em boot 294369451e4Scgdif the file 295*09f0676aSragge.Pa pcs750.bin 296369451e4Scgdexists in the root of the filesystem from which the system is booted. 297369451e4Scgd.Pp 298369451e4ScgdIn an emergency, the bootstrap methods described in the paper 299369451e4Scgd.%T Installing and Operating 4.3bsd 300369451e4Scgdcan be used to boot from a distribution tape. 301369451e4Scgd.Sh FILES 302369451e4Scgd.Bl -tag -width /usr/mdec/xxboot -compact 303ce5ebe99Scgd.It Pa /netbsd 304369451e4Scgdsystem code 305369451e4Scgd.It Pa /boot 306369451e4Scgdsystem bootstrap 307369451e4Scgd.It Pa /usr/mdec/xxboot 308*09f0676aSraggesector 0-15 boot block 309369451e4Scgd.It Pa /pcs750.bin 310369451e4Scgdmicrocode patch file on 750 311369451e4Scgd.El 312369451e4Scgd.Sh SEE ALSO 313369451e4Scgd.Xr arff 8 , 314369451e4Scgd.Xr halt 8 , 315369451e4Scgd.Xr reboot 8 , 316369451e4Scgd.Xr shutdown 8 317369451e4Scgd.Sh HISTORY 318369451e4ScgdThe 319369451e4Scgd.Nm 320369451e4Scgdcommand appeared in 321369451e4Scgd.Bx 4.0 . 322