OpenBoot PROM Commands

Sun SPARC based servers instead of a CMOS chip use a different eeprom chip called the OpenBoot PROM (or just PROM for short). Instead of the graphical BIOS utility found on most x86 systems, SPARC systems utilize a command line interface to control various aspects of the boot process. The command prompt is simply the word “ok”, so it can also be called the ok prompt. Through the command line you can specify default boot devices, security passwords, etc. There is also more functionality like ejecting media (tape, CD, etc). Let’s see you eject a CD from your BIOS screen! :)  Another nice feature of the Solaris OS is that it allows you to modify these settings from the OS command prompt.  Simply use the eeprom command (/usr/sbin/eeprom) to display or set the configuration values.

Here are some of the more common commands you would run from the ok prompt:

boot <device> – boot the system, allows you to specify an alternative device
reset-all – power cycle the server
printenv – display the value of all boot configuration variables (or NVRAM parameters)
setenv <varname> <value> – set new value to a specific configuration variable
devalias – list and set physical device aliases

Sample devalias output:

ok devalias

xnet2                    /pci@1d,700000/pci@1/SUNW,hme@0,1:dhcp,
xnet1                    /pci@1e,600000/pci@3/SUNW,hme@0,1:dhcp,
xnet                     /pci@1e,600000/pci@2/SUNW,hme@0,1:dhcp,
net3                     /pci@1d,700000/network@2,1
net2                     /pci@1d,700000/network@2
net1                     /pci@1f,700000/network@2,1
net                      /pci@1f,700000/network@2
cdrom                    /pci@1e,600000/ide@d/cdrom@0,0:f
ide                      /pci@1e,600000/ide@d
disk3                    /pci@1c,600000/scsi@2/disk@3,0
disk2                    /pci@1c,600000/scsi@2/disk@2,0
disk1                    /pci@1c,600000/scsi@2/disk@1,0
disk0                    /pci@1c,600000/scsi@2/disk@0,0
disk                     /pci@1c,600000/scsi@2/disk@0,0
scsi                     /pci@1c,600000/scsi@2
sc-control               /pci@1e,600000/isa@7/rmc-comm@0,3e8
ttyb                     /pci@1e,600000/isa@7/serial@0,2e8
ttya                     /pci@1e,600000/isa@7/serial@0,3f8
name                     aliases

Leave a Comment