Solaris 7 Sun Hardware Platform Guide

Restoring NVRAM Configuration Variables

If for any reason, the flash PROM update process did not complete successfully, for example if you lost power, you may have to restore diag-switch? to its default value of false and restore any customized values to the other NVRAM configuration variables.


Note -

Use the steps in this section only if for any reason your NVRAM configuration variables were not reset to their customized values or if diag-switch? was not set to its proper value.


  1. Reboot the system by typing reboot at the prompt. If diag-switch? was set to true and the system is power cycled, diagnostics will be run. Running diagnostics could take several minutes. Also, the system will attempt to boot from the network once the diagnostics have completed running.


    Note -

    Other NVRAM variables may be reset to their default values, which could affect the system in other ways. For example, if you ran the flash PROM update through the serial port and the system still has its keyboard plugged in, you will no longer get any response from the serial port connection. The firmware will be waiting for input from the keyboard.


  2. As the system boots, go to the ok prompt by one of the following methods.

    1. Press Stop-a from the keyboard.

    2. If you are running on a terminal and connected to serial port A of the system, press the Break key.

    3. If you are connected to serial port A via telnet connection send a Break sequence by pressing the Control and ] keys simultaneously. This returns you to the telnet command line. Type send brk at the telnet command line.

    4. If you are connected to serial port A via a tip connection, send a Break sequence by typing the characters ~# in quick succession.

  3. Reset the configuration variables default value to the current value (see the values you captured with the eeprom command in "To Capture the Configuration Variable Settings" and the values you wrote down earlier in this procedure in Step 1). At the ok prompt, type the following for each configuration variable:


    ok setenv variablename currentvalue
    

    For example:


    ok setenv auto-boot? false
    

    The setenv command resets each configuration variable you entered to the current value.

  4. If the OpenBoot diag-switch? variable was set to true (false is the default). and the system is power cycled, diagnostics will run. Also, when you boot the system, the system will attempt to boot from the network. Unless you had diag-switch? set to true before the flash PROM update, set diag-switch? to false, the default value:


    ok setenv diag-switch? false
    

  5. If the use-nvramrc? configuration variable was set to true before the flash PROM update, as part of the update the use-nvramrc? variable was set to false because the contents of the NVRAM configuration variable nvramrc may or may not be appropriate for use with the new firmware. If you want to change the use-nvramrc? variable back to true, evaluate the contents of nvramrc first with printenv nvramrc then change the use-nvramrc? configuration variable back to true with the setenv use-nvramrc? true command.

  6. Make sure that other configuration variables are set properly.

    1. Use the printenv OpenBoot command to display the NVRAM configuration variables and their settings.

    2. At the PROM monitor's ok prompt, you can use OpenBoot commands to restore the values of the configuration variables. Refer to the OpenBoot 3.x Command Reference Manual. You can also use the eeprom utility as superuser in the Solaris operating environment. See the eeprom man page description for more information.

  7. If you have a Sun Enterprise 450 or an Ultra 450, turn the keyswitch to the Standby position, wait a few seconds, and then power on again. If you have an Ultra 1 or Ultra 2 system, type reset-all.

    If you set the auto-boot? NVRAM configuration variable to true, and the boot-device variable contains the device or device alias where the Solaris 7 operating environment was installed, then the system will boot the Solaris 7 operating environment.