Skip to content

Retrieve MAC address from EEPROM

Olliver Schinagl u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 0 repliesNew
  2. v12 of 3 patches 0 repliesSuperseded

Changes in v2 from the cover letter

* 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.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: Add ability to set MAC address via EEPROM to Kconfigdoc/README.enetaddr net/Kconfig+92 -01 reply
2/5sunxi: net: Allow the sunxi to set the MAC from an EEPROMboard/sunxi/Kconfig board/sunxi/board.c net/Kconfig+41 -01 reply
2/5sunxi: net: Allow the sunxi to set the MAC from an EEPROM+0 -01 reply
2/5sunxi: net: Allow the sunxi to set the MAC from an EEPROM+0 -01 reply
3/5sunxi: net: Enable eeprom on OLinuXino Lime2 boardsconfigs/A20-OLinuXino-Lime2_defconfig+3 -01 reply
3/5sunxi: net: Enable eeprom on OLinuXino Lime2 boards+0 -00 replies
4/5tools: Allow crc8 to be usedinclude/u-boot/crc.h tools/Makefile+4 -01 reply
5/5tools: Add tool to add crc8 to a mac addresstools/Makefile tools/gen_mac_addr.c+55 -03 replies
5/5tools: Add tool to add crc8 to a mac address+0 -01 reply
5/5tools: Add tool to add crc8 to a mac address+0 -01 reply
5/5tools: Add tool to add crc8 to a mac address+0 -01 reply

Reviews trailers per patch

2 of 11 patches have a Reviewed-by or Acked-by.

PatchJoe Hershberger
1/5A-b
2/5
2/5
2/5
3/5
3/5
4/5R-b
5/5
5/5
5/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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
Signature · 1 line
2.6.2