xref: /netbsd-src/share/man/man8/man8.mac68k/boot.8 (revision ed449c067d86deb393267e30086b2b1ab134de4c)
1*ed449c06Swiz.\"	$NetBSD: boot.8,v 1.10 2009/09/05 11:37:52 wiz Exp $
249c06cb6Sbriggs.\"
349c06cb6Sbriggs.\" Copyright (c) 1990, 1991 The Regents of the University of California.
449c06cb6Sbriggs.\" All rights reserved.
549c06cb6Sbriggs.\"
649c06cb6Sbriggs.\" This code is derived from software contributed to Berkeley by
749c06cb6Sbriggs.\" the Systems Programming Group of the University of Utah Computer
849c06cb6Sbriggs.\" Science Department.
949c06cb6Sbriggs.\"
1049c06cb6Sbriggs.\" Redistribution and use in source and binary forms, with or without
1149c06cb6Sbriggs.\" modification, are permitted provided that the following conditions
1249c06cb6Sbriggs.\" are met:
1349c06cb6Sbriggs.\" 1. Redistributions of source code must retain the above copyright
1449c06cb6Sbriggs.\"    notice, this list of conditions and the following disclaimer.
1549c06cb6Sbriggs.\" 2. Redistributions in binary form must reproduce the above copyright
1649c06cb6Sbriggs.\"    notice, this list of conditions and the following disclaimer in the
1749c06cb6Sbriggs.\"    documentation and/or other materials provided with the distribution.
18075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors
1949c06cb6Sbriggs.\"    may be used to endorse or promote products derived from this software
2049c06cb6Sbriggs.\"    without specific prior written permission.
2149c06cb6Sbriggs.\"
2249c06cb6Sbriggs.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2349c06cb6Sbriggs.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2449c06cb6Sbriggs.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2549c06cb6Sbriggs.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2649c06cb6Sbriggs.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2749c06cb6Sbriggs.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2849c06cb6Sbriggs.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2949c06cb6Sbriggs.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3049c06cb6Sbriggs.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3149c06cb6Sbriggs.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3249c06cb6Sbriggs.\" SUCH DAMAGE.
3349c06cb6Sbriggs.\"
3449c06cb6Sbriggs.\"	From:
3549c06cb6Sbriggs.\"	@(#)boot_hp300.8	8.2 (Berkeley) 4/19/94
3649c06cb6Sbriggs.\"
3749c06cb6Sbriggs.Dd July 1, 1995
3876b949b1Sperry.Dt BOOT 8 mac68k
3949c06cb6Sbriggs.Os
4049c06cb6Sbriggs.Sh NAME
4149c06cb6Sbriggs.Nm boot
4249c06cb6Sbriggs.Nd
4349c06cb6Sbriggssystem bootstrapping procedures
4449c06cb6Sbriggs.Sh DESCRIPTION
45839a072bSreed.Ss Power fail and crash recovery
4649c06cb6SbriggsNormally, the
4734a98169Sperry.Nx
4849c06cb6Sbriggskernel on the mac68k architecture is booted from the native operating
49*ed449c06Swizsystem by means of an application program.
50*ed449c06SwizWhen the kernel takes over,
51*ed449c06Swizit initializes itself and proceeds to boot the system.
52*ed449c06SwizAn automatic consistency check of the file systems takes place,
53*ed449c06Swizand unless this fails, the system comes up to multi-user operations.
54*ed449c06SwizThe proper way to shut the system down is with the
5549c06cb6Sbriggs.Xr shutdown 8
5649c06cb6Sbriggscommand.
5749c06cb6Sbriggs.Pp
5849c06cb6SbriggsIf the system crashes, it will enter the kernel debugger,
59143946ffSmikel.Xr ddb 4 ,
60*ed449c06Swizif it is configured in the kernel.
61*ed449c06SwizIf the debugger is not present,
6249c06cb6Sbriggsor the debugger is exited, the system will attempt a dump to the
6349c06cb6Sbriggsconfigured dump device (which will be automatically recovered with
6449c06cb6Sbriggs.Xr savecore 8
65*ed449c06Swizduring the next boot cycle).
66*ed449c06SwizAfter the dump is complete (successful
6749c06cb6Sbriggsor not), the system will attempt a reboot.
6849c06cb6Sbriggs.Pp
6949c06cb6SbriggsOn most mac68k machines with "soft-power" after the IIcx, the power
7049c06cb6Sbriggsswitch can be physically rotated and locked in the 'on' position.
7149c06cb6SbriggsThe native OS can be configured to automatically start the
7234a98169Sperry.Nx
73*ed449c06Swizboot program.
74*ed449c06SwizAdditionally, the
7534a98169Sperry.Nx
7634a98169Sperryboot program can be configured to boot
7734a98169Sperry.Nx
78*ed449c06Swizwithout intervention.
79*ed449c06SwizWhen a system is so configured, it can crash or lose power and
80*ed449c06Swizreboot back to a fully multi-user state without any intervention.
8149c06cb6Sbriggs.Pp
82839a072bSreed.Ss The boot application
83*ed449c06SwizThe boot application runs in the native OS on the system.
84*ed449c06SwizIt has a dialog where booting preferences may be changed and an
85*ed449c06Swizoption whereby these options may be saved.
86*ed449c06SwizThe preferences are stored in the program
8749c06cb6Sbriggsitself, not in a preferences folder--thus allowing two separate copies
8849c06cb6Sbriggsof the program to be configured differently (e.g. to boot different
8949c06cb6Sbriggsnetbsd or netbsd.test, or to boot from two different drives).
9049c06cb6Sbriggs.Pp
91*ed449c06SwizOne option that may be specified is a boot to single-user mode.
92*ed449c06SwizThis stops the boot process very early on and allows system maintenance.
9349c06cb6SbriggsIf one wishes to provide some security at this phase of the boot, remove
9449c06cb6Sbriggsthe
9549c06cb6Sbriggs.Ql secure
9649c06cb6Sbriggsoption from ttye0 in the
9749c06cb6Sbriggs.Xr ttys 5
9849c06cb6Sbriggsfile.
9949c06cb6Sbriggs.Pp
10049c06cb6SbriggsAnother useful option that may be specified is the "serial console"
101*ed449c06Swizoption.
102*ed449c06SwizThis will allow a serial device (terminal or computer) to
103*ed449c06Swizact as a console for the system.
104*ed449c06SwizThis device must be configured to
10549c06cb6Sbriggsuse 9600 baud, eight bits, no parity, and one stop bit (9600-N81).
10649c06cb6SbriggsEither the printer port or the modem port (tty01 and tty00,
10749c06cb6Sbriggsrespectively) may be used for this.
10849c06cb6Sbriggs.Pp
10949c06cb6SbriggsIt is sometimes useful to boot a kernel that resides in a folder
11049c06cb6Sbriggsin native OS rather than from the usual location in the
11134a98169Sperry.Nx
112*ed449c06Swizfile system.
113*ed449c06SwizA radio button is supplied for this purpose.
114*ed449c06SwizNote that
11549c06cb6Sbriggssome programs will not run properly if the kernel is not found as
11649c06cb6Sbriggs.Ar /netbsd
11749c06cb6Sbriggswithin the
11834a98169Sperry.Nx
11949c06cb6Sbriggsfile system.
12049c06cb6Sbriggs.Sh FILES
12149c06cb6Sbriggs.Bl -tag -width /netbsd -compact
12249c06cb6Sbriggs.It Pa /netbsd
12349c06cb6Sbriggssystem kernel
12449c06cb6Sbriggs.El
12549c06cb6Sbriggs.Sh SEE ALSO
126143946ffSmikel.Xr ddb 4 ,
127143946ffSmikel.Xr ttys 5 ,
12876b949b1Sperry.Xr savecore 8 ,
129143946ffSmikel.Xr shutdown 8
130