161534Sbostic.\" Copyright (c) 1980, 1991, 1993 261534Sbostic.\" The Regents of the University of California. All rights reserved. 318908Smckusick.\" 443798Strent.\" %sccs.include.redist.man% 518908Smckusick.\" 6*67001Smckusick.\" @(#)boot_vax.8 8.2 (Berkeley) 04/19/94 736179Sbostic.\" 847463Scael.Dd 9*67001Smckusick.Dt BOOT 8 vax 1051434Sbostic.Os 1147463Scael.Sh NAME 1251434Sbostic.Nm boot 1347463Scael.Nd 1451434Sbosticsystem bootstrapping procedures 1547463Scael.Sh DESCRIPTION 1647463Scael.Sy Power fail and crash recovery. 1718908SmckusickNormally, the system will reboot itself at power-up or after crashes. 1818908SmckusickProvided the auto-restart is enabled on the machine front panel, 1928713Skarelsan automatic consistency check of the file systems will be performed, 2028713Skarelsand unless this fails, the system will resume multi-user operations. 2147463Scael.Pp 2251434Sbostic.Sy Cold starts. 2335064SkarelsThese are processor-type dependent. 2418908SmckusickOn an 11/780, there are two floppy files for each disk controller, 2518908Smckusickboth of which cause boots from unit 0 of the root file system 2618908Smckusickof a controller located on mba0 or uba0. 2718908SmckusickOne gives a single user shell, while the other invokes the multi-user 2851434Sbosticautomatic reboot. 2951434SbosticThus these files are 3047463Scael.Tn HPS 3147463Scaeland 3247463Scael.Tn HPM 3347463Scaelfor the single 3447463Scaeland multi-user boot from 3547463Scael.Tn MASSBUS 3647463ScaelRP06/RM03/RM05 disks, 3747463Scael.Tn UPS 3847463Scaeland 3947463Scael.Tn UPM 4047463Scaelfor 4147463Scael.Tn UNIBUS 4247463Scaelstorage module controller and disks 4347463Scaelsuch as the 4447463Scael.Tn EMULEX 4547463ScaelSC-21 4647463Scaeland 4747463Scael.Tn AMPEX 4847463Scael9300 pair, 4947463Scael.Tn RAS 5047463Scaeland 5147463Scael.Tn RAM 5247463Scaelto boot from 5347463Scael.Tn MSCP 5447463Scaelcontrollers and disks such as the RA81, 5547463Scaelor 5647463Scael.Tn HKS 5747463Scaeland 5847463Scael.Tn HKM 5947463Scaelfor RK07 disks. 6028713SkarelsThere is also a script for booting from the default device, 6128713Skarelswhich is normally a copy of one of the standard multi-user boot scripts, 6228713Skarelsbut which may be modified to perform other actions 6328713Skarelsor to boot from a different unit. 6428713SkarelsThe situation on the 8600 is similar, with scripts loaded from the console RL02. 6547463Scael.Pp 6618908SmckusickGiving the command 6747463Scael.Pp 6847463Scael.Dl >>>BOOT HPM 6947463Scael.Pp 7035064Skarelswould boot the system from (e.g.) an RP06 and run the automatic consistency 7118908Smckusickcheck as described in 7247463Scael.Xr fsck 8 . 7318908Smckusick(Note that it may 7418908Smckusickbe necessary to type control-P 7528713Skarelsand halt the processor 7647463Scaelto gain the attention of the 7747463Scael.Tn LSI-11 7847463Scaelbefore getting the >>> prompt.) 7918908SmckusickThe command 8047463Scael.Pp 8147463Scael.Dl >>>BOOT ANY 8247463Scael.Pp 8318908Smckusickinvokes a version of the boot program in a way which allows you to 8418908Smckusickspecify any system as the system to be booted. 8518908SmckusickIt reads from the console a device specification (see below) followed 8618908Smckusickimmediately by a pathname. 8747463Scael.Pp 8828713SkarelsThe scripts may be modified for local configuration if necessary. 8930215SbosticThe flags are placed in register 11 (as defined in 9047463Scael.Aq Pa sys/reboot.h ) . 9135064SkarelsThe boot device is specified in register 10. 9235064SkarelsThe encoding of this register is also defined in 9347463Scael.Aq Pa sys/reboot.h . 9435064SkarelsThe current encoding has a historical basis, and is shown in the following 9535064Skarelstable: 9647463Scael.Pp 9747463Scael.Bd -unfilled -offset indent -compact 9847463Scaelbits usage 9947463Scael0-7 boot device type (the device major number) 10047463Scael8-15 disk partition 10147463Scael16-19 drive unit 10247463Scael20-23 controller number 10347463Scael24-27 adaptor number (UNIBUS or MASSBUS as appropriate) 10447463Scael.Ed 10547463Scael.Pp 10635064SkarelsThe adaptor number corresponds to the normal configuration on the 11/750, 10735064Skarelsand to the order in which adaptors are found on the 11/780 and 8600 10847463Scael(generally the same as the numbers used by 10947463Scael.Tn UNIX ) . 11047463Scael.Pp 11118908SmckusickOn an 11/750, the reset button will boot from the device 11218908Smckusickselected by the front panel boot device switch. In systems 11318908Smckusickwith RK07's, position B normally selects the RK07 for boot. 11418908SmckusickThis will boot multi-user. To boot from RK07 with boot flags you 11518908Smckusickmay specify 11647463Scael.Pp 11747463Scael.Bd -unfilled -offset indent -compact 11847463Scael.Li \&>>>B/ Ns Fl n No DMA0 11947463Scael.Ed 12047463Scael.Pp 12147463Scaelwhere, giving a 12247463Scael.Ar n 12347463Scaelof 1 causes the boot program 12418908Smckusickto ask for the name of the system to be bootstrapped, 12547463Scaelgiving a 12647463Scael.Ar n 12747463Scaelof 2 causes the boot program to come up single 12847463Scaeluser, and a 12947463Scael.Ar n 13047463Scaelof 3 causes both of these actions to occur. 13147463ScaelThe ``DM'' specifies RK07, the ``A'' represents the adaptor number 13247463Scael.Pf ( Tn UNIBUS 13347463Scaelor 13447463Scael.Tn MASSBUS ) , 13547463Scaeland the ``0'' is the drive unit number. 13647463ScaelOther disk types which may be used are DB 13747463Scael.Pq Tn MASSBUS , 13847463ScaelDD (TU58), 13947463Scaeland DU 14047463Scael.Pf ( Tn UDA-50/RA 14147463Scaeldisk). 14228713SkarelsA non-zero disk partition can be used by adding (partition times 1000 hex) 14347463Scaelto 14447463Scael.Ar n . 14547463Scael.Pp 14647463ScaelThe boot procedure on the Micro 14747463Scael.Tn VAX 14847463ScaelII 14947463Scaelis similar. 15035064SkarelsA switch on the back panel sets the power-up action 15135064Skarelsto autoboot or to halt. 15235064SkarelsWhen halted, the processor may be booted using the same syntax 15335064Skarelsas on the 11/750. 15447463Scael.Pp 15518908SmckusickThe 11/750 boot procedure uses the boot roms to load block 0 off of 15618908Smckusickthe specified device. The /usr/mdec directory contains a number 15718908Smckusickof bootstrap programs for the various disks which should be placed 15835064Skarelsin a new pack by 15947463Scael.Xr disklabel 8 . 16047463ScaelSimilarly, the Micro 16147463Scael.Tn VAX 16247463ScaelII boot procedure loads a boot parameter block 16335064Skarelsfrom block 0 of the disk. 16435064SkarelsThe 16547463Scael.Xr rdboot 16647463Scael.Dq bootstrap 16747463Scaelcontains the correct parameters for an 16847463Scael.Tn MSCP 16947463Scaeldisk such 17035064Skarelsas the RD53. 17147463Scael.Pp 17228713SkarelsOn any processor, the 17347463Scael.Em boot 17418908Smckusickprogram 17528713Skarelsfinds the corresponding file on the given device 17647463Scael.Pf ( Pa vmunix 17728713Skarelsby default), loads that file 17818908Smckusickinto memory location zero, and starts the program at the entry address 17918908Smckusickspecified in the program header (after clearing off the high bit 18028713Skarelsof the specified entry address). 18147463Scael.Pp 18247463ScaelThe file specifications used with 18347463Scael.Dq BOOT ANY 18447463Scaelor 18547463Scael.Dq \&B/3 18628713Skarelsare of the form: 18747463Scael.Pp 18847463Scael.Dl device(adaptor,controller,unit,minor) 18947463Scael.Pp 19018908Smckusickwhere 19147463Scael.Ar device 19218908Smckusickis the type of the device to be searched, 19347463Scael.Ar adaptor 19447463Scaelis the 19547463Scael.Tn UNIBUS 19647463Scaelor 19747463Scael.Tn MASSBUS 19847463Scaelnumber of the adaptor to which the device is attached, 19947463Scael.Ar controller 20047463Scaelis the unit number of the controller or 20147463Scael.Tn MASSBUS 20247463Scaeltape formatter on that adaptor, 20347463Scael.Ar unit 20435064Skarelsis the unit number of the disk or transport slave unit of the tape, 20518908Smckusickand 20647463Scael.Ar minor 20728713Skarelsis the disk partition or tape file number. 20835064SkarelsLeading adaptor or controller numbers default to 0. 20928713SkarelsNormal line editing characters can be used when typing the file specification. 21018908SmckusickThe following list of supported devices may vary from installation to 21118908Smckusickinstallation: 21247463Scael.Pp 21347463Scael.Bd -unfilled -offset indent -compact 21447463Scaelhp MASSBUS disk drive 21547463Scaelup UNIBUS storage module drive 21647463Scaelht TE16,TU45,TU77 on MASSBUS 21747463Scaelkra storage module on a KDB50 21847463Scaelmt TU78 on MASSBUS 21947463Scaelhk RK07 on UNIBUS 22047463Scaelra storage module on a MSCP-compatible UNIBUS controller 22147463Scaelrb storage module on a 730 IDC 22247463Scaelrl RL02 on UNIBUS 22347463Scaeltm TM11 emulation tape drives on UNIBUS 22447463Scaeltms TMSCP-compatible tape 22547463Scaelts TS11 on UNIBUS 22647463Scaelut UNIBUS TU45 emulator 22747463Scael.Ed 22847463Scael.Pp 22928713SkarelsFor example, 23028713Skarelsto boot from a file system which starts at cylinder 0 23147463Scaelof unit 0 of a 23247463Scael.Tn MASSBUS 23347463Scaeldisk, type 23447463Scael.Ql hp(0,0)vmunix 23547463Scaelto the boot prompt; 23647463Scael.Ql hp(2,0,1,0)vmunix 23747463Scaelwould specify drive 1 on 23847463Scael.Tn MASSBUS 23947463Scaeladaptor 2; 24047463Scael.Ql up(0,0)vmunix 24147463Scaelwould specify a 24247463Scael.Tn UNIBUS 24347463Scaeldrive, 24447463Scael.Ql hk(0,0)vmunix 24547463Scaelwould specify 24647463Scaelan RK07 disk drive, 24747463Scael.Ql ra(1,0,0,0)vmunix 24847463Scaelwould specify a 24947463Scael.Tn UDA50 25047463Scaeldisk drive on a second 25147463Scael.Tn UNIBUS , 25247463Scaeland 25347463Scael.Ql rb(0,0)vmunix 25447463Scaelwould specify a 25547463Scaeldisk on a 730 25647463Scael.Tn IDC . 25735064SkarelsFor tapes, the minor device number gives a file offset; 25847463Scael.Ql mt(1,2,3,4) 25947463Scaelwould specify the fifth file on slave 3 of the formatter 26047463Scaelat 26147463Scael.Ql drive 26247463Scael2 on mba 1. 26347463Scael.Pp 26428855SkarelsOn an 11/750 with patchable control store, 26528855Skarelsmicrocode patches will be installed by 26647463Scael.Em boot 26728855Skarelsif the file 26847463Scael.Pa psc750.bin 26928855Skarelsexists in the root of the filesystem from which the system is booted. 27047463Scael.Pp 27118908SmckusickIn an emergency, the bootstrap methods described in the paper 27247463Scael.%T Installing and Operating 4.3bsd 27347463Scaelcan be used to boot from a distribution tape. 27447463Scael.Sh FILES 27547463Scael.Bl -tag -width /usr/mdec/xxboot -compact 27647463Scael.It Pa /vmunix 27747463Scaelsystem code 27847463Scael.It Pa /boot 27947463Scaelsystem bootstrap 28047463Scael.It Pa /usr/mdec/xxboot 28147463Scaelsector-0 boot block for 750, xx is disk type 28247463Scael.It Pa /usr/mdec/bootxx 28347463Scaelsecond-stage boot for 750, xx is disk type 28447463Scael.It Pa /pcs750.bin 28547463Scaelmicrocode patch file on 750 28647463Scael.El 28747463Scael.Sh SEE ALSO 28847463Scael.Xr arff 8 , 28947463Scael.Xr halt 8 , 29051434Sbostic.Xr reboot 8 , 29151434Sbostic.Xr shutdown 8 29247463Scael.Sh HISTORY 29347463ScaelThe 29447463Scael.Nm 29547463Scaelcommand appeared in 29647463Scael.Bx 4.0 . 297