1 .\" $NetBSD: boot.8,v 1.13 2009/03/11 19:13:54 joerg Exp $
3 .\" Copyright (c) 1980, 1991, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)boot_i386.8 8.2 (Berkeley) 4/19/94
37 .Nd system bootstrapping procedures
39 .Ss Power fail and crash recovery
40 Normally, the system will reboot itself at power-up or after crashes.
41 An automatic consistency check of the file systems will be performed,
42 and unless this fails, the system will resume multi-user operations.
44 The X68000/X68030 system boots from the device
45 which is determined by the configuration of
46 battery-backuped SRAM.
47 By default, the boot ROM attempts to boot from
48 floppy disk drives (from 0 to 3) first,
49 and then attempts to boot from hard disk (SASI or SCSI).
52 booting from SCSI disks (sd??)
53 and 2HD floppy disks (fd?a, fd?c) is currently supported.
54 .Ss Bootstrapping from a floppy
55 When the floppy disk is selected as the boot device, the initial
56 program loader of the IOCS (firmware) reads the
58 program at the top of the disk, and then the fdboot_ufs program loads the
60 program from the FFS or LFS file system.
63 program then loads the
70 program has abilities to uncompress gzip'ed kernels, to read
71 the kernel from other disks of other file systems etc (see below).
75 is also provided to read large
76 kernels which do not fit one a single floppy.
77 .Ss Bootstrapping from a SCSI hard disk
78 When a SCSI hard disk is selected as the boot device, the initial
79 program loader on the SCSI host adapter's ROM reads the
80 operating system-independent IPL menu program at the top of the disk.
81 The IPL menu program recognizes the partition table, and selects the partition
82 to read the operating system kernel.
83 During this phase, when the HELP key on the keyboard is pressed,
84 the IPL menu program displays the partition menu of that disk to
85 prompt the user to select the boot partition (although the
87 implementation of the IPL menu,
89 does not have this functionality).
91 Next, the IPL menu reads the OS-dependent boot program from the
92 top of the selected partition.
100 program then loads the
102 program from that partition.
104 Once running, a banner similar to the following will appear:
105 .Bd -literal -offset indent
106 NetBSD Multi-boot, Revision 1.1
107 (user@buildhost, builddate)
108 Press return to boot now, any other key for boot menu
109 booting sd0a:netbsd - starting in 5
112 After a countdown, the system image listed will be loaded.
113 (In the example above, it will be
121 SCSI hard disk of ID 0.
122 Pressing a key within the time limit will enter interactive mode.
124 In interactive mode, the boot loader will present a prompt, allowing
125 input of these commands:
126 .Bl -tag -width helpx -offset indent
127 .It Ic boot Oo Ar device : Ns Oc Oo Ar filename Oc Oo Fl adqsv Oc
130 will be set to the disk that the boot loader was
132 To boot from an alternate disk, the full name of the device should
133 be given at the prompt.
145 is the device from which to boot,
147 is the unit number, and
149 is the partition letter.
151 The following list of supported devices may vary from installation to
156 SCSI disks on a controller recognized by the IOCS.
157 The unit number is the SCSI ID.
159 Floppy drives as numbered by the IOCS.
166 if the boot loader fails to successfully
167 open that image, it then tries
169 (expected to be a kernel image compressed by
171 Alternate system images can be loaded by just specifying the name of the image.
176 Prompt for the root file system device, the system crash dump
177 device, and the path to
180 Bring the system up in debug mode.
181 Here it waits for a kernel debugger connect; see
184 Boot the system in quiet mode.
186 Bring the system up in single-user mode.
188 Boot the system in verbose mode.
191 Print an overview about commands and arguments.
193 Print a directory listing of
195 containing inode number, filename and file type.
197 can contain a device specification.
201 .Ss Model-specific notes
202 Note for X68030+MC68030 systems:
203 Nothing special to be attended to; you can boot
206 other operating systems such as Human68k and OS-9.
208 Note for X68030/040turbo(68040 accelerator by BEEPs) systems:
210 can boot under 040 mode.
211 It can also boot under 030 mode if you have MC68030 on the board.
213 Note for X68000/Xellent30(68030 accelerator by TSR)+MC68030 systems:
216 you must choose 030 mode by using
218 which must reside in the battery-backuped SRAM.
220 Note for X68000/Jupiter-X(68040/060 accelerator by FTZ-net) systems:
221 The system must be in 040/060 processor mode.
223 .Bl -tag -width /usr/mdec/xxboot_ufs -compact
227 gzip-compressed system code
228 .It Pa /usr/mdec/xxboot_ufs
229 boot block (read by installboot), xx is disktype
230 .It Pa /usr/mdec/boot
231 source of /boot (can be just copied to the root directory)
233 main part of the boot program
241 .\" installboot(8) must be written