Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: aspeednic: Do not fill in a random MAC address
Do not check the u-boot environemnt or fill in a random address in the write_hwaddr hook, instead rely on the framework to do so. The doc/README.ethaddr specifically states that random addresses are only to be assigned as part of a emergency such as a netboot recovery command. The upstream commit created a config variable to assign a random mac when none is set leaving it zero and that has now been backported. Note: The hardware address is reset to 0 as part of the ethernet reset performed at boot. If no valid MAC address is found in the environment the hardware will contain zeros and the operating system will assign a valid random MAC address if u-boot is configured not to. The net effect is an attempt to use the network will result in the ethernet address not set warning being printed if the ethaddr variable is not set, and a warning iwth the random mac address if the config is set. If a valid ethernet address is set in the environment it will be programmed in the hardware and used by the operating system. Signed-off-by: Milton Miller <[email protected]> Signed-off-by: Joel Stanley <[email protected]>
- Loading branch information