SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

For discussion of Sun, ORACLE, and Fujitsu's SPARC64X computers, software etc.
User avatar
uunix
Posts: 107
Joined: Fri Dec 01, 2017 6:52 am
Location: Stourbridge - England - United Kingdom

SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

Post by uunix » Mon Jul 23, 2018 3:10 pm

Powered up the freebee SUN Enterprise 2 UltraSparc.

Invalid contents of IDPROM and date is 1968.. bad NVRAM I suspect.

But, still should be able to boot (if the drive is OK and there is an OS I suppose).

Code: Select all

Sun Ultra 2 UPA/SBus (2 X UltraSPARC-II 296MHz), No Keyboard
OpenBoot 3.19, 1280 MB memory installed, Serial #16777215.
Ethernet address ff:ff:ff:ff:ff:ff, Host ID: ffffffff.


The IDPROM contents are invalid

Boot device: net  File and args:
Internal loopback test -- Did not receive expected loopback packet.
Evaluating: boot

Can't open boot device

{0} ok boot disk
Boot device: /sbus/SUNW,fas@e,8800000/sd@0,0  File and args:

Can't open boot device

{0} ok
Disk in the left slot (looking at the side straight on).

I have set-defaults (still no boot)

It's been many many years since I messed with SUN, so looking for pointers.
Hey Ho Pip And Dandy!!!!!
:Onyx2: :O2K_d-1: :O200: :tezro: :Octane2c: :O2: :Indigo: :Indy: :320:

mgtremaine
Posts: 13
Joined: Fri May 25, 2018 1:55 pm

Re: SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

Post by mgtremaine » Mon Jul 23, 2018 4:02 pm

Use
<code>probe-scsi-all</code>

Other useful Openboot commands

printenv
devalias
test scsi

Link to complete Openboot 3 reference

https://docs.oracle.com/cd/E19641-01/80 ... 2-3242.pdf

Once you know the device that holds the OS you can "boot <device>".

It's all possible to reprogram the MAC address temporarily so you have valid networking. I have that written down somewhere.

-Mike

mgtremaine
Posts: 13
Joined: Fri May 25, 2018 1:55 pm

Re: SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

Post by mgtremaine » Mon Jul 23, 2018 4:32 pm

Found it..

Resetting the MAC ADDRESS

01 0 mkp
80 1 mkp < = System type. For sun4u arch 80. For sun4m arch - 72. Anything else - read the FAQ
08 2 mkp <= Sun AUI is is always 08:00:20, which are the next three settings for MAC
0 3 mkp
20 4 mkp
c0 5 mkp <= c0:ff:ee to generate 08:00:20:c0:ff:ee as MAC
ff 6 mkp
ee 7 mkp
0 8 mkp
0 9 mkp
0 a mkp
0 b mkp
c0 c mkp
ff d mkp
ee e mkp
0 f 0 do i idprom@ xor loop f mkp <= Calculates the checksum of what you did, and stores it

-Mike

User avatar
uunix
Posts: 107
Joined: Fri Dec 01, 2017 6:52 am
Location: Stourbridge - England - United Kingdom

Re: SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

Post by uunix » Tue Jul 24, 2018 3:45 am

Thanks mgtremaine,

I found the correct disk device and set the alias, but no attempt to boot from this worked, so I suspect it has no OS installed.

I'll have to get in the loft and get my Solaris install media out.

Cheers
Last edited by uunix on Tue Jul 24, 2018 7:28 am, edited 1 time in total.
Hey Ho Pip And Dandy!!!!!
:Onyx2: :O2K_d-1: :O200: :tezro: :Octane2c: :O2: :Indigo: :Indy: :320:

User avatar
johnnym
Posts: 19
Joined: Sat Jun 09, 2018 2:20 pm

Re: SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

Post by johnnym » Tue Jul 24, 2018 6:42 am

mgtremaine wrote:
Mon Jul 23, 2018 4:32 pm
Found it..

Resetting the MAC ADDRESS
[...]
I thought I should link another source of information here - The SUN NVRAM/hostid FAQ (as archived in the Internet Archive). It was the primary source for me when I experienced similar issues as uunix with some of my older SPARC gear some years ago and it also contains additional useful information.

Using mkp or mkpl should work for anything with pre OBP 4.x. Some time ago - still on the Nekochan forums - I posted a tool and configuration written in expect that does the reprogramming automatically by using mkp via serial console. This way one could use a machine with depleted NVRAM battery without replacing the NVRAM battery. Though (1) I didn't yet found a way to set and restart the clock from OBP and (2) to use the glass console afterwards, one has to first detach the keyboard from the SPARC machine so it uses the serial console and then (hot)reattach it after the programming has succeeded. But still easier than doing the repair.

Later OBP versions do not have the mkp/mkpl tools installed, though I wonder if one could not redefine these tools from a nvramrc.

Alternatively the IDPROMs of later machines can be reprogrammed as per "Other more arcane methods for modifying the IDPROM" in the document linked above or as per this description on a GitHub repo. I've seen this working on a Blade 150.
:Indigo: :Indy: :Indigo2_IMP: :O2: :Octane: :Octane2c: :O200: = :O200: - :O200: = :O200:

User avatar
uunix
Posts: 107
Joined: Fri Dec 01, 2017 6:52 am
Location: Stourbridge - England - United Kingdom

Re: SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

Post by uunix » Tue Jul 24, 2018 5:18 pm

Went up the loft, obtained a load of Solaris folders and now installing Solaris 7 Server..

I did find though Solaris 2.5.1 & 8 for Intel, so I think I'll take them to work, sack of the eComStation install on the SGI 330 and try out Solaris 8 maybe.. All good fun and keeps me from endangering myself doing real work!.
Hey Ho Pip And Dandy!!!!!
:Onyx2: :O2K_d-1: :O200: :tezro: :Octane2c: :O2: :Indigo: :Indy: :320:

User avatar
uunix
Posts: 107
Joined: Fri Dec 01, 2017 6:52 am
Location: Stourbridge - England - United Kingdom

Re: SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

Post by uunix » Tue Jul 24, 2018 7:05 pm

mgtremaine wrote:
Mon Jul 23, 2018 4:32 pm
Found it..

Resetting the MAC ADDRESS

01 0 mkp
80 1 mkp < = System type. For sun4u arch 80. For sun4m arch - 72. Anything else - read the FAQ
08 2 mkp <= Sun AUI is is always 08:00:20, which are the next three settings for MAC
0 3 mkp
20 4 mkp
c0 5 mkp <= c0:ff:ee to generate 08:00:20:c0:ff:ee as MAC
ff 6 mkp
ee 7 mkp
0 8 mkp
0 9 mkp
0 a mkp
0 b mkp
c0 c mkp
ff d mkp
ee e mkp
0 f 0 do i idprom@ xor loop f mkp <= Calculates the checksum of what you did, and stores it

-Mike
Thanks Mike, went through this and it worked a treat. Will now power it down and unplug the cable, see if it sticks (doubtfull but you never know).

[EDIT]
It held it's settings for about 20 hours, so good to go.
Hey Ho Pip And Dandy!!!!!
:Onyx2: :O2K_d-1: :O200: :tezro: :Octane2c: :O2: :Indigo: :Indy: :320:

User avatar
escimo
Posts: 8
Joined: Thu Jun 14, 2018 6:01 pm

Re: SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

Post by escimo » Thu Jul 26, 2018 6:17 pm

Something went wrong with your re-initiating of the NVRAM.
The battery is OK? Don't look like.

Sure, there's something on your disc to boot?
First disc has c0t0d0s#
What's the output of the follown OBP command?

Code: Select all

ok probe-scsi
Cheers, Stephan
SNI PCD-3M (1990), PCD-4H (1993)
SUN SPARCstation 2 (1990)

User avatar
uunix
Posts: 107
Joined: Fri Dec 01, 2017 6:52 am
Location: Stourbridge - England - United Kingdom

Re: SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

Post by uunix » Fri Jul 27, 2018 3:46 am

escimo wrote:
Thu Jul 26, 2018 6:17 pm
Something went wrong with your re-initiating of the NVRAM.
The battery is OK? Don't look like.

Sure, there's something on your disc to boot?
First disc has c0t0d0s#
What's the output of the follown OBP command?

Code: Select all

ok probe-scsi
Cheers, Stephan
eh?

It runs, it keeps the date and mac & id..
Hey Ho Pip And Dandy!!!!!
:Onyx2: :O2K_d-1: :O200: :tezro: :Octane2c: :O2: :Indigo: :Indy: :320:

User avatar
escimo
Posts: 8
Joined: Thu Jun 14, 2018 6:01 pm

Re: SUN Enterprise 2 UltraSparc - NVRAM shot, not booting

Post by escimo » Fri Jul 27, 2018 5:23 am

I had misconfigured the thread display order (latest on top). Oops! ;-D
SNI PCD-3M (1990), PCD-4H (1993)
SUN SPARCstation 2 (1990)

Post Reply