1 .\" $NetBSD: eeprom.8,v 1.15 2008/09/25 22:44:51 reed Exp $
3 .\" Copyright (c) 1996 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Jason R. Thorpe.
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.
35 .Nd display or modify contents of the EEPROM or openprom
47 .Sh SPARC, SPARC64, MACPPC and PREP SYNOPSIS
61 provides an interface for displaying and changing the contents of the
65 tool is only installed on supported platforms.
67 Without any arguments,
69 will list all of the known fields and their corresponding values.
70 When given the name of a specific field,
72 will display that value or set it if the field name is followed by
75 Only the super-user may modify the contents of the EEPROM or openprom.
77 The options are as follows:
78 .Bl -tag -width indent
80 Commands are taken from stdin and displayed on stdout.
83 will fix incorrect checksum values and exit.
84 This flag is quietly ignored on systems with an openprom.
86 On systems with an EEPROM, use
88 instead of the default
90 On systems with an openprom, use
92 instead of the default
95 If checksum values are incorrect,
97 will ignore them and continue after displaying a warning.
98 This flag is quietly ignored on systems with an openprom.
101 The following options are valid only on the SPARC and will produce an
102 error when used on a Sun 3:
103 .Bl -tag -width indent
105 On systems with an openprom, be verbose when setting a value.
106 Systems with an EEPROM are always verbose.
111 option is also present on sparc64, macppc, and prep systems.
112 .Sh FIELDS AND VALUES
113 The following fields and values are for systems with an EEPROM:
114 .Bl -tag -width "watchdog_reboot "
116 A valid date, such as
124 How much memory, in megabytes, is installed in the system.
126 How much memory, in megabytes, is to be tested upon power-up.
128 The size of the screen.
129 Acceptable values are
136 If true, the system will reboot upon reset.
137 Otherwise, the system will fall into the monitor.
139 If true, the system will use the boot device stored in
142 Specifies the default boot device in the form cc(x,x,x), where
144 is a combination of two letters such as
150 is a hexadecimal number between 0 and ff, less the prepending
155 for all Sun keyboards.
157 Specifies the console type.
166 If true, the keys click annoyingly.
168 This is a string very similar to that used by
170 It specifies the default boot device when the diagnostic switch is
173 A 40-character, NULL-terminated string specifying the kernel or standalone
174 program to load when the diagnostic switch is turned on.
176 An 8-bit integer specifying the number of columns on the console.
178 An 8-bit integer specifying the number of rows on the console.
180 Use the baud rate stored in
182 instead of the default 9600.
184 A 16-bit integer specifying the baud rate to use on ttya.
186 If true, disables RTS/DTR.
200 An 80-character, NULL-terminated string to use at power-up instead
201 of the default Sun banner.
209 fields are not currently supported.
211 Since the openprom is designed such that the field names are arbitrary,
212 explaining them here is dubious.
213 Below are field names and values that
214 one is likely to see on a system with an openprom.
215 NOTE: this list may be incomplete or incorrect due to differences
216 between revisions of the openprom.
217 .Bl -tag -width "last-hardware-update "
219 If true, the old EEPROM-style interface will be used while in the monitor,
220 rather than the openprom-style interface.
222 A 32-bit integer specifying the number of megabytes of memory to
225 A 64bitx64bit bitmap in Sun Iconedit format.
226 To set the bitmap, give the pathname of the file containing the
228 NOTE: this property is not yet supported.
230 If true, enables the use of the bitmap stored in
232 rather than the default Sun logo.
234 A string to use at power up, rather than the default Sun banner.
236 If true, enables the use of the banner stored in
238 rather than the default Sun banner.
240 A string of five comma separated fields in the format
242 The first field is the baud rate.
243 The second field is the number of data bits.
244 The third field is the parity; acceptable values for parity are
255 The fourth field is the number of stop bits.
256 The fifth field is the
258 field; acceptable values are
266 If true, the system will ignore RTS/DTR.
268 If true, the system will ignore carrier detect.
275 .Pa ttya-rts-dtr-off ,
282 Four digits in the format
284 specifying which order to probe the sbus at power-up.
285 It is unlikely that this value should ever be changed.
287 An 8-bit integer specifying the number of columns on the console.
289 An 8-bit integer specifying the number of rows on the console.
291 If true, the system will boot automatically at power-up.
293 If true, the system will reboot upon reset.
294 Otherwise, system will fall into the monitor.
301 specifying the default console input device.
308 specifying the default console output device.
310 If true, the keys click annoyingly.
312 A string in the format
314 describing the translation of physical to logical target.
319 The default translation is
321 .It scsi-initiator-id
322 The SCSI ID of the on-board SCSI controller.
323 .It hardware-revision
324 A 7-character string describing a date, such as
326 .It last-hardware-update
328 .Pa hardware-revision ,
329 describing when the CPU was last updated.
331 If true, the system will boot and run in diagnostic mode.
334 .Bl -tag -width "/dev/openprom "
336 The EEPROM device on systems with an EEPROM.
338 The openprom device on systems with an openprom.
340 The nvram device on PReP systems.
345 The fields and their values are not necessarily well defined on
346 systems with an openprom.
347 Your mileage may vary.
349 There are a few fields known to exist in some revisions of the EEPROM
350 and/or openprom that are not yet supported.
351 Most notable are those
352 relating to password protection of the EEPROM or openprom.
354 Avoid gratuitously changing the contents of the EEPROM.
355 It has a limited number of write cycles.
357 The date parser isn't very intelligent.