From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e31.co.us.ibm.com (e31.co.us.ibm.com [32.97.110.149]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e31.co.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTP id AE0EADDFA0 for ; Mon, 3 Sep 2007 23:42:52 +1000 (EST) Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e31.co.us.ibm.com (8.13.8/8.13.8) with ESMTP id l83Dgndw012934 for ; Mon, 3 Sep 2007 09:42:49 -0400 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l83Dgn88191556 for ; Mon, 3 Sep 2007 07:42:49 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l83DgmoN021541 for ; Mon, 3 Sep 2007 07:42:49 -0600 Subject: Re: [patch 2/6] cuimage for Bamboo board From: Josh Boyer To: David Gibson In-Reply-To: <20070903010111.GC31499@localhost.localdomain> References: <20070831200449.598781000@linux.vnet.ibm.com> > <20070831200643.029244000@linux.vnet.ibm.com> <20070903010111.GC31499@localhost.localdomain> Content-Type: text/plain Date: Mon, 03 Sep 2007 08:42:11 -0500 Message-Id: <1188826931.3772.11.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2007-09-03 at 11:01 +1000, David Gibson wrote: > On Fri, Aug 31, 2007 at 03:04:51PM -0500, Josh Boyer wrote: > > Add a cuboot wrapper for the Bamboo board. This also removes some obsoleted > > linker declarations that have been moved into ops.h > > > > Signed-off-by: Josh Boyer > > [snip] > > --- linux-2.6.orig/arch/powerpc/boot/bamboo.c > > +++ linux-2.6/arch/powerpc/boot/bamboo.c > > @@ -24,8 +24,7 @@ > > #include "4xx.h" > > #include "44x.h" > > > > -extern char _dtb_start[]; > > -extern char _dtb_end[]; > > +static u8 *bamboo_mac0, *bamboo_mac1; > > > > static void bamboo_fixups(void) > > { > > @@ -34,12 +33,16 @@ static void bamboo_fixups(void) > > ibm440ep_fixup_clocks(sysclk, 11059200); > > ibm4xx_fixup_memsize(); > > ibm4xx_quiesce_eth((u32 *)0xef600e00, (u32 *)0xef600f00); > > + if (bamboo_mac0 && bamboo_mac1) > > + dt_fixup_mac_addresses(bamboo_mac0, bamboo_mac1); > > Bit ugly that you only set the MAC address for any ethernet if they're > supplied for every ethernet. Good point. Will fix. > > simple_alloc_init(_end, avail_ram, 32, 64); > > - bamboo_init(); > > + bamboo_init(NULL, NULL); > > 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. josh