summaryrefslogtreecommitdiff
path: root/sbin/reboot/boot_atari.8
blob: de0fbda58b15aecbc0b0880fa56c0e34d673ce33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
.\"	$OpenBSD: boot_atari.8,v 1.5 1998/11/11 22:19:59 aaron Exp $
.\"	$NetBSD: boot_atari.8,v 1.1 1996/06/27 11:07:56 leo Exp $
.\"
.\" Copyright (c) 1990, 1991 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" the Systems Programming Group of the University of Utah Computer
.\" Science Department.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in the
.\"    documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\"    must display the following acknowledgement:
.\"	This product includes software developed by the University of
.\"	California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\"    may be used to endorse or promote products derived from this software
.\"    without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"	From:
.\"	@(#)boot_hp300.8	8.2 (Berkeley) 4/19/94
.\"
.Dd June 21, 1996
.Dt BOOT_ATARI 8
.Os
.Sh NAME
.Nm boot
.Nd
system bootstrapping procedures
.Sh DESCRIPTION
.Ss Power fail and crash recovery
When the
.Tn OpenBSD
kernel is booted normally (using one of the two methods discussed below),
it initializes itself and proceeds to boot the system.  An automatic
consistency check of the file systems takes place, and unless this
fails, the system comes up to multi-user operations.  The proper way
to shut the system down is with the
.Xr shutdown 8
command.
.Pp
If the system crashes, it will enter the kernel debugger,
.Xr ddb 8 ,
if it is configured in the kernel.  If the debugger is not present
or has exited, the system will attempt a dump to the
configured dump device (which will be automatically recovered with
.Xr savecore 8
during the next boot cycle).  After the dump completes (successful
or not), the system will attempt a reboot.
.Pp
.Ss Booting OpenBSD using the bootloader
When a bootable
.Tn OpenBSD
partition is created by means of
.Xr installboot 8 ,
the Atari BIOS will automatically start the OpenBSD bootloader. By default,
it will load the kernel image
.Pa /bsd
and attempt to boot it into multi-user mode. This behaviour can be changed by
either keeping the
.Sq Alternate
or
.Sq Right-Shift
key pressed during the boot process. When
the
.Sq Alternate
key is pressed, the bootstrap is aborted, causing the BIOS
to continue scanning the disks for a bootable partition (this is compatible
with AHDI 3.0). Pressing the
.Sq Right-Shift
key during the boot causes the bootloader to enter interactive mode.
In interactive mode, the command line looks like:
.Bd -ragged -offset indent
.Op Ar OS-type
.Op Ar boot-path
.Op Ar boot-options
.Ed
.Pp
Each component of the command can be omitted in which case the defaults
indicated will be used.
.Bl -tag -width
.It OS-type:
.Bl -tag -compact -width ".OpenBSD (default)"
.It .OpenBSD (the default)
.It .linux
.It .asv
.It .tos
.El
.Pp
If something other than
.Pa .OpenBSD
is specified, control is returned to the BIOS with the boot preference set to
the selected type. Due to limitations of the BIOS, however, the search for
bootblocks is continued rather than restarted.
.It Em boot-path
This gives you the opportunity to boot another kernel, say:
.Pa /bsd.old .
The default is
.Pa /bsd .
.It Em boot-options
These options are a subset of the
.Xr loadbsd
options.
.Pp
.Bl -tag -width flag -compact
.It Fl a
Boot into multi-user mode (the default).
.It Fl b
Ask for a root device.
.It Fl d
Enter the kernel debugger.
.El
.El
.Pp
.Ss Booting using the loadbsd program
When you want (or have to) start OpenBSD from GEM, you have to use the
.Xr loadbsd
program that is supplied on the kernel-floppy. The loadbsd command line
specification is:
.Bd -ragged -offset indent
.Nm loadbsd 
.Op Fl abdhstwDV
.Op Fl S Ar amount
.Op Fl T Ar amount
.Ar kernel-path
.Ed
.Pp
Description of options:
.Bl -tag -width flag
.It Fl a
Boot automatically into multi-user mode.
.It Fl b
Ask for the root device the kernel must use.
.It Fl d
Enter the kernel debugger after booting.
.It Fl h
Print a help screen that tries to explain the same options as mentioned
here.
.It Fl o Ar outputfile
Write all output to the file
.Ar outputfile .
.It Fl s
Tell OpenBSD only to use ST compatible RAM. 
.It Fl t
Test loading of the kernel but don't start OpenBSD.
.It Fl w
Wait for a keypress before exiting loadbsd. This is useful when starting this
program under GEM.
.It Fl D
Show debugging output while booting the kernel.
.It Fl S Ar amount
Set the amount of available ST compatible RAM in bytes. Normally this
value is set automatically from the values initialized by the BIOS.
.It Fl T Ar amount
Set the amount of available TT compatible RAM in bytes. Normally this
value is set automatically from the values initialized by the BIOS.
.It Fl V
Print the version of
.Xr loadbsd
that you are using.
.It Ar kernel-path
This is a GEMDOS path specification of the kernel to boot.
.El
.Pp
Note: Because the loadbsd program can only read kernels from a GEMDOS
filesystem, the file
.Pa /bsd
is usually not the same as the actual kernel booted. This can cause some
programs to fail.
.Sh FILES
.Bl -tag -width /bsd -compact
.It Pa /bsd
system kernel
.El
.Sh SEE ALSO
.Xr ddb 8 ,
.Xr savecore 8 ,
.Xr shutdown 8