From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Thu, 05 Jun 2008 12:19:28 -0400 Subject: [U-Boot-Users] Passing MACs to Linux In-Reply-To: <07C262D3A593471CA3E3C6EA770C5230@absolutdaddy> References: Your message of "Thu, 05 Jun 2008 07:49:34 PDT." <20080605150211.5B9C2247FE@gemini.denx.de> <07C262D3A593471CA3E3C6EA770C5230@absolutdaddy> Message-ID: <48481210.3030001@ge.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Russell McGuire wrote: > To save most the banter, and rephrasing: > > What is the 'EXPECTED' current behavior of the 83xx/6xx architecture for the > most current 1.3.3+ GIT release of passing MACs into Linux 2.6.24. Lastly, I > am using the UEC 83xx driver. > > I have defined QE_OF. > I have defined CONFIG_UEC_ETH. > I have defined CONFIG_ETHADDR. > > My 8360.blob/dts does have MAC address definitions, but are set to ZERO's. > In previous releases this was over written by U-boot, thus using > the CONFIG_ETHADDR address to be used within Linux 2.6.24. > > Most recently , I now have to add valid MACs to the > 8360.blob/dts file to get a MAC to be set within Linux. Does U-boot no > longer over write if a blob already has any MAC set? I don't care what used > to work really, I just would like to know what the current method is. > > Here is my current dts entry of note, previously <1.3.1> I didn't have to > set 'mac-address' / could leave it at all-zeros. Now, I do have to set > mac-address. Again, not worried about any previous method working, just > looking for current method that is correct. /aliases/ethernet0 = ??? Use "fdt print /", "fdt print /aliases", "fdt chosen", and "fdt bd"(?) at the u-boot command line to see what your blob looks like and how creating the /chosen node and board fixups change it. References: common/fdt_support.c (ethernet fixup for mac address, dereferences the /aliases node) > ucc at 2000 { //UCC1 > device_type = "network"; > compatible = "ucc_geth"; > model = "UCC"; > device-id = <1>; // UCC1 > reg = <2000 200>; > interrupts = <20>; > interrupt-parent = < &qeic >; > /* > * mac-address is deprecated and will be removed > * in 2.6.25. Only recent versions of > * U-Boot support local-mac-address, however. > */ > mac-address = [ 00 04 9f ef 01 01 ]; > local-mac-address = [ 00 00 00 00 00 00 ]; > rx-clock = <0>; > tx-clock = <19>; > phy-handle = <212000>; > pio-handle = < &pio1 >; > phy-connection-type = "rgmii-id"; > }; > > -Russ Best regards, gvb