[patch 2/6] cuimage for Bamboo board

David Gibson dwg at au1.ibm.com
Fri Sep 7 11:06:17 EST 2007


On Wed, Sep 05, 2007 at 12:53:54AM -0500, Josh Boyer wrote:
> On Wed, 2007-09-05 at 15:46 +1000, David Gibson wrote:
> > > > > > There must surely be a way to get the MAC addresses out of OpenBIOS...
> > > > > 
> > > > > Probably.  I just need to find out where they are stored.
> > > > 
> > > > It's not buried somewhere in the arch/ppc/boot code?
> > > 
> > > It's not OpenBIOS, it's PIBS.  And the arch/ppc port uses __res, which
> > > I'd rather avoid.  But I did find where it's stored in flash, so I can
> > > read it from there.  I just need to do a little more work to get it in a
> > > manner that can be used.
> > 
> > Hrm.. is that address actually guaranteed to be stable across PIBS
> > versions?  If arch/ppc uses __res, I think we should do that too.  It
> > shouldn't be any worse than what we already do fot cuboot.
> 
> The address should be stable for all versions of PIBS that come on the
> Bamboo boards, yes.  And after looking at it a bit more, the wrapper in
> arch/ppc for PIBS essentially mocks up __res by reading the values out
> of flash.  So the way I'm doing it is the way it was already done.

Ah, ok.  Fine then.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the Linuxppc-dev mailing list