Port-sparc64 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NetBSD support for Suns with dead IDPROM batteries



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


Home | Main Index | Thread Index | Old Index