How I can reset Time-of-Day chip when I boot from OBP?
Dear Sir/Madam
When I suspend my Sun Enterprise 2 (UltraSparc II 296MHz CPU) a few weeks. I can't boot it on now, (I think battery dead) when system after starting real time clock and display OS version information (banner), system halt at:
WARNING: Time-of-Date chip had incorrect date; check and reset
System hangup here and don't access any intrerupt such "Stop+A", "shift+poweron", etc. I have to press power switch from power supply board turn off it and restart it, it halt at same point.
My question is: How I can reset time-of-day (Real time clock) from OBP prompt with NVRAM?
Cidy
[636 byte] By [
Cidy_Long] at [2007-11-25 23:23:28]

# 1
Hello Cidy,
while Lance has answered your question in another forum...
http://supportforum.sun.com/cgi-bin/WebX.cgi?13@170.74tcaaZ4lwk^0@.eed38da
Even with an empty battery the system should boot after reset, the NVRAM gets its power from the power supply and not the empty battery. Maybe you will have to set certain values in NVRAM. Just read the "NVRAM FAQ"
Using a CD to boot into single-user mode (as Lance recommended) does not cause any harm to the installed system.
Replace the NVRAM as soon as possible.
Michael
# 2
Hi, Michael
Thank you for your reply. It still not works now. I think may only way is "replace NVRAM".
I try boot it from cdrom by "boot cdrom -s", when system initialize memory, but system still hangup on same error message.
When I try "date" it from OBP prompt, it always response "01/01/1968 00:00:00 GMT". So I believe not only battery dead but also Real Time Clock dead.
Other question: May I reset Time-of-day value from OBP prompt? and how I can reset it?
Cidy
# 3
As Lance stated just replace the NVRAM (timekeeper). There is absolutely no reason to set the time before replacing the NVRAM. The NVRAM also contains the ethernet address and therefore the host id.
Fortunately there is a sticker on the NVRAM/timekeeper with the last 8 digits of the host id.
There exists no command to set the date/time on OBP level ! You can only check if the clock is running with "watch-clock".
If you don't believe me, just review the following documents 800-5675, 801-7042 or 802-3240-10. The last one is for OBP 3.x.
Michael
# 4
Hi, Michael
Thank you very much!
After I found similar chip (M48T59Y from a died Sun Ultra 5 workstation) and replaced it, it works now. But this design is quite bull shit, I can't only replace battery, I have to replace whole chip and need reset it back from default.
Cidy