mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
6937664426
Ignore the return value of eth_getenv_enetaddr_by_index(), and if it
fails, fall back to use dev->enetaddr, which could be filled up by
the ethernet device driver:
With the current code, introduced with below commit, eth_write_hwaddr()
will fail immediately if there is no eth<n>addr in the environment variables.
However, e.g. for an overo based product that uses the SMSC911x ethernet
chip (with the MAC address set via EEPROM connected to the SMSC911x chip),
the MAC address is still OK.
On mx28 boards that are depending on the OCOTP bits to set the MAC address
(like the Denx m28 board), the OCOTP bits should be used instead of
failing on the environment variables.
Actually, this was the original behavior, and was later changed by
commit
|
||
---|---|---|
.. | ||
bootp.c | ||
bootp.h | ||
dns.c | ||
dns.h | ||
eth.c | ||
Makefile | ||
net.c | ||
nfs.c | ||
nfs.h | ||
rarp.c | ||
rarp.h | ||
sntp.c | ||
sntp.h | ||
tftp.c | ||
tftp.h |