The Boot PROM
HomeSCJP | SCWCD | SCEA | SCSA
State or recognize the combination of actions required to interrupt a non-responsive system
* Pressing Stop -a will interrupt the running O.S and return to the OpenBoot OK prompt.
* Pressing
Stop -n will reset the values of NVRAM to the factory defaults while system is booting. * Pressing Stop -d will run the diagnositic mode as the system boots up.
State the cmd strings used to manipulate custom device aliases
Sun HW config is organized as a device tree, with the processor as the top node, followed by buses, on-board cntrllers and devices.

* Solaris can be booted from an external source. However, there may not be 'aliases' defined to tell the O.S  about the new boot device. Creating a custom dvice alias using nvalias will correct this issue.
If the
use-nvramrc param is set to true, then the script is exec during the start-up.
The script editor
nvedit can be used to copy the contents of the script into a temp buffer where it can be edited. After editing the nvstore cmd can be used to copy the contents of the temp to nvramrc. The nvquit cmd is used to discard the contents of the temp buffer.

The alias defined by the
nvalias cmd remains in the script until either the nvunalias or set-defaults cmd is exec. The set-defaults cmd can be undone by the unrecover.

ok nvalias disk2 /iommu@0,1000000/sbus@0,10001000/espdma@5,840000/esp@5,8800000/sd@3,0
ok setenv boot-device disk2
ok boot


Any aliases defined by the
devalias cmd are lost during a reboot or system reset.
Aliases defined by the
nvalias cmd are not lost. Custom aliases can also be removed using the cmd nvunalias.

ok nvunalias disk2
ok setenv boot-device disk
ok reset