
4 Jul
2017
4 Jul
'17
8:48 p.m.
The code is: if(!getenv("ethaddr")) setenv("ethaddr",getenv("usbethaddr")); which if I read it correctly says, if the MAC address variable is not set, set from the board's mac address.
If an environment is copies from one device to a second, this code prevents populating u-boot in the new device from getting the correct MAC address for the device.
Is there a reason for protecting the MAC address variable in this manner? Or should the code be to alwys retrieve the MAC address from the device? For example:
setenv("ethaddr",getenv("usbethaddr"); Duncan Hare
714 931 7952