From: Wolfgang Denk Date: Fri, 26 Sep 2008 00:17:48 +0200 Subject: [U-Boot] [PATCH] [83xx] Adds two more ethernet interface to 83xx In-Reply-To: <48DBF7A9.3010905@ge.com> References: <48DB89C4.3060204@ruggedcom.com> <48DBF7A9.3010905@ge.com> Message-ID: <20080925221748.E061424851@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Jerry Van Baren, In message <48DBF7A9.3010905@ge.com> you wrote: > > Kumar solved this problem WRT cpu/mpc83xx/fdt.c fdt_fixup_ethernet(void > *fdt) (and other CPUs) by using the device tree to find all the > ethernets and configure them. > But Kumar's code still loops over the "eth[N]addr" environment variables. And even though discouraged for normal use, there should be a way to define these for the (compiled-in) default environment where needed (devices using a real ROM). > Suggestion: Look at changing CONFIG_ETH*ADDR to CONFIG_ETH_FDT where > that notation indicates the code should find the ethernet info in the > fdt blob rather than #defines/env variables. Please have a look at fdt_fixup_ethernet() in "common/fdt_support.c"; my reading of the code does not match your statements here. > Do we need eth[1-5]?addr env variables? I don't think so. Yes, we do. That's what fdt_fixup_ethernet() uses to loop. > If we really do need them, they can be generated from the fdt blob a'la > Kumar's loop. Either you or I must be missing something. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Nobody trips over mountains. It is the small pebble that causes you to stumble. Pass all the pebbles in your path and you will find you have crossed the mountain.