
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. <See below> 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 <since 1.3.1>, 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) http://git.denx.de/?p=u-boot.git;a=blob;f=common/fdt_support.c;h=75077442d85dbc2fc38ae02e80be1c5485b391c9;hb=HEAD#l379
ucc@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