arm: mvebu: Espressobin: Set default value for $ethNaddr env variable
authorPali Rohár <pali@kernel.org>
Wed, 23 Dec 2020 11:21:30 +0000 (12:21 +0100)
committerStefan Roese <sr@denx.de>
Mon, 8 Feb 2021 07:53:08 +0000 (08:53 +0100)
commit44be835d25ba17bfa353a81984dfad61b4a60259
treea1b37b272b6e7e8b979b9b9649ec5262529e7fb2
parentc4df0f6f315cfec2e34e346cfc22ae088e418c0d
arm: mvebu: Espressobin: Set default value for $ethNaddr env variable

On Espressobin board are MAC addresses stored in U-Boot env area. Therefore
they are not present in default_environment[] array constructed at compile
time.

This change puts permanent MAC addresses into default_environment[] array
at board runtime. Espressobin board has enabled DEFAULT_ENV_IS_RW option
and therefore can modify this array.

This change ensure that 'env default -a' does not delete permanent MAC
addresses from Espressobin env storage area.

Signed-off-by: Pali Rohár <pali@kernel.org>
Acked-by: Andre Heider <a.heider@gmail.com>
board/Marvell/mvebu_armada-37xx/board.c
include/configs/mvebu_armada-37xx.h