[U-Boot] [PATCH v2 0/5] Retrieve MAC address from EEPROM

Olliver Schinagl o.schinagl at ultimaker.com
Mon Dec 14 13:41:07 CET 2015


Changes since v1:
* Do not CRC the id byte, move it just after the crc byte.
One of the reasons I decided to move it after the crc8 was mostly due to mass
generation of MAC + CRC combo's where the ID is still unknown. Also not crc-ing
the ID means that it is much easier for a user to change it (via the u-boot i2c
cmd line or from within linux) without having to worry about the crc.
* Add a generator to convert a MAC address from the input to a MAC + CRC8 on
the output.

Olliver Schinagl (5):
  net: Add ability to set MAC address via EEPROM to Kconfig
  sunxi: net: Allow the sunxi to set the MAC from an EEPROM
  sunxi: net: Enable eeprom on OLinuXino Lime2 boards
  tools: Allow crc8 to be used
  tools: Add tool to add crc8 to a mac address

 board/sunxi/Kconfig                   |  4 +++
 board/sunxi/board.c                   | 36 +++++++++++++++++++++
 configs/A20-OLinuXino-Lime2_defconfig |  3 ++
 doc/README.enetaddr                   | 34 ++++++++++++++++++++
 include/u-boot/crc.h                  |  3 ++
 net/Kconfig                           | 59 +++++++++++++++++++++++++++++++++++
 tools/Makefile                        |  5 +++
 tools/gen_mac_addr.c                  | 51 ++++++++++++++++++++++++++++++
 8 files changed, 195 insertions(+)
 create mode 100644 tools/gen_mac_addr.c

-- 
2.6.2



More information about the U-Boot mailing list