[U-Boot] [PATCH v2 5/5] rockchip: board: puma_rk3399: derive ethaddr from cpuid

Simon Glass sjg at chromium.org
Sun Apr 30 03:48:51 UTC 2017


On 28 April 2017 at 09:11, Philipp Tomsich
<philipp.tomsich at theobroma-systems.com> wrote:
> From: Klaus Goger <klaus.goger at theobroma-systems.com>
>
> Generate a MAC address based on the cpuid available in the efuse
> block: Use the first 6 byte of the cpuid's SHA256 hash and set the
> locally administered bits. Also ensure that the multicast bit is
> cleared.
>
> The MAC address is only generated and set if there is no ethaddr
> present in the saved environment.
>
> Signed-off-by: Klaus Goger <klaus.goger at theobroma-systems.com>
> Signed-off-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
>
> ---
>
> Changes in v2:
> - added derivation of ethaddr from cpuid
>
>  board/theobroma-systems/puma_rk3399/puma-rk3399.c | 38 +++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list