[U-Boot] [PATCH 0/2] calimain: Generate random MAC address for factory testing

Hi,
This patchset allows the calimain board to use a random MAC address if no MAC address has been set yet. We use this feature for tests during production of our boards. Later, official MAC addresses are assigned to the boards.
To seed the random number generator I use the content of the uninitialized SRAM of the AM1808 SoC.
Regards, Christian
Cc: Tom Rini trini@ti.com Cc: Joe Hershberger joe.hershberger@gmail.com Cc: Michael Walle michael@walle.cc
Christian Riesch (2): net: Remove call of srand from eth_random_enetaddr() calimain: Generate random MAC address for factory tests
board/buffalo/lsxl/lsxl.c | 1 + board/omicron/calimain/calimain.c | 31 ++++++++++++++++++++++++++++++- include/configs/calimain.h | 2 ++ include/net.h | 3 +++ net/eth.c | 2 -- 5 files changed, 36 insertions(+), 3 deletions(-)
participants (1)
-
Christian Riesch