1
<!-- retain these comments for translator revision tracking -->
2
<!-- original version: 11648 untranslated -->
5
<sect2 arch="sparc" id="invoking-openboot"><title>Invoking OpenBoot</title>
9
OpenBoot provides the basic functions needed to boot the &arch-title;
10
architecture. This is rather similar in function to the BIOS in the
11
x86 architecture, although much nicer. The Sun boot PROMs have a
12
built-in forth interpreter which lets you do quite a number of things
13
with your machine, such as diagnostics, simple scripts, etc.
17
To get to the boot prompt you need to hold down the
18
<keycap>Stop</keycap> key (on older type 4 keyboards, use the
19
<keycap>L1</keycap> key, if you have a PC keyboard adapter, use
20
the <keycap>Break</keycap> key) and press the
21
<keycap>A</keycap> key. The boot PROM will give you a prompt,
22
either <userinput>ok</userinput> or <userinput>></userinput>. It is
23
preferred to have the <userinput>ok</userinput> prompt. So if you get
24
the old style prompt, hit the <keycap>n</keycap> key to get the new
30
<sect2 arch="sparc" id="boot-dev-select-sun">
31
<title>Boot Device Selection</title>
35
You can use OpenBoot to boot from specific devices, and also to change
36
your default boot device. However, you need to know some details
37
about how OpenBoot names devices; it's much different from Linux
38
device naming, described in <xref linkend="device-names"/>.
39
Also, the command will vary a bit, depending on what version of
40
OpenBoot you have. More information about OpenBoot can be found in
41
the <ulink url="&url-openboot;">Sun OpenBoot Reference</ulink>.
45
Typically, with newer revisions, you can use OpenBoot device such as
46
``floppy'', ``cdrom'', ``net'', ``disk'', or ``disk2''. These have
47
the obvious meanings; the ``net'' device is for booting from the
48
network. Additionally, the device name can specify a particular
49
partition of a disk, such as ``disk2:a'' to boot disk2, first
50
partition. Full OpenBoot device names have the form
54
<replaceable>driver-name</replaceable>@
55
<replaceable>unit-address</replaceable>:
56
<replaceable>device-arguments</replaceable>
57
</screen></informalexample>.
59
In older revisions of OpenBoot, device naming is a bit different: the
60
floppy device is called ``/fd'', and SCSI disk devices are of the form
61
``sd(<replaceable>controller</replaceable>,
62
<replaceable>disk-target-id</replaceable>,
63
<replaceable>disk-lun</replaceable>)''. The command
64
<userinput>show-devs</userinput> in newer OpenBoot revisions is useful
65
for viewing the currently configured devices. For full information,
66
whatever your revision, see the
67
<ulink url="&url-openboot;">Sun OpenBoot Reference</ulink>.
71
To boot from a specific device, use the command <userinput>boot
72
<replaceable>device</replaceable></userinput>. You can set this
73
behavior as the default using the <userinput>setenv</userinput>
74
command. However, the name of the variable to set changed between
75
OpenBoot revisions. In OpenBoot 1.x, use the command
76
<userinput>setenv boot-from
77
<replaceable>device</replaceable></userinput>. In later revisions of
78
OpenBoot, use the command <userinput>setenv boot-device
79
<replaceable>device</replaceable></userinput>. Note, this is also
80
configurable using the <command>eeprom</command> command on Solaris,
81
or modifying the appropriate files in
82
<filename>/proc/openprom/options/</filename>, for example under Linux:
84
<informalexample><screen>
86
echo disk1:1 >/proc/openprom/options/boot-device
88
</screen></informalexample>
92
<informalexample><screen>
94
eeprom boot-device=disk1:1
96
</screen></informalexample>