[U-Boot] [PATCH] net: use random ethernet address if invalid and not zero

Joe Hershberger joe.hershberger at gmail.com
Mon Nov 7 19:20:51 CET 2016


Hi Jim,

On Wed, Nov 2, 2016 at 8:21 AM, James Chargin <jimccrown at gmail.com> wrote:
> Hi,
>
> Regarding "invalid" Ethernet address.
>
> Is there a reliable way to set the default environment that will prevent
> Ethernet communications from being attempted.
>
> That is, when an Ethernet capable system is brand new and before an Ethernet
> MAC address has been assigned to that system during manufacturing with the
> "setenv ethaddr" command, how can Ethernet comms be disabled?
>
> This would be a fail-safe to make sure that part of the manufacturing
> process is done correctly and that an Ethernet address is intentionally
> assigned.

There is no feature like that as far as I know. Can you not just read
back the ethaddr variable and compare it to what you intended to
program?

-Joe


More information about the U-Boot mailing list