eeprom.8 revision 1.10
$OpenBSD: eeprom.8,v 1.10 2000/11/09 17:53:12 aaron Exp $
$NetBSD: eeprom.8,v 1.2 1996/02/28 01:13:24 thorpej Exp $

Copyright (c) 1996 The NetBSD Foundation, Inc.
All rights reserved.

This code is derived from software contributed to The NetBSD Foundation
by Jason R. Thorpe.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. All advertising materials mentioning features or use of this software
must display the following acknowledgement:
This product includes software developed by the NetBSD
Foundation, Inc. and its contributors.
4. Neither the name of The NetBSD Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

.Dd May 25, 1995 .Dt EEPROM 8 .Os .Sh NAME .Nm eeprom .Nd display or modify contents of the EEPROM or OpenProm .Sh SUN 3 SYNOPSIS .Nm eeprom .Op Fl .Op Fl c .Op Fl f Ar device .Op Fl i .Oo .Ar field Ns Oo .Li = Ns Ar value .Oc ... .Oc .Sh SPARC SYNOPSIS .Nm eeprom .Op Fl .Op Fl c .Op Fl f Ar device .Op Fl i .Op Fl v .Op Fl N Ar system .Oo .Ar field Ns Oo .Li = Ns Ar value .Oc ... .Oc .Sh DESCRIPTION .Nm eeprom provides an interface for displaying and changing the contents of the EEPROM or OpenProm. Without any arguments, .Nm eeprom will list all of the known fields and their corresponding values. When given the name of a specific field, .Nm eeprom will display that value or set it if the field name is followed by .Dq = and a value. Only the superuser may modify the contents of the EEPROM or OpenProm.

p The options are as follows: l -tag -width Ds t Fl Commands are taken from stdin and displayed on stdout. t Fl c .Nm eeprom will fix incorrect checksum values and exit. This flag is quietly ignored on systems with an OpenProm. t Fl f Ar device On systems with an EEPROM, use .Ar device instead of the default

a /dev/eeprom . On systems with an OpenProm, use .Ar device instead of the default

a /dev/openprom . t Fl i If checksum values are incorrect, .Nm eeprom will ignore them and continue after displaying a warning. This flag is quietly ignored on systems with an OpenProm. .El

p The following options are valid only on the SPARC and will produce an error when used on a Sun 3: l -tag -width indent t Fl v On systems with an OpenProm, be verbose when setting a value. Systems with an EEPROM are always verbose. t Fl N Ar system Use the system image .Ar system instead of the default

a /bsd . .El .Sh FIELDS AND VALUES The following fields and values are for systems with an EEPROM: l -tag -width "watchdog_reboot " t hwupdate A valid date, such as .Dq 7/12/95 . The strings .Dq today and .Dq now are also acceptable. t memsize How much memory, in megabytes, is installed in the system. t memtest How much memory, in megabytes, is to be tested upon power-up. t scrsize The size of the screen. Acceptable values are .Dq 1024x1024 , .Dq 1152x900 , .Dq 1600x1280 , and .Dq 1440x1440 . t watchdog_reboot If true, the system will reboot upon reset. Otherwise, the system will fall into the monitor. t default_boot If true, the system will use the boot device stored in

a bootdev . t bootdev Specifies the default boot device in the form cc(x,x,x), where .Dq cc is a combination of two letters such as .Dq sd or .Dq le and each .Dq x is a hexadecimal number between 0 and ff, less the prepending .Dq 0x . t kbdtype This value is .Dq 0 for all Sun keyboards. t console Specifies the console type. Valid values are .Dq b&w , .Dq ttya , .Dq ttyb , .Dq color , and .Dq p4opt . t keyclick If true, the keys click annoyingly. t diagdev This is a string very similar to that used by

a bootdev . It specifies the default boot device when the diagnostic switch is turned on. t diagpath A 40-character, NULL-terminated string specifying the kernel or standalone program to load when the diagnostic switch is turned on. t columns An 8-bit integer specifying the number of columns on the console. t rows An 8-bit integer specifying the number of rows on the console. t ttya_use_baud Use the baud rate stored in

a ttya_baud instead of the default 9600. t ttya_baud A 16-bit integer specifying the baud rate to use on ttya. t ttya_no_rtsdtr If true, disables RTS/DTR. t ttyb_use_baud Similar to

a ttya_use_baud , but for ttyb. t ttyb_baud Similar to

a ttya_baud , but for ttyb. t ttyb_no_rtsdtr Similar to

a ttya_no_rtsdtr , but for ttyb. t banner An 80-character, NULL-terminated string to use at power-up instead of the default Sun banner. .El

p Note that the

a secure ,

a bad_login , and

a password fields are not currently supported.

p Since the OpenProm is designed such that the field names are arbitrary, explaining them here is dubious. Below are field names and values that one is likely to see on a system with an OpenProm. NOTE: this list may be incomplete or incorrect due to differences between revisions of the OpenProm. l -tag -width "last-hardware-update " t sunmon-compat? If true, the old EEPROM-style interface will be used while in the monitor, rather than the OpenProm-style interface. t selftest-#megs A 32-bit integer specifying the number of megabytes of memory to test upon power-up. t oem-logo A 64bitx64bit bitmap in Sun Iconedit format. To set the bitmpa, give the pathname of the file containing the image. NOTE: this property is not yet supported. t oem-logo? If true, enables the use of the bitmap stored in

a oem-logo rather than the default Sun logo. t oem-banner A string to use at power-up, rather than the default Sun banner. t oem-banner? If true, enables the use of the banner stored in

a oem-banner rather than the default Sun banner. t ttya-mode A string of five comma separated fields in the format .Dq 9600,8,n,1,- . The first field is the baud rate. The second field is the number of data bits. The third field is the parity; acceptable values for parity are .Dq n (none), .Dq e (even), .Dq o (odd), .Dq m (mark), and .Dq s (space). The fourth field is the number of stop bits. The fifth field is the .Dq handshake field; acceptable values are .Dq - (none), .Dq h (RTS/CTS), and .Dq s (XON/XOFF). t ttya-rts-dtr-off If true, the system will ignore RTS/DTR. t ttya-ignore-cd If true, the system will ignore carrier detect. t ttyb-mode Similar to

a ttya-mode , but for ttyb. t ttyb-rts-dtr-off Similar to

a ttya-rts-dtr-off , but for ttyb. t ttyb-ignore-cd Similar to

a ttya-ignore-cd , but for ttyb. t sbus-probe-list Four digits in the format .Dq 0123 specifying which order to probe the sbus at power-up. It is unlikely that this value should ever be changed. t screen-#columns An 8-bit integer specifying the number of columns on the console. t screen-#rows An 8-bit integer specifying the number of rows on the console. t auto-boot? If true, the system will boot automatically at power-up. t watchdog-reboot? If true, the system will reboot upon reset. Otherwise, system will fall into the monitor. t input-device One of the strings .Dq keyboard , .Dq ttya , or .Dq ttyb specifying the default console input device. t output-device One of the strings .Dq screen , .Dq ttya , or .Dq ttyb specifying the default console output device. t keyboard-click? If true, the keys click annoyingly. t sd-targets A string in the format .Dq 31204567 describing the translation of physical to logical target. t st-targets Similar to

a sd-targets , but for tapes. The default translation is .Dq 45670123 . t scsi-initiator-id The SCSI ID of the on-board SCSI controller. t hardware-revision A 7-character string describing a date, such as .Dq 25May95 . t last-hardware-update Similar to

a hardware-revision , describing when the CPU was last updated. t diag-switch? If true, the system will boot and run in diagnostic mode. t local-mac-address? When set to

a false all Ethernet devices will use same system default MAC address. When

a true , Ethernet devices which have a unique MAC address will use it rather than the system default MAC address. .El .Sh WARNINGS The fields and their values are not necessarily well defined on systems with an OpenProm. Your mileage may vary.

p There are a few fields known to exist in some revisions of the EEPROM and/or OpenProm that are not yet supported. Most notable are those relating to password protection of the EEPROM or OpenProm.

p Avoid gratuitously changing the contents of the EEPROM. It has a limited number of write cycles.

p The date parser isn't very intelligent. .Sh FILES l -tag -width "/dev/openprom " t /dev/eeprom the EEPROM device on systems with an EEPROM t /dev/openprom the OpenProm device on systems with an OpenProm .El