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

Christian Riesch christian.riesch at omicron.at
Tue Jan 8 14:54:37 CET 2013


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 at ti.com>
Cc: Joe Hershberger <joe.hershberger at gmail.com>
Cc: Michael Walle <michael at 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(-)

-- 
1.7.9.5



More information about the U-Boot mailing list