This patch modifies U-Boot to read the FEC MAC address from EEPROM and program it to the hardware -- replacing earlier functionality which attempted to set the MAC address from user-space.
Tested on bx50v3. Verified that FEC MAC address is set correctly. Corrupted first MAC octet in EEPROM, and verified that the BCH error correction worked. Set EEPROM to all 0xFF, and verified that FEC MAC address was random (through two boots). Ian Ray (1): board: ge: bx50v3: set eth0 MAC address board/ge/bx50v3/Makefile | 2 +- board/ge/bx50v3/bx50v3.c | 109 +++++++++++++++++++++ board/ge/bx50v3/vpd_reader.c | 228 +++++++++++++++++++++++++++++++++++++++++++ board/ge/bx50v3/vpd_reader.h | 25 +++++ include/configs/ge_bx50v3.h | 15 +++ 5 files changed, 378 insertions(+), 1 deletion(-) create mode 100644 board/ge/bx50v3/vpd_reader.c create mode 100644 board/ge/bx50v3/vpd_reader.h -- 2.10.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot