Subject: RE: OBP - I'm guilty, I messed with the date...
To: 'port-sparc64@NetBSD.org' <port-sparc64@NetBSD.org>
From: Schwerzmann, Stephan <stephan.schwerzmann@schmid-telecom.ch>
List: port-sparc64
Date: 04/08/2005 10:48:32
hello again,

> >   I did date experiments with an U10: I set the date
> > from the unix to 2038-01-19T03:14 an let the box run 
> > past the overflow...
> > 
> >   now the U10 won't boot anymore, not even from CD...   :-/
> 
> I presume the kernel hangs?
> 
> >   OBP is able to tell me the proper date (with ist "date" 
> command) but 
> > I have difficulties to find a OBP command reference telling 
> me how to 
> > set the date to a more reasonable value (like today) 
> directly from the 
> > OBP prompt  (single command or some forth hack)
> > 
> >   help is appreciated...
> 
> You could do that.  ISTR that U10s use MTK48T-something NVRAM 
> chips like U1s and U2s.
> 
> 1) Do a `show-devs' to locate the path to the nvram or eeprom 
> device node.
> 
> 2) Locate the path and map the device in by doing:
> 
> " <path>" map-device
[snip]

  thanks for the pointer: but I did not manage to go further
from here...

  I somehow managed to use dump, after figuring out an address

ok
ok show-devs
/SUNW,UltraSPARC-IIi@0,0
/pci@1f,0
:
/pci@1f,0/pci@1,1/ide@3/disk
/pci@1f,0/pci@1,1/ebus@1/SUNW,CS4231@14,200000
/pci@1f,0/pci@1,1/ebus@1/flashprom@10,0
/pci@1f,0/pci@1,1/ebus@1/eeprom@14,0
/pci@1f,0/pci@1,1/ebus@1/fdthree@14,3023f0
ok
ok dev /pci@1f,0/pci@1,1/ebus@1/eeprom@14,0
ok .properties
address                  fffba000
reg                      00000014 00000000 00002000
model                    mk48t59
name                     eeprom
ok fffba000 fff dump
          \/  1  2  3  4  5  6  7   8  9  a  b  c  d  e  f  v123456789abcdef
fffba000  ea 00 40 00 00 00 00 00  00 00 00 d8 00 00 00 00  j.@........X....
fffba010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
fffba020  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  ................
:

  but from here, I was not able to locate the date,time (TOD, calendar)
information...

  how can information from <http://www.obsolyte.com/sunFAQ/faq_nvram.html>
be adapted to U10 machines?

Stephan