Re: NetBSD support for Suns with dead IDPROM batteries

Martin Husemann <[email protected]>
Newsgroups gmane.os.netbsd.ports.sparc,gmane.os.netbsd.ports.sparc64
Message-ID <[email protected]>
On Tue, May 24, 2011 at 11:47:31PM +0200, Jochen Kunz wrote:
> So I really, really don't see any need to to clobber NetBSD to work
> with defect hardware that is easy to fix.

Yes, but "clobber" could be a five line hack at the end of
src/sys/arch/sparc/sparc/promlib.c:prom_getether()
that does something like:

#ifdef SPARC_ETHER_OVERRIDE
	static const u_char my_ether[] = { SPARC_ETHER_OVERRIDE };
	memcpy(cp, my_ether, 6);
#else
        /* Fall back on the machine's global ethernet address */
        idp = prom_getidprom();
        memcpy(cp, idp->idp_etheraddr, 6);
#endif
}

and you would add options SPARC_ETHER_OVERRIDE="0x08,0x...."
to your kernel config. (Not sure what syntax would be easiest to pass
through config here)

Martin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.