Skip to content

Instantly share code, notes, and snippets.

@amdprophet
Last active September 2, 2023 06:52
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save amdprophet/e010803d581d676003a90ba36da8a269 to your computer and use it in GitHub Desktop.
Save amdprophet/e010803d581d676003a90ba36da8a269 to your computer and use it in GitHub Desktop.
Setting the hostid and MAC address in eprom

Written using information from my notes & http://www.obsolyte.com/sunFAQ/faq_nvram.html.

Load OK prompt

Set the format/version number

Always 01.

ok 1 0 mkp

Set the machine type

First byte of hostid, a.k.a. machine type. Look at the table below to determine which machine type to use.

ok 80 1 mkp

The following table matches Sun system models with the first byte of the hostid. This is from a posting to comp.sys.sun.admin by Andy.Behrens@coat.com.

Machine Type Models
01 2/1x0
02 2/50
11 3/160
12 3/50
13 3/2x0
14 3/110
17 3/60
18 3/e
21 4/2x0
22 4/1x0
23 4/3x0
24 4/4x0
31 386i
41 3/4x0
42 3/80
51 SPARCstation 1 (4/60)
52 SPARCstation IPC (4/40)
53 SPARCstation 1+ (4/65)
54 SPARCstation SLC (4/20)
55 SPARCstation 2 (4/75)
56 SPARCstation ELC
57 SPARCstation IPX (4/50)
61 4/e
71 4/6x0
72 SPARCstation 10 or SPARCstation 20
80 SPARCstation Classic, LX, 4, 5, SS1000, Voyager, Ultra 1

Set the MAC address

First three bytes should be 08-00-20. Enter the MAC address one byte at a time.

ok 8 2 mkp
ok 0 3 mkp
ok 20 4 mkp
ok 11 5 mkp
ok 3A 6 mkp
ok 8 7 mkp

Set the date of manufacture

Use 0 for all bytes. Doesn't seem to matter.

ok 0 8 mkp
ok 0 9 mkp
ok 0 a mkp
ok 0 b mkp

Set the last three bytes of hostid

Usually the last 3 bytes of the MAC address.

ok 11 c mkp
ok 3a d mkp
ok 8 e mkp

Set IDPROM checksum

Bitwise xor of bytes 0-e.

0 f 0 do i idprom@ xor loop f mkp

Reset & boot disk

reset-all
boot disk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment