public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Pali Rohár" <pali@kernel.org>
To: u-boot@lists.denx.de
Subject: [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell
Date: Fri, 25 Sep 2020 09:54:16 +0200	[thread overview]
Message-ID: <20200925075416.16124-1-pali@kernel.org> (raw)

Some Espressobin boards got assigned more than one MAC address. Update
instructions how to correctly store and preserve all MAC addresses.

Signed-off-by: Pali Roh?r <pali@kernel.org>
---
 doc/README.marvell | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/doc/README.marvell b/doc/README.marvell
index 5416bc3035..6fc5ac8a40 100644
--- a/doc/README.marvell
+++ b/doc/README.marvell
@@ -27,7 +27,7 @@ Build Procedure
 	- For the Armada-70x0/80x0 DB board use "mvebu_db_armada8k_defconfig"
 	- For the Armada-80x0 MacchiatoBin use "make mvebu_mcbin-88f8040_defconfig"
 	- For the Armada-3700 DB board use "make mvebu_db-88f3720_defconfig"
-	- For the Armada-3700 EsspressoBin use "make mvebu_espressobin-88f3720_defconfig"
+	- For the Armada-3700 EspressoBin use "make mvebu_espressobin-88f3720_defconfig"
 
 5. Configure the device-tree and build the U-Boot image:
 
@@ -62,11 +62,15 @@ Configuration update
 Permanent ethernet MAC address
 -------------------------------
 	Prior flashing new U-Boot version (as part of ATF image) it is suggested to backup
-	permanent ethernet MAC address as it is stored only in U-Boot env storage (SPI or eMMC).
-	Some boards like EspressoBin have MAC address printed on sticker. To print current MAC
-	address run:
+	permanent ethernet MAC addresses as they are stored only in U-Boot env storage (SPI or eMMC).
+	Some boards like EspressoBin have MAC addresses printed on sticker. Some boards got assigned
+	only one address other may also more than one. To print current MAC addresses run:
 
 		# echo $ethaddr
+		# echo $eth1addr
+		# echo $eth2addr
+		# echo $eth3addr
+		# ...
 
 	MAC addresses 00:51:82:11:22:00, 00:51:82:11:22:01, 00:51:82:11:22:02, 00:51:82:11:22:03
 	and F0:AD:4E:03:64:7F are default hardcoded values found in Marvell's and Armbian U-Boot
@@ -75,13 +79,20 @@ Permanent ethernet MAC address
 	suggested to generate new random one.
 
 	After flashing new U-Boot version it is suggested to reset U-Boot env variables to default
-	and then set correct permanent ethernet MAC address.
+	and then set correct permanent ethernet MAC addresses.
 
 		# env default -a
 		# setenv ethaddr XX:XX:XX:XX:XX:XX
+		# setenv eth1addr XX:XX:XX:XX:XX:XX
+		# setenv eth2addr YY:YY:YY:YY:YY:YY
+		# setenv eth3addr ZZ:ZZ:ZZ:ZZ:ZZ:ZZ
+		# ...
 		# saveenv
 
-	Where XX:XX:XX:XX:XX:XX is permanent ethernet MAC address.
+	Where value for ethaddr is required permanent ethernet MAC address and values for ethNaddr
+	are optional per-port MAC addresses. When optional ethNaddr variables are not defined then
+	they are inherited from required ethaddr variable. eth1addr contains MAC address for the
+	wan port, other for particular lan ports.
 
 	Recent Linux kernel versions use correct permanent ethernet MAC address from U-Boot env as
 	U-Boot will inject it into kernel's device-tree.
-- 
2.20.1

             reply	other threads:[~2020-09-25  7:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-25  7:54 Pali Rohár [this message]
2020-09-26  9:16 ` [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell Andre Heider
2020-09-26  9:26   ` Pali Rohár
2020-09-26  9:30     ` Andre Heider
2020-09-26  9:33       ` Pali Rohár
2020-09-26  9:38 ` Andre Heider
2020-10-01 12:37 ` Stefan Roese

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200925075416.16124-1-pali@kernel.org \
    --to=pali@kernel.org \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox