9070 Remove wanboot from gate
[unleashed.git] / usr / src / man / man1m / boot.1m
blob857f2be805c5689984806a24471257c2a2a2675e
1 '\" te
2 .\" Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
3 .\" Copyright 2015 Nexenta Systems Inc.
4 .\" Copyright (c) 2008 Sun Microsystems, Inc. All Rights Reserved
5 .\" Copyright 1989 AT&T
6 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.
7 .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the
8 .\" fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
9 .TH BOOT 1M "Feb 07, 2018"
10 .SH NAME
11 boot \- start the system kernel or a standalone program
12 .SH SYNOPSIS
13 .SS "SPARC"
14 .LP
15 .nf
16 \fBboot\fR [\fIOBP\fR \fInames\fR] [\fIfile\fR] [\fB-aLV\fR] [\fB-F\fR \fIobject\fR] [\fB-D\fR \fIdefault-file\fR]
17      [\fB-Z\fR \fIdataset\fR] [\fIboot-flags\fR] [\fB\(mi\(mi\fR] [\fIclient-program-args\fR]
18 .fi
20 .SS "x86"
21 .LP
22 .nf
23 \fBboot\fR [\fIboot-flags\fR] [\fB-B\fR \fIprop\fR=\fIval\fR [,\fIval\fR...]]
24 .fi
26 .SH DESCRIPTION
27 .LP
28 Bootstrapping is the process of loading and executing a standalone program. For
29 the purpose of this discussion, bootstrapping means the process of loading and
30 executing the bootable operating system. Typically, the standalone program is
31 the operating system kernel (see \fBkernel\fR(1M)), but any standalone program
32 can be booted instead. On a SPARC-based system, the diagnostic monitor for a
33 machine is a good example of a standalone program other than the operating
34 system that can be booted.
35 .sp
36 .LP
37 If the standalone is identified as a dynamically-linked executable, \fBboot\fR
38 will load the interpreter (linker/loader) as indicated by the executable format
39 and then transfer control to the interpreter. If the standalone is
40 statically-linked, it will jump directly to the standalone.
41 .sp
42 .LP
43 Once the kernel is loaded, it starts the UNIX system, mounts the necessary file
44 systems (see \fBvfstab\fR(4)), and runs \fB/sbin/init\fR to bring the system to
45 the "initdefault" state specified in \fB/etc/inittab\fR. See \fBinittab\fR(4).
46 .SS "SPARC Bootstrap Procedure"
47 .LP
48 On SPARC based systems, the bootstrap procedure on most machines consists of
49 the following basic phases.
50 .sp
51 .LP
52 After the machine is turned on, the system firmware (in PROM) executes power-on
53 self-test (POST). The form and scope of these tests depends on the version of
54 the firmware in your system.
55 .sp
56 .LP
57 After the tests have been completed successfully, the firmware attempts to
58 autoboot if the appropriate flag has been set in the non-volatile storage area
59 used by the firmware. The name of the file to load, and the device to load it
60 from can also be manipulated.
61 .sp
62 .LP
63 These flags and names can be set using the \fBeeprom\fR(1M) command from the
64 shell, or by using \fBPROM\fR commands from the \fBok\fR prompt after the
65 system has been halted.
66 .sp
67 .LP
68 The second level program is either a fileystem-specific boot block (when
69 booting from a disk), or \fBinetboot\fR (when booting across
70 the network).
71 .sp
72 .LP
73 Network Booting
74 .sp
75 .LP
76 Network booting occurs in two steps: the client first obtains an IP address and
77 any other parameters necessary to permit it to load the second-stage booter.
78 The second-stage booter in turn loads the boot archive from the boot device.
79 .sp
80 .LP
81 An IP address can be obtained in one of three ways: RARP, DHCP, or manual
82 configuration, depending on the functions available in and configuration of the
83 PROM. Machines of the \fBsun4u\fR and \fBsun4v\fR kernel architectures have
84 DHCP-capable PROMs.
85 .sp
86 .LP
87 The boot command syntax for specifying the two methods of network booting are:
88 .sp
89 .in +2
90 .nf
91 boot net:rarp
92 boot net:dhcp
93 .fi
94 .in -2
95 .sp
97 .sp
98 .LP
99 The command:
101 .in +2
103 boot net
105 .in -2
110 without a \fBrarp\fR or \fBdhcp\fR specifier, invokes the default method for
111 network booting over the network interface for which \fBnet\fR is an alias.
114 The sequence of events for network booting using RARP/\fBbootparams\fR is
115 described in the following paragraphs. The sequence for DHCP follows the
116 RARP/\fBbootparams\fR description.
119 When booting over the network using RARP/\fBbootparams\fR, the PROM begins by
120 broadcasting a reverse ARP request until it receives a reply. When a reply is
121 received, the PROM then broadcasts a TFTP request to fetch the first block of
122 \fBinetboot\fR. Subsequent requests will be sent to the server that initially
123 answered the first block request. After loading, \fBinetboot\fR will also use
124 reverse ARP to fetch its IP address, then broadcast \fBbootparams\fR RPC calls
125 (see \fBbootparams\fR(4)) to locate configuration information and its root file
126 system. \fBinetboot\fR then loads the boot archive by means of NFS and
127 transfers control to that archive.
130 When booting over the network using DHCP, the PROM broadcasts the hardware
131 address and kernel architecture and requests an IP address, boot parameters,
132 and network configuration information. After a DHCP server responds and is
133 selected (from among potentially multiple servers), that server sends to the
134 client an IP address and all other information needed to boot the client. After
135 receipt of this information, the client PROM examines the name of the file to
136 be loaded, and will behave in one of two ways, depending on whether the file's
137 name appears to be an HTTP URL. If it does not, the PROM downloads
138 \fBinetboot\fR, loads that file into memory, and executes it. \fBinetboot\fR
139 loads the boot archive, which takes over the machine and releases
140 \fBinetboot\fR. Startup scripts then initiate the DHCP agent (see
141 \fBdhcpagent\fR(1M)), which implements further DHCP activities.
143 .SS "iSCSI Boot"
145 iSCSI boot is currently supported only on x86. The host being booted must be
146 equipped with NIC(s) capable of iBFT (iSCSI Boot Firmware Table) or have the
147 mainboard's BIOS be iBFT-capable. iBFT, defined in the Advanced Configuration
148 and Power Interface (ACPI) 3.0b specification, specifies a block of information
149 that contains various parameters that are useful to the iSCSI Boot process.
152 Firmware implementing iBFT presents an iSCSI disk in the BIOS during startup as
153 a bootable device by establishing the connection to the iSCSI target. The rest
154 of the process of iSCSI booting is the same as booting from a local disk.
157 To configure the iBFT properly, users need to refer to the documentation from
158 their hardware vendors.
159 .SS "Booting from Disk"
161 When booting from disk, the OpenBoot PROM firmware reads the boot blocks from
162 blocks 1 to 15 of the partition specified as the boot device. This standalone
163 booter usually contains a file system-specific reader capable of reading the
164 boot archive.
167 If the pathname to the standalone is relative (does not begin with a slash),
168 the second level boot will look for the standalone in a platform-dependent
169 search path. This path is guaranteed to contain
170 \fB/platform/\fR\fIplatform-name\fR. Many SPARC platforms next search the
171 platform-specific path entry \fB/platform/\fR\fIhardware-class-name\fR. See
172 \fBfilesystem\fR(5). If the pathname is absolute, \fBboot\fR will use the
173 specified path. The \fBboot\fR program then loads the standalone at the
174 appropriate address, and then transfers control.
177 Once the boot archive has been transferred from the boot device, Solaris can
178 initialize and take over control of the machine. This process is further
179 described in the "Boot Archive Phase," below, and is identical on all
180 platforms.
183 If the filename is not given on the command line or otherwise specified, for
184 example, by the \fBboot-file\fR NVRAM variable, \fBboot\fR chooses an
185 appropriate default file to load based on what software is installed on the
186 system and the capabilities of the hardware and firmware.
189 The path to the kernel must not contain any whitespace.
190 .SS "Booting from ZFS"
192 Booting from ZFS differs from booting from UFS in that, with ZFS, a device
193 specifier identifies a storage pool, not a single root file system. A storage
194 pool can contain multiple bootable datasets (that is, root file systems).
195 Therefore, when booting from ZFS, it is not sufficient to specify a boot
196 device. One must also identify a root file system within the pool that was
197 identified by the boot device. By default, the dataset selected for booting is
198 the one identified by the pool's \fBbootfs\fR property. This default selection
199 can be overridden by specifying an alternate bootable dataset with the \fB-Z\fR
200 option.
201 .SS "Boot Archive Phase"
203 The boot archive contains a file system image that is mounted using an
204 in-memory disk. The image is self-describing, specifically containing a file
205 system reader in the boot block. This file system reader mounts and opens the
206 RAM disk image, then reads and executes the kernel contained within it. By
207 default, this kernel is in:
209 .in +2
211 /platform/`uname -i`/kernel/unix
213 .in -2
218 If booting from ZFS, the pathnames of both the archive and the kernel file are
219 resolved in the root file system (that is, dataset) selected for booting as
220 described in the previous section.
223 The initialization of the kernel continues by loading necessary drivers and
224 modules from the in-memory filesystem until I/O can be turned on and the root
225 filesystem mounted. Once the root filesystem is mounted, the in-memory
226 filesystem is no longer needed and is discarded.
227 .SS "OpenBoot PROM \fBboot\fR Command Behavior"
229 The OpenBoot \fBboot\fR command takes arguments of the following form:
231 .in +2
233 ok boot [\fIdevice-specifier\fR] [\fIarguments\fR]
235 .in -2
240 The default \fBboot\fR command has no arguments:
242 .in +2
244 ok boot
246 .in -2
251 If no \fIdevice-specifier\fR is given on the \fBboot\fR command line, OpenBoot
252 typically uses the \fIboot-device\fR or \fIdiag-device\fR \fBNVRAM\fR variable.
253 If no optional \fIarguments\fR are given on the command line, OpenBoot
254 typically uses the \fIboot-file\fR or \fIdiag-file\fR \fBNVRAM\fR variable as
255 default \fBboot\fR arguments. (If the system is in diagnostics mode,
256 \fIdiag-device\fR and \fIdiag-file\fR are used instead of \fIboot-device\fR and
257 \fIboot-file\fR).
260 \fIarguments\fR may include more than one string. All \fIargument\fR strings
261 are passed to the secondary booter; they are not interpreted by OpenBoot.
264 If any \fIarguments\fR are specified on the \fBboot\fR command line, then
265 neither the \fIboot-file\fR nor the \fIdiag-file\fR \fBNVRAM\fR variable is
266 used. The contents of the \fBNVRAM\fR variables are not merged with command
267 line arguments. For example, the command:
269 .in +2
271 ok \fBboot\fR \fB-s\fR
273 .in -2
278 ignores the settings in both \fIboot-file\fR and \fIdiag-file\fR; it interprets
279 the string \fB"-s"\fR as \fIarguments\fR. \fBboot\fR will not use the contents
280 of \fIboot-file\fR or \fIdiag-file\fR.
283 With older PROMs, the command:
285 .in +2
287 ok \fBboot net\fR
289 .in -2
294 took no arguments, using instead the settings in \fIboot-file\fR or
295 \fIdiag-file\fR (if set) as the default file name and arguments to pass to
296 boot. In most cases, it is best to allow the \fBboot\fR command to choose an
297 appropriate default based upon the system type, system hardware and firmware,
298 and upon what is installed on the root file system. Changing \fIboot-file\fR or
299 \fIdiag-file\fR can generate unexpected results in certain circumstances.
302 This behavior is found on most OpenBoot 2.x and 3.x based systems. Note that
303 differences may occur on some platforms.
306 The command:
309 ok \fBboot cdrom\fR
312 \&...also normally takes no arguments. Accordingly, if \fIboot-file\fR is set
313 to the 64-bit kernel filename and you attempt to boot the installation CD or
314 DVD with \fBboot cdrom\fR, boot will fail if the installation media contains
315 only a 32-bit kernel.
318 Because the contents of \fIboot-file\fR or \fIdiag-file\fR can be ignored
319 depending on the form of the \fBboot\fR command used, reliance upon
320 \fIboot-file\fR should be discouraged for most production systems.
323 Modern PROMs have enhanced the network boot support package to support the
324 following syntax for arguments to be processed by the package:
327 [\fIprotocol\fR,] [\fIkey\fR=\fIvalue\fR,]*
330 All arguments are optional and can appear in any order. Commas are required
331 unless the argument is at the end of the list. If specified, an argument takes
332 precedence over any default values, or, if booting using DHCP, over
333 configuration information provided by a DHCP server for those parameters.
336 \fIprotocol\fR, above, specifies the address discovery protocol to be used.
339 Configuration parameters, listed below, are specified as \fIkey\fR=\fIvalue\fR
340 attribute pairs.
342 .ne 2
344 \fB\fBtftp-server\fR\fR
346 .sp .6
347 .RS 4n
348 IP address of the TFTP server
352 .ne 2
354 \fB\fBfile\fR\fR
356 .sp .6
357 .RS 4n
358 file to download using TFTP
362 .ne 2
364 \fB\fBhost-ip\fR\fR
366 .sp .6
367 .RS 4n
368 IP address of the client (in dotted-decimal notation)
372 .ne 2
374 \fB\fBrouter-ip\fR\fR
376 .sp .6
377 .RS 4n
378 IP address of the default router
382 .ne 2
384 \fB\fBsubnet-mask\fR\fR
386 .sp .6
387 .RS 4n
388 subnet mask (in dotted-decimal notation)
392 .ne 2
394 \fB\fBclient-id\fR\fR
396 .sp .6
397 .RS 4n
398 DHCP client identifier
402 .ne 2
404 \fB\fBhostname\fR\fR
406 .sp .6
407 .RS 4n
408 hostname to use in DHCP transactions
412 .ne 2
414 \fB\fBhttp-proxy\fR\fR
416 .sp .6
417 .RS 4n
418 HTTP proxy server specification (IPADDR[:PORT])
422 .ne 2
424 \fB\fBtftp-retries\fR\fR
426 .sp .6
427 .RS 4n
428 maximum number of TFTP retries
432 .ne 2
434 \fB\fBdhcp-retries\fR\fR
436 .sp .6
437 .RS 4n
438 maximum number of DHCP retries
443 The list of arguments to be processed by the network boot support package is
444 specified in one of two ways:
445 .RS +4
447 .ie t \(bu
448 .el o
449 As arguments passed to the package's \fBopen\fR method, or
451 .RS +4
453 .ie t \(bu
454 .el o
455 arguments listed in the NVRAM variable \fBnetwork-boot-arguments\fR.
459 Arguments specified in \fBnetwork-boot-arguments\fR will be processed only if
460 there are no arguments passed to the package's \fBopen\fR method.
463 Argument Values
466 \fIprotocol\fR specifies the address discovery protocol to be used. If present,
467 the possible values are \fBrarp\fR or \fBdhcp\fR.
470 If other configuration parameters are specified in the new syntax and style
471 specified by this document, absence of the \fIprotocol\fR parameter implies
472 manual configuration.
475 If no other configuration parameters are specified, or if those arguments are
476 specified in the positional parameter syntax currently supported, the absence
477 of the \fIprotocol\fR parameter causes the network boot support package to use
478 the platform-specific default address discovery protocol.
481 Manual configuration requires that the client be provided its IP address, the
482 name of the boot file, and the address of the server providing the boot file
483 image. Depending on the network configuration, it might be required that
484 \fBsubnet-mask\fR and \fBrouter-ip\fR also be specified.
487 If the \fIprotocol\fR argument is not specified, the network boot support
488 package uses the platform-specific default address discovery protocol.
491 \fBtftp-server\fR is the IP address (in standard IPv4 dotted-decimal notation)
492 of the TFTP server that provides the file to download if using TFTP.
495 When using DHCP, the value, if specified, overrides the value of the TFTP
496 server specified in the DHCP response.
499 The TFTP RRQ is unicast to the server if one is specified as an argument or in
500 the DHCP response. Otherwise, the TFTP RRQ is broadcast.
503 \fIfile\fR specifies the file to be loaded by TFTP from the TFTP server.
506 When using RARP and TFTP, the default file name is the ASCII hexadecimal
507 representation of the IP address of the client, as documented in a preceding
508 section of this document.
511 When using DHCP, this argument, if specified, overrides the name of the boot
512 file specified in the DHCP response.
515 When using DHCP and TFTP, the default file name is constructed from the root
516 node's \fBname\fR property, with commas (,) replaced by periods (.).
519 When specified on the command line, the filename must not contain slashes
520 (\fB/\fR).
523 \fBhost-ip\fR specifies the IP address (in standard IPv4 dotted-decimal
524 notation) of the client, the system being booted. If using RARP as the address
525 discovery protocol, specifying this argument makes use of RARP unnecessary.
528 If DHCP is used, specifying the \fBhost-ip\fR argument causes the client to
529 follow the steps required of a client with an "Externally Configured Network
530 Address", as specified in RFC 2131.
533 \fBrouter-ip\fR is the IP address (in standard IPv4 dotted-decimal notation) of
534 a router on a directly connected network. The router will be used as the first
535 hop for communications spanning networks. If this argument is supplied, the
536 router specified here takes precedence over the preferred router specified in
537 the DHCP response.
540 \fBsubnet-mask\fR (specified in standard IPv4 dotted-decimal notation) is the
541 subnet mask on the client's network. If the subnet mask is not provided (either
542 by means of this argument or in the DHCP response), the default mask
543 appropriate to the network class (Class A, B, or C) of the address assigned to
544 the booting client will be assumed.
547 \fBclient-id\fR specifies the unique identifier for the client. The DHCP client
548 identifier is derived from this value. Client identifiers can be specified as:
549 .RS +4
551 .ie t \(bu
552 .el o
553 The ASCII hexadecimal representation of the identifier, or
555 .RS +4
557 .ie t \(bu
558 .el o
559 a quoted string
563 Thus, \fBclient-id="openboot"\fR and \fBclient-id=6f70656e626f6f74\fR both
564 represent a DHCP client identifier of 6F70656E626F6F74.
567 Identifiers specified on the command line must must not include slash (\fB/\fR)
568 or spaces.
571 The maximum length of the DHCP client identifier is 32 bytes, or 64 characters
572 representing 32 bytes if using the ASCII hexadecimal form. If the latter form
573 is used, the number of characters in the identifier must be an even number.
574 Valid characters are 0-9, a-f, and A-F.
577 For correct identification of clients, the client identifier must be unique
578 among the client identifiers used on the subnet to which the client is
579 attached. System administrators are responsible for choosing identifiers that
580 meet this requirement.
583 Specifying a client identifier on a command line takes precedence over any
584 other DHCP mechanism of specifying identifiers.
587 \fBhostname\fR (specified as a string) specifies the hostname to be used in
588 DHCP transactions. The name might or might not be qualified with the local
589 domain name. The maximum length of the hostname is 255 characters.
591 Note -
593 .RS 2
594 The \fBhostname\fR parameter can be used in service environments that require
595 that the client provide the desired hostname to the DHCP server. Clients
596 provide the desired hostname to the DHCP server, which can then register the
597 hostname and IP address assigned to the client with DNS.
601 \fBhttp-proxy\fR is specified in the following standard notation for a host:
603 .in +2
605 \fIhost\fR [":"" \fIport\fR]
607 .in -2
612 \&...where \fIhost\fR is specified as an IP ddress (in standard IPv4
613 dotted-decimal notation) and the optional \fIport\fR is specified in decimal.
614 If a port is not specified, port 8080 (decimal) is implied.
617 \fBtftp-retries\fR is the maximum number of retries (specified in decimal)
618 attempted before the TFTP process is determined to have failed. Defaults to
619 using infinite retries.
622 \fBdhcp-retries\fR is the maximum number of retries (specified in decimal)
623 attempted before the DHCP process is determined to have failed. Defaults to of
624 using infinite retries.
625 .SS "x86 Bootstrap Procedure"
627 On x86 based systems, the bootstrapping process consists of two conceptually
628 distinct phases, kernel loading and kernel initialization. Kernel loading is
629 implemented in the boot loader using the BIOS ROM on the system
630 board, and BIOS extensions in ROMs on peripheral boards. The BIOS loads boot
631 loader, starting with the first physical sector from a hard disk, DVD, or CD. If
632 supported by the ROM on the network adapter, the BIOS can also download the
633 \fBpxeboot\fR binary from a network boot server. Once the boot loader is
634 loaded, it in turn will load the \fBunix\fR kernel, a pre-constructed boot
635 archive containing kernel modules and data, and any additional files specified
636 in the boot loader configuration. Once specified files are loaded, the boot
637 loader will start the kernel to complete boot.
640 If the device identified by the boot loader as the boot device contains a ZFS
641 storage pool, the \fBmenu.lst\fR file used to create the Boot Environment menu
642 will be found in the dataset at the root of the pool's dataset hierarchy.
643 This is the dataset with the same name as the pool itself. There is always
644 exactly one such dataset in a pool, and so this dataset is well-suited for
645 pool-wide data such as the \fBmenu.lst\fR file. After the system is booted,
646 this dataset is mounted at /\fIpoolname\fR in the root file system.
649 There can be multiple bootable datasets (that is, root file systems) within a
650 pool. The default file system to load the kernel is identified by the boot
651 pool \fBbootfs\fR property (see \fBzpool\fR(1M)). All bootable datasets are
652 listed in the \fBmenu.lst\fR file, which is used by the boot loader to compose
653 the Boot Environment menu, to implement support to load a kernel and boot from
654 an alternate Boot Environment.
657 Kernel initialization starts when the boot loader finishes loading the files
658 specified in the boot loader configuration and hands control over to the
659 \fBunix\fR binary. The Unix operating system initializes, links in the
660 necessary modules from the boot archive and mounts the root file system on
661 the real root device. At this point, the kernel regains
662 storage I/O, mounts additional file systems (see \fBvfstab\fR(4)), and starts
663 various operating system services (see \fBsmf\fR(5)).
665 .SH OPTIONS
666 .SS "SPARC"
668 The following SPARC options are supported:
670 .ne 2
672 \fB\fB-a\fR\fR
674 .sp .6
675 .RS 4n
676 The boot program interprets this flag to mean \fBask me\fR, and so it prompts
677 for the name of the standalone. The \fB\&'\fR\fB-a\fR\fB\&'\fR flag is then
678 passed to the standalone program.
682 .ne 2
684 \fB\fB-D\fR \fIdefault-file\fR\fR
686 .sp .6
687 .RS 4n
688 Explicitly specify the \fIdefault-file\fR. On some systems, \fBboot\fR chooses
689 a dynamic default file, used when none is otherwise specified. This option
690 allows the \fIdefault-file\fR to be explicitly set and can be useful when
691 booting \fBkmdb\fR(1) since, by default, \fBkmdb\fR loads the default-file as
692 exported by the \fBboot\fR program.
696 .ne 2
698 \fB\fB-F\fR \fIobject\fR\fR
700 .sp .6
701 .RS 4n
702 Boot using the named object. The object must be either an ELF executable or
703 bootable object containing a boot block. The primary use is to boot the
704 failsafe boot archive.
708 .ne 2
710 \fB\fB-L\fR\fR
712 .sp .6
713 .RS 4n
714 List the bootable datasets within a ZFS pool. You can select one of the
715 bootable datasets in the list, after which detailed instructions for booting
716 that dataset are displayed. Boot the selected dataset by following the
717 instructions. This option is supported only when the boot device contains a ZFS
718 storage pool.
722 .ne 2
724 \fB\fB-V\fR\fR
726 .sp .6
727 .RS 4n
728 Display verbose debugging information.
732 .ne 2
734 \fB\fIboot-flags\fR\fR
736 .sp .6
737 .RS 4n
738 The boot program passes all \fIboot-flags\fR to \fBfile\fR. They are not
739 interpreted by \fBboot\fR. See the \fBkernel\fR(1M) and \fBkmdb\fR(1) manual
740 pages for information about the options available with the default standalone
741 program.
745 .ne 2
747 \fB\fIclient-program-args\fR\fR
749 .sp .6
750 .RS 4n
751 The \fBboot\fR program passes all \fIclient-program-args\fR to \fIfile\fR. They
752 are not interpreted by \fBboot\fR.
756 .ne 2
758 \fB\fIfile\fR\fR
760 .sp .6
761 .RS 4n
762 Name of a standalone program to \fBboot\fR. If a filename is not explicitly
763 specified, either on the \fBboot\fR command line or in the \fIboot-file\fR
764 NVRAM variable, \fBboot\fR chooses an appropriate default filename.
768 .ne 2
770 \fB\fIOBP\fR \fInames\fR\fR
772 .sp .6
773 .RS 4n
774 Specify the open boot prom designations. For example, on Desktop SPARC based
775 systems, the designation \fB/sbus/esp@0,800000/sd@3,0:a\fR indicates a
776 \fBSCSI\fR disk (sd) at target 3, lun0 on the \fBSCSI\fR bus, with the esp host
777 adapter plugged into slot 0.
781 .ne 2
783 \fB\fB-Z\fR \fIdataset\fR\fR
785 .sp .6
786 .RS 4n
787 Boot from the root file system in the specified ZFS dataset.
790 .SS "x86"
792 The following x86 options are supported:
794 .ne 2
796 \fB\fB-B\fR \fIprop\fR=\fIval\fR...\fR
798 .sp .6
799 .RS 4n
800 One or more property-value pairs to be passed to the kernel. Multiple
801 property-value pairs must be separated by a comma. Use of this option is the
802 equivalent of the command: \fBeeprom\fR \fIprop\fR=\fIval\fR. See
803 \fBeeprom\fR(1M) for available properties and valid values.
807 .ne 2
809 \fB\fIboot-flags\fR\fR
811 .sp .6
812 .RS 4n
813 The boot program passes all \fIboot-flags\fR to \fBfile\fR. They are not
814 interpreted by \fBboot\fR. See \fBkernel\fR(1M) and \fBkmdb\fR(1) for
815 information about the options available with the kernel.
818 .SH X86 BOOT SEQUENCE DETAILS
820 After a PC-compatible machine is turned on, the system firmware in the \fBBIOS
821 ROM\fR executes a power-on self test (POST), runs \fBBIOS\fR extensions in
822 peripheral board \fBROMs,\fR and invokes software interrupt INT 19h, Bootstrap.
823 The INT 19h handler typically performs the standard PC-compatible boot, which
824 consists of trying to read the first physical sector from the first diskette
825 drive, or, if that fails, from the first hard disk. The processor then jumps to
826 the first byte of the sector image in memory.
827 .SH X86 PRIMARY BOOT
829 The first sector on a hard disk contains the master boot block (first stage of
830 the boot program), which contains the master boot program and the Master Boot
831 Record (\fBMBR\fR) table. The master boot program has recorded the location of
832 the secondary stage of the boot program and using this location, master boot
833 will load and start the secondary stage of the boot program.
835 To support booting multiple operating systems, the master boot program is also
836 installed as the first sector of the partition with the illumos root file
837 system. This will allow configuring third party boot programs to use the
838 chainload technique to boot illumos system.
840 If the first stage is installed on the master boot block (see the \fB-m\fR
841 option of \fBinstallboot\fR(1M)), then \fBstage2\fR is loaded directly
842 from the Solaris partition regardless of the active partition.
845 A similar sequence occurs for DVD or CD boot, but the master boot block location
846 and contents are dictated by the El Torito specification. The El Torito boot
847 will then continue in the same way as with the hard disk.
850 Floppy booting is not longer supported. Booting from USB devices follows the
851 same procedure as with hard disks.
854 An x86 \fBMBR\fR partition for the Solaris software begins with a
855 one-cylinder boot slice, which contains the boot loader \fBstage1\fR in the
856 first sector, the standard Solaris disk label and volume table of contents
857 (VTOC) in the second and third sectors, and in case the UFS file system is
858 used for the root file system, \fBstage2\fR in the fiftieth and subsequent
859 sectors.
861 If the zfs boot is used, \fBstage2\fR is always stored in the zfs pool
862 boot program area.
865 The behavior is slightly different when a disk is using \fBEFI\fR
866 partitioning.
868 To support a UFS root file system in the \fBEFI\fR partition, the \fBstage2\fR
869 must be stored on separate dedicated partition, as there is no space in UFS
870 file system boot program area to store the current \fBstage2\fR. This separate
871 dedicated partition is used as raw disk space, and must have enough space
872 for both \fBstage1\fR and \fBstage2\fR. The type (tag) of this partition
873 must be \fBboot\fR, \fBEFI\fR UUID:
875 .in +2
877 \fB6a82cb45-1dd2-11b2-99a6-080020736631\fR
879 .in -2
881 For the UUID reference, please see \fB/usr/include/sys/efi_partition.h\fR.
883 In case of a whole disk zfs pool configuration, the \fBstage1\fR is always
884 installed in the first sector of the disk, and it always loads \fBstage2\fR
885 from the partition specified at the boot loader installation time.
888 Once \fBstage2\fR is running, it will load and start the third stage boot
889 program from root file system. Boot loader supports loading from the ZFS,
890 UFS and PCFS file systems. The stage3 boot program defaults to be
891 \fB/boot/zfsloader\fR, and implements a user interface to load and boot the
892 unix kernel.
895 For network booting, the supported method is Intel's Preboot eXecution
896 Environment (PXE) standard. When booting from the network using PXE, the system
897 or network adapter BIOS uses DHCP to locate a network bootstrap program
898 (\fBpxeboot\fR) on a boot server and reads it using Trivial File Transfer
899 Protocol (TFTP). The BIOS executes the \fBpxeboot\fR by jumping to its first
900 byte in memory. The \fBpxeboot\fR program is combined stage2 and stage2 boot
901 program and implements user interface to load and boot unix kernel.
902 .SH X86 KERNEL STARTUP
904 The kernel startup process is independent of the kernel loading process. During
905 kernel startup, console I/O goes to the device specified by the \fBconsole\fR
906 property.
909 When booting from UFS, the root device is specified by the \fBbootpath\fR
910 property, and the root file system type is specified by the \fBfstype\fR
911 property. These properties should be setup by the Solaris Install/Upgrade
912 process in \fB/boot/solaris/bootenv.rc\fR and can be overridden with the
913 \fB-B\fR option, described above (see the \fBeeprom\fR(1M) man page).
916 When booting from ZFS, the root device is automatically passed by the boot
917 loader to the kernel as a boot parameter \fB-B\fR \fBzfs-bootfs\fR. The actual
918 value used by the boot loader can be observed with the \fBeeprom bootcmd\fR
919 command.
922 If the console properties are not present, console I/O defaults to \fBscreen\fR
923 and \fBkeyboard\fR. The root device defaults to \fBramdisk\fR and the file
924 system defaults to \fBufs\fR.
925 .SH EXAMPLES
926 .SS "SPARC"
928 \fBExample 1 \fRTo Boot the Default Kernel In Single-User Interactive Mode
931 To boot the default kernel in single-user interactive mode, respond to the
932 \fBok\fR prompt with one of the following:
935 .in +2
937 \fBboot\fR \fB\fR\fB-as\fR
939 \fBboot\fR \fBdisk3\fR \fB-as\fR
941 .in -2
945 \fBExample 2 \fRNetwork Booting
948 To illustrate some of the subtle repercussions of various boot command line
949 invocations, assume that the \fBnetwork-boot-arguments\fR are set and that
950 \fBnet\fR is devaliased as shown in the commands below.
954 In the following command, device arguments in the device alias are processed by
955 the device driver. The network boot support package processes arguments in
956 \fBnetwork-boot-arguments\fR.
959 .in +2
961 \fBboot net\fR
963 .in -2
968 The command below results in no device arguments. The network boot support
969 package processes arguments in \fBnetwork-boot-arguments\fR.
972 .in +2
974 \fBboot net:\fR
976 .in -2
981 The command below results in no device arguments. \fBrarp\fR is the only
982 network boot support package argument. \fBnetwork-boot-arguments\fR is ignored.
985 .in +2
987 \fBboot net:rarp\fR
989 .in -2
994 In the command below, the specified device arguments are honored. The network
995 boot support package processes arguments in \fBnetwork-boot-arguments\fR.
998 .in +2
1000 \fBboot net:speed=100,duplex=full\fR
1002 .in -2
1005 .SS "x86"
1007 \fBExample 3 \fRTo Boot the Default Kernel In 64-bit Single-User Interactive
1008 Mode
1011 To boot the default kernel in single-user interactive mode, press the ESC key
1012 to get the boot loader \fBok\fR prompt and enter:
1015 .in +2
1017 boot -as
1019 .in -2
1021 .SH FILES
1022 .ne 2
1024 \fB\fB/etc/inittab\fR\fR
1026 .sp .6
1027 .RS 4n
1028 Table in which the \fBinitdefault\fR state is specified
1032 .ne 2
1034 \fB\fB/sbin/init\fR\fR
1036 .sp .6
1037 .RS 4n
1038 Program that brings the system to the \fBinitdefault\fR state
1041 .SS "64-bit SPARC Only"
1042 .ne 2
1044 \fB\fB/platform/\fR\fIplatform-name\fR\fB/kernel/sparcv9/unix\fR\fR
1046 .sp .6
1047 .RS 4n
1048 Default program to boot system.
1051 .SS "x86 Only"
1052 .ne 2
1054 \fB\fB/boot\fR\fR
1056 .sp .6
1057 .RS 4n
1058 Directory containing boot-related files.
1062 .ne 2
1064 \fB\fB/rpool/boot/menu.lst\fR\fR
1066 .sp .6
1067 .RS 4n
1068 Menu index file of bootable operating systems displayed by the boot loader.
1070 \fBNote:\fR this file is located on the root ZFS pool. While many installs
1071 often name their root zpool 'rpool', this is not required and the
1072 /rpool in the path above should be substituted with the name of
1073 the root pool of your current system.
1077 .ne 2
1079 \fB\fB/platform/i86pc/kernel/unix\fR\fR
1081 .sp .6
1082 .RS 4n
1083 32-bit kernel.
1086 .SS "64-bit x86 Only"
1087 .ne 2
1089 \fB\fB/platform/i86pc/kernel/amd64/unix\fR\fR
1091 .sp .6
1092 .RS 4n
1093 64-bit kernel.
1096 .SH SEE ALSO
1098 \fBkmdb\fR(1), \fBuname\fR(1), \fBbootadm\fR(1M), \fBeeprom\fR(1M),
1099 \fBinit\fR(1M), \fBinstallboot\fR(1M), \fBkernel\fR(1M), \fBmonitor\fR(1M),
1100 \fBshutdown\fR(1M), \fBsvcadm\fR(1M), \fBumountall\fR(1M), \fBzpool\fR(1M),
1101 \fBuadmin\fR(2), \fBbootparams\fR(4), \fBinittab\fR(4), \fBvfstab\fR(4),
1102 \fBfilesystem\fR(5)
1105 RFC 903, \fIA Reverse Address Resolution Protocol\fR,
1106 \fBhttp://www.ietf.org/rfc/rfc903.txt\fR
1109 RFC 2131, \fIDynamic Host Configuration Protocol\fR,
1110 \fBhttp://www.ietf.org/rfc/rfc2131.txt\fR
1113 RFC 2132, \fIDHCP Options and BOOTP Vendor Extensions\fR,
1114 \fBhttp://www.ietf.org/rfc/rfc2132.txt\fR
1117 RFC 2396, \fIUniform Resource Identifiers (URI): Generic Syntax\fR,
1118 \fBhttp://www.ietf.org/rfc/rfc2396.txt\fR
1121 \fI\fR
1124 \fISun Hardware Platform Guide\fR
1127 \fIOpenBoot Command Reference Manual\fR
1128 .SH WARNINGS
1130 The \fBboot\fR utility is unable to determine which files can be used as
1131 bootable programs. If the booting of a file that is not bootable is requested,
1132 the \fBboot\fR utility loads it and branches to it. What happens after that is
1133 unpredictable.
1134 .SH NOTES
1136 \fIplatform-name\fR can be found using the \fB-i\fR option of \fBuname\fR(1).
1137 \fIhardware-class-name\fR can be found using the \fB-m\fR option of
1138 \fBuname\fR(1).
1141 The current release of the Solaris operating system does not support machines
1142 running an UltraSPARC-I CPU.