[U-Boot-Users] ether mac auto override.

Hi,
Should u-boot define a standard way to override the mac address that an ethernet chip will use (if that chip allows it)? Back when I enabled the 91c111 for my board, it took a couple of looks to notice that the ethaddr environment variable was not used by the driver...but it was for things like ARP. That driver defaults to ... probably an experimental mac address, and there is no attempt to sync it with the environment variable which is visible with printenv. I ended up doing the override to match the environment in misc_init_r() which worked just fine, however, it seemed that where the bd_data.bi_enetaddr is initialized in lib_arm/board.c would be a good place to call some standard override function.
Any opinions?
Regards,
Richard Woodruff

Dear Richard,
in message FD2AC9A020DDD51194710008C7089B20053D4C87@dlee17.itg.ti.com you wrote:
Should u-boot define a standard way to override the mac address that an ethernet chip will use (if that chip allows it)? Back when I enabled the
There is already such a definition.
See the 3rd and following paragraphs in section "Note for Redundant Ethernet Interfaces" in the README (Text starting "If the network interface stores some valid MAC address...").
91c111 for my board, it took a couple of looks to notice that the ethaddr environment variable was not used by the driver...but it was for things like
Then the driver should be fixed.
Best regards,
Wolfgang Denk
participants (2)
-
Wolfgang Denk
-
Woodruff, Richard