set output pacing 50 set input echo on # how to rebuild the NVRAM on a sparc: # # http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html # # byte(s) contents # 0 always 01 - format/version number # 1 first byte of hostid (machine type) # 2-7 6 byte ethernet address (first three bytes should be 08,00,20) # 8-b date of manufacture (usually all 0s, doesn't really matter) # c second byte of hostid # d third byte of hostid # e fourth byte of hostid # f IDPROM checksum - bitwise xor of bytes 0-e echo "make sure the machine is at an ok prompt..." ask \%1 "least significant digit of IP addr in hex? " # get to an ok prompt... lineout lineout n lineout lineout lineout 1 0 mkp lineout real-machine-type 1 mkp lineout 8 2 mkp lineout 0 3 mkp lineout 20 4 mkp # start ethernet addr lineout c0 5 mkp lineout ff 6 mkp lineout \%1 7 mkp lineout 0 8 mkp lineout 0 9 mkp lineout 0 a mkp lineout 0 b mkp lineout c0 c mkp lineout ff d mkp lineout \%1 e mkp lineout 0 f 0 do i idprom@ xor loop f mkp lineout setenv boot-device net lineout lineout reset