1 .\" $NetBSD: ofwboot.8,v 1.8 2007/12/14 21:16:01 pavel Exp $
3 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Makoto Fujiwara, Thomas Klausner, and Michael Wolfson.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
37 .Nd Open Firmware boot command
41 Open Firmware is a FORTH-like command interpreter started by the BootROM after
42 the power-on self test (POST).
43 This command interpreter allows the user flexibility in choosing how their
44 machine boots an operating system.
46 uses Open Firmware to initialize
47 many of the devices in a system and uses it to load the primary bootloader,
50 The information in this man page should only serve as a guideline for users.
52 has made many revisions to Open Firmware, and the earlier versions
53 had many problems and inconsistencies.
54 You may find that a boot command that works on one model will not work
57 In this man page, only one Open Firmware command will be described,
59 because it is used to pass arguments to
63 command takes up to three arguments:
66 .Op Ar boot-device Op Ar boot-file
68 .Bl -tag -width boot-device -compact
70 primary bootloader location
74 flags passed to the kernel (see below)
79 actually designates the primary bootloader location and its name in the
81 .Dl boot-device:[partition-num],[bootloader-filename]
82 A typical example, from a PowerBook (FireWire), is
83 .Dl /pci@f2000000/mac-io@17/ata-4@1f000/@0:9,ofwboot.xcf
84 .\" XXX: can't use Dq or Pq with : or ,
85 Note that colon (`:') delimits the device to the left, and comma (`,')
86 separates the boot loader filename from the first part.
87 For Open Firmware versions before 3, the primary bootloader is installed
90 and it is not necessary to specify the bootloader-filename.
91 For Open Firmware version 3, you must specify the bootloader-filename.
93 Open Firmware stores aliases to common devices in NVRAM.
95 .Pa /pci@f2000000/mac-io@17/ata-4@1f000/@0
96 is the path on a PowerBook
97 (FireWire) to the built-in ATA/100 hard drive.
100 command in Open Firmware to print out a list of common device names on a
102 The command above could then be simplified to:
105 .Ar boot-loader-file-name
110 section for further discussion.)
112 If omitted, the Open Firmware variable
116 It may be necessary to specify the
118 if Open Firmware does not know where to find the kernel.
119 The default is to load the file named
123 from the device used to load the primary bootloader.
126 Open Firmware versions less than 3 which are set up using
130 argument is not necessary.
131 Systems with Open Firmware version 3 may need to specify the
134 The syntax is similar to the
137 .Dl [boot-file-device:partition-num/][kernel-name]
138 This is a little different, since a kernel-name may be specified without
139 listing a boot-file-device and partition-num.
140 Additionally, a boot-file-device and partition-num may need to be
141 specified, while using the default kernel-name.
143 If no kernel-name is specified, the primary bootloader will try to find
148 on the boot-device or (if specified) boot-file-device.
150 Possible options are:
151 .Bl -tag -width xxxxx -compact
153 ask for the boot device
155 single-user mode boot
159 exit to Open Firmware after processing arguments
162 If set, the following Open Firmware variables will be used to determine which
166 Open Firmware should use when booting a system.
167 If the user specifies arguments on the command line, these values
169 .Bl -tag -width boot-device -compact
171 used as the first argument
173 used as the second argument
175 setting this variable to
177 will present the user with an Open Firmware command prompt after power-on
181 will automatically boot the system using the variables
185 (This is not really related to the boot command, but is included for
188 To restore these variables to their default values, use the
190 Open Firmware command:
191 .Ic set-default Ar boot-device
198 are the same program, in different executable formats.
199 .Bl -tag -width ofwboot.xcf
204 on systems with Open Firmware versions less than 3.
205 It is not necessary to specify this file name, as it is stored in a special
206 location on the disk, partition
208 For example, the following command might be used to boot from a SCSI device
210 .Ic "0 \*[Gt]boot scsi-int/sd@2:0" .
214 This file is used on all Open Firmware 3 systems, and on Open Firmware
215 systems prior to 3 when the bootloader is not installed in partition
217 such as from an ISO-9660 format CD-ROM.
222 format and only functions on systems with Open Firmware version 3.
223 To avoid confusion, all users should be using
227 offers no additional functionality.
228 It is only included for historical reasons.
230 This 1.44 MB disk image contains everything necessary to boot and install
232 It includes the partition
236 an INSTALL kernel (with limited device drivers), and the
238 utility in a RAM disk.
239 Since Open Firmware does not care what media
240 files are loaded from, only whether they are supported and in the correct
241 format, this disk image may be placed on media other than floppy disks, such
242 as hard drives or Zip disks.
247 on MacOS 9.1 or later, or
249 on any MacOS version to copy this image onto the media.
251 production kernel, using the GENERIC set of devices which supports almost all
252 hardware available for this platform.
253 .It netbsd_GENERIC_MD.gz
254 GENERIC kernel (the same as
260 bootable CDROM image for all supported systems.
262 .Pa ftp://ftp.NetBSD.org/pub/NetBSD/iso/{RELEASE}/macppccd.iso
267 Boot an Open Firmware 3 system, with
269 installed on partition
272 0 \*[Gt] boot hd:,ofwboot.xcf
275 Boot into single user mode:
277 0 \*[Gt] boot hd:,ofwboot.xcf netbsd -s
280 Boot from bootable CDROM with Open Firmware 3 or higher:
282 0 \*[Gt] boot cd:,\eofwboot.xcf netbsd.macppc
285 Boot from bootable CDROM (internal SCSI, id=3) of
287 release with Open Firmware versions prior to 3:
289 0 \*[Gt] boot scsi/sd@3:0,OFWBOOT.XCF NETBSD.MACPPC
292 Boot from floppy disk:
297 Boot from network, with bootps,
307 Boot from network, but use internal root partition of second drive:
309 0 \*[Gt] boot enet:0 ultra1:0
312 Boot MacOS, looking for the first available bootable disk:
314 0 \*[Gt] boot hd:,\e\e:tbxi
317 Boot MacOS X residing on partition 10:
319 0 \*[Gt] boot hd:10,\e\e:tbxi
324 DEFAULT CATCH!, code=FF00300 at %SRR0: FF80AD38 %SRR1: 00001070
328 or I/O errors on the device.
329 The numbers are just for example.
331 Can't LOAD from this device
333 Open Firmware found the device, but it is not supported by
336 0 \*[Gt] boot yy:0/netbsd
337 RESETing to change Configuration!
340 doesn't exist, so Open Firmware ignores the string and uses the
341 default parameters to boot MacOS; the MacOS boot routine then clears
342 some of the Open Firmware variables.
344 0 \*[Gt] boot ata/ata-disk@0:9 specified partition is not bootable
349 0 \*[Gt] boot ata/ata-disk@0:0
350 \*[Gt]\*[Gt] NetBSD/macppc OpenFirmware Boot, Revision 1.3
351 \*[Gt]\*[Gt] (root@nazuha, Fri Jun 8 22:21:55 JST 2001)
352 no active package3337696/
354 and hangs: See the real-base part in the FAQ.
357 .\" >> NetBSD/macppc OpenFirmware Boot, Revision 1.3
358 .\" >> (root@nazuha, Fri Jun 8 22:21:55 JST 2001)
359 .\" no active packageopen yy: Device not configured
360 .\" open ata/ata-disk@0/yy: Device not configured
368 .Pa http://www.NetBSD.org/ports/macppc/faq.html
370 .Pa http://www.NetBSD.org/docs/network/netboot/
375 can only boot from devices recognized by Open Firmware.
377 Early PowerMacintosh systems (particularly the 7500) seem to have problems
379 Adding an arp entry at the tftp server with
380 .Dl arp -s booting-host-name its-ethernet-address
381 may resolve this problem (see
385 0 \*[Gt] boot CLAIM failed
388 Once boot failed, successive boots may not be possible.
391 or power-cycle to initialize Open Firmware.