1*2ad03484Smiod.\" $OpenBSD: eeprom.8,v 1.24 2022/11/09 07:20:12 miod Exp $ 2608f9123Sniklas.\" $NetBSD: eeprom.8,v 1.2 1996/02/28 01:13:24 thorpej Exp $ 3df930be7Sderaadt.\" 4608f9123Sniklas.\" Copyright (c) 1996 The NetBSD Foundation, Inc. 5df930be7Sderaadt.\" All rights reserved. 6df930be7Sderaadt.\" 7608f9123Sniklas.\" This code is derived from software contributed to The NetBSD Foundation 8608f9123Sniklas.\" by Jason R. Thorpe. 9608f9123Sniklas.\" 10df930be7Sderaadt.\" Redistribution and use in source and binary forms, with or without 11df930be7Sderaadt.\" modification, are permitted provided that the following conditions 12df930be7Sderaadt.\" are met: 13df930be7Sderaadt.\" 1. Redistributions of source code must retain the above copyright 14df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer. 15df930be7Sderaadt.\" 2. Redistributions in binary form must reproduce the above copyright 16df930be7Sderaadt.\" notice, this list of conditions and the following disclaimer in the 17df930be7Sderaadt.\" documentation and/or other materials provided with the distribution. 18df930be7Sderaadt.\" 19608f9123Sniklas.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20608f9123Sniklas.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21608f9123Sniklas.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22608f9123Sniklas.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE 23608f9123Sniklas.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24608f9123Sniklas.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25608f9123Sniklas.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26608f9123Sniklas.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27608f9123Sniklas.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28608f9123Sniklas.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29608f9123Sniklas.\" POSSIBILITY OF SUCH DAMAGE. 30df930be7Sderaadt.\" 31*2ad03484Smiod.Dd $Mdocdate: November 9 2022 $ 32df930be7Sderaadt.Dt EEPROM 8 33df930be7Sderaadt.Os 34df930be7Sderaadt.Sh NAME 35df930be7Sderaadt.Nm eeprom 36*2ad03484Smiod.Nd display or modify contents of the OpenPROM 373f397614Sjmc.Sh SYNOPSIS 38df930be7Sderaadt.Nm eeprom 39*2ad03484Smiod.Op Fl pv 40df930be7Sderaadt.Op Fl f Ar device 41df930be7Sderaadt.Oo 420bf314e8Sjmc.Ar field Ns Op = Ns Ar value 430bf314e8Sjmc.Ar ... 44df930be7Sderaadt.Oc 45df930be7Sderaadt.Sh DESCRIPTION 466f10db5aSaaron.Nm eeprom 47df930be7Sderaadtprovides an interface for displaying and changing the contents of the 48*2ad03484SmiodOpenPROM. 49cdbdb68aSaaronWithout any arguments, 50df930be7Sderaadt.Nm eeprom 51df930be7Sderaadtwill list all of the known fields and their corresponding values. 52df930be7SderaadtWhen given the name of a specific field, 53df930be7Sderaadt.Nm eeprom 54df930be7Sderaadtwill display that value or set it if the field name is followed by 550bf314e8Sjmc.Sq = 56cdbdb68aSaaronand a value. 57*2ad03484SmiodOnly the superuser may modify the contents of the OpenPROM. 58df930be7Sderaadt.Pp 59df930be7SderaadtThe options are as follows: 60f1ba3473Saaron.Bl -tag -width Ds 61df930be7Sderaadt.It Fl 62df930be7SderaadtCommands are taken from stdin and displayed on stdout. 63df930be7Sderaadt.It Fl f Ar device 64*2ad03484SmiodUse 65df930be7Sderaadt.Ar device 66df930be7Sderaadtinstead of the default 67df930be7Sderaadt.Pa /dev/openprom . 68ab95fc2fSfgsch.It Fl p 69*2ad03484SmiodDisplay the tree derived from the OpenPROM and exit. 70df930be7Sderaadt.It Fl v 71*2ad03484SmiodBe verbose when setting a value. 72df930be7Sderaadt.El 73df930be7Sderaadt.Sh FIELDS AND VALUES 749fd8fe29SjmcSince the OpenPROM is designed such that the field names are arbitrary, 75cdbdb68aSaaronexplaining them here is dubious. 76*2ad03484SmiodBelow are field names and values that one is likely to see. 77cdbdb68aSaaronNOTE: this list 78df930be7Sderaadtmay be incomplete or incorrect due to differences between revisions 799fd8fe29Sjmcof the OpenPROM. 80ef68e7d8Skn.Bl -tag -width "network-boot-arguments " 813f397614Sjmc.It Ar sunmon-compat? 82df930be7SderaadtIf true, the old EEPROM-style interface will be used while in the monitor, 839fd8fe29Sjmcrather than the OpenPROM-style interface. 843f397614Sjmc.It Ar selftest-#megs 858b42e507SmillertA 32-bit integer specifying the number of megabytes of memory to 86df930be7Sderaadttest upon power-up. 873f397614Sjmc.It Ar oem-logo 88cdbdb68aSaaronA 64bitx64bit bitmap in Sun Iconedit format. 893f397614SjmcTo set the bitmap, give the pathname of the file containing the image. 90cdbdb68aSaaronNOTE: this property is not yet supported. 913f397614Sjmc.It Ar oem-logo? 92df930be7SderaadtIf true, enables the use of the bitmap stored in 933f397614Sjmc.Ar oem-logo 94df930be7Sderaadtrather than the default Sun logo. 953f397614Sjmc.It Ar oem-banner 966f10db5aSaaronA string to use at power-up, rather than the default Sun banner. 973f397614Sjmc.It Ar oem-banner? 988b42e507SmillertIf true, enables the use of the banner stored in 993f397614Sjmc.Ar oem-banner 100df930be7Sderaadtrather than the default Sun banner. 1013f397614Sjmc.It Ar ttya-mode 102df930be7SderaadtA string of five comma separated fields in the format 103df930be7Sderaadt.Dq 9600,8,n,1,- . 104cdbdb68aSaaronThe first field is the baud rate. 105cdbdb68aSaaronThe second field is the number of data bits. 106cdbdb68aSaaronThe third field is the parity; acceptable values for parity are 1076f10db5aSaaron.Dq n 108df930be7Sderaadt(none), 1096f10db5aSaaron.Dq e 110df930be7Sderaadt(even), 1116f10db5aSaaron.Dq o 112df930be7Sderaadt(odd), 1136f10db5aSaaron.Dq m 114df930be7Sderaadt(mark), and 1156f10db5aSaaron.Dq s 116cdbdb68aSaaron(space). 117cdbdb68aSaaronThe fourth field is the number of stop bits. 118cdbdb68aSaaronThe fifth field is the 1196f10db5aSaaron.Dq handshake 120df930be7Sderaadtfield; acceptable values are 1216f10db5aSaaron.Dq - 122df930be7Sderaadt(none), 1236f10db5aSaaron.Dq h 1246f10db5aSaaron(RTS/CTS), and 1256f10db5aSaaron.Dq s 1266f10db5aSaaron(XON/XOFF). 1273f397614Sjmc.It Ar ttya-rts-dtr-off 128df930be7SderaadtIf true, the system will ignore RTS/DTR. 1293f397614Sjmc.It Ar ttya-ignore-cd 130df930be7SderaadtIf true, the system will ignore carrier detect. 1313f397614Sjmc.It Ar ttyb-mode 132df930be7SderaadtSimilar to 1333f397614Sjmc.Ar ttya-mode , 134df930be7Sderaadtbut for ttyb. 1353f397614Sjmc.It Ar ttyb-rts-dtr-off 136df930be7SderaadtSimilar to 1373f397614Sjmc.Ar ttya-rts-dtr-off , 138df930be7Sderaadtbut for ttyb. 1393f397614Sjmc.It Ar ttyb-ignore-cd 140df930be7SderaadtSimilar to 1413f397614Sjmc.Ar ttya-ignore-cd , 142df930be7Sderaadtbut for ttyb. 1433f397614Sjmc.It Ar sbus-probe-list 144df930be7SderaadtFour digits in the format 145df930be7Sderaadt.Dq 0123 14619902940Ssobradospecifying which order to probe the SBus at power-up. 147cdbdb68aSaaronIt is unlikely that this value should ever be changed. 1483f397614Sjmc.It Ar screen-#columns 149df930be7SderaadtAn 8-bit integer specifying the number of columns on the console. 1503f397614Sjmc.It Ar screen-#rows 151df930be7SderaadtAn 8-bit integer specifying the number of rows on the console. 15231f8bea5Skn.It Ar boot-device 15331f8bea5SknSpace separated list of device aliases or device paths to boot from, 15431f8bea5Sknin the given order. 15531f8bea5Skn.It Ar boot-file 15631f8bea5SknFile to boot. 15731f8bea5SknThe empty string lets the second-stage boot program 15831f8bea5Skn.Sy ofwboot 15931f8bea5Sknchoose the default. 1603f397614Sjmc.It Ar auto-boot? 161df930be7SderaadtIf true, the system will boot automatically at power-up. 1623f397614Sjmc.It Ar watchdog-reboot? 163cdbdb68aSaaronIf true, the system will reboot upon reset. 1643f397614SjmcOtherwise, the system will fall into the monitor. 1653f397614Sjmc.It Ar input-device 166df930be7SderaadtOne of the strings 167df930be7Sderaadt.Dq keyboard , 168df930be7Sderaadt.Dq ttya , 169df930be7Sderaadtor 170df930be7Sderaadt.Dq ttyb 171df930be7Sderaadtspecifying the default console input device. 1723f397614Sjmc.It Ar output-device 173df930be7SderaadtOne of the strings 174df930be7Sderaadt.Dq screen , 175df930be7Sderaadt.Dq ttya , 176df930be7Sderaadtor 177df930be7Sderaadt.Dq ttyb 178df930be7Sderaadtspecifying the default console output device. 1793f397614Sjmc.It Ar keyboard-click? 180df930be7SderaadtIf true, the keys click annoyingly. 181ef68e7d8Skn.It Ar network-boot-arguments 182ef68e7d8SknComma separated list of arguments for booting over RARP or BOOTP/DHCP and TFTP. 1833f397614Sjmc.It Ar sd-targets 184df930be7SderaadtA string in the format 185df930be7Sderaadt.Dq 31204567 186df930be7Sderaadtdescribing the translation of physical to logical target. 1873f397614Sjmc.It Ar st-targets 188df930be7SderaadtSimilar to 1893f397614Sjmc.Ar sd-targets , 190cdbdb68aSaaronbut for tapes. 191cdbdb68aSaaronThe default translation is 192df930be7Sderaadt.Dq 45670123 . 1933f397614Sjmc.It Ar scsi-initiator-id 194df930be7SderaadtThe SCSI ID of the on-board SCSI controller. 1953f397614Sjmc.It Ar hardware-revision 196df930be7SderaadtA 7-character string describing a date, such as 197df930be7Sderaadt.Dq 25May95 . 1983f397614Sjmc.It Ar last-hardware-update 199df930be7SderaadtSimilar to 2003f397614Sjmc.Ar hardware-revision , 201df930be7Sderaadtdescribing when the CPU was last updated. 2023f397614Sjmc.It Ar diag-switch? 203df930be7SderaadtIf true, the system will boot and run in diagnostic mode. 2043f397614Sjmc.It Ar local-mac-address? 205a68a0cbfSjasonWhen set to 2069fd8fe29Sjmc.Em false , 2079fd8fe29Sjmcall Ethernet devices will use the same system default MAC address. 208cdbdb68aSaaronWhen 2093f397614Sjmc.Em true , 210a68a0cbfSjasonEthernet devices which have a unique MAC address will use it 211a68a0cbfSjasonrather than the system default MAC address. 2129fd8fe29SjmcThis option only really affects FCode-based Ethernet devices. 2139fd8fe29SjmcOn Sparc64, all on-board devices, 2149fd8fe29Sjmcas well as plug-in 2159fd8fe29Sjmc.Xr hme 4 2169fd8fe29Sjmcboards, will respect this setting; 2179fd8fe29Sjmcother hardware will not. 218df930be7Sderaadt.El 2199fd8fe29Sjmc.Sh FILES 2209fd8fe29Sjmc.Bl -tag -width "/dev/openprom" -compact 2219fd8fe29Sjmc.It /dev/openprom 222*2ad03484Smiodthe OpenPROM device 2239fd8fe29Sjmc.El 2249fd8fe29Sjmc.Sh SEE ALSO 2259fd8fe29Sjmc.Xr openprom 4 2269fd8fe29Sjmc.Sh CAVEATS 227df930be7SderaadtThe fields and their values are not necessarily well defined on 2289fd8fe29Sjmcsystems with an OpenPROM. 229cdbdb68aSaaronYour mileage may vary. 230df930be7Sderaadt.Pp 231*2ad03484SmiodThere are a few fields known to exist in some revisions of the 232*2ad03484SmiodOpenPROM that are not yet supported. 233cdbdb68aSaaronMost notable are those 234*2ad03484Smiodrelating to password protection of the OpenPROM. 235df930be7Sderaadt.Pp 236df930be7SderaadtThe date parser isn't very intelligent. 237