* [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell
@ 2020-09-25 7:54 Pali Rohár
2020-09-26 9:16 ` Andre Heider
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Pali Rohár @ 2020-09-25 7:54 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell
2020-09-25 7:54 [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell Pali Rohár
@ 2020-09-26 9:16 ` Andre Heider
2020-09-26 9:26 ` Pali Rohár
2020-09-26 9:38 ` Andre Heider
2020-10-01 12:37 ` Stefan Roese
2 siblings, 1 reply; 7+ messages in thread
From: Andre Heider @ 2020-09-26 9:16 UTC (permalink / raw)
To: u-boot
On 25/09/2020 09:54, Pali Roh?r wrote:
> 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.
I never tried, what does "inherit" mean? eth1addr=$ethaddr+1 and so on?
And would port1=wan be correct for v7?
>
> 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.
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell
2020-09-26 9:16 ` Andre Heider
@ 2020-09-26 9:26 ` Pali Rohár
2020-09-26 9:30 ` Andre Heider
0 siblings, 1 reply; 7+ messages in thread
From: Pali Rohár @ 2020-09-26 9:26 UTC (permalink / raw)
To: u-boot
On Saturday 26 September 2020 11:16:12 Andre Heider wrote:
> On 25/09/2020 09:54, Pali Roh?r wrote:
> > 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.
>
> I never tried, what does "inherit" mean? eth1addr=$ethaddr+1 and so on?
It means that address for DSA port is same as address for main ethernet adapter (ethaddr). So ethNaddr = $ethaddr
> And would port1=wan be correct for v7?
Yes.
https://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu.git/diff/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts?h=for-next&id=b64d814257b027e29a474bcd660f6372490138c7
eth1addr is set to ethernet1 and ethernet1 is alias for &switch0port3 for V7. And switch0port3 is wan on V7.
> > 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.
> >
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell
2020-09-26 9:26 ` Pali Rohár
@ 2020-09-26 9:30 ` Andre Heider
2020-09-26 9:33 ` Pali Rohár
0 siblings, 1 reply; 7+ messages in thread
From: Andre Heider @ 2020-09-26 9:30 UTC (permalink / raw)
To: u-boot
On 26/09/2020 11:26, Pali Roh?r wrote:
> On Saturday 26 September 2020 11:16:12 Andre Heider wrote:
>> On 25/09/2020 09:54, Pali Roh?r wrote:
>>> 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.
>>
>> I never tried, what does "inherit" mean? eth1addr=$ethaddr+1 and so on?
>
> It means that address for DSA port is same as address for main ethernet adapter (ethaddr). So ethNaddr = $ethaddr
Okay, nice.
>
>> And would port1=wan be correct for v7?
>
> Yes.
>
> https://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu.git/diff/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts?h=for-next&id=b64d814257b027e29a474bcd660f6372490138c7
>
> eth1addr is set to ethernet1 and ethernet1 is alias for &switch0port3 for V7. And switch0port3 is wan on V7.
For Linux, yes. But I meant u-boot, we don't have a v7 dts there.
Doesn't that matter?
>
>>> 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.
>>>
>>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell
2020-09-26 9:30 ` Andre Heider
@ 2020-09-26 9:33 ` Pali Rohár
0 siblings, 0 replies; 7+ messages in thread
From: Pali Rohár @ 2020-09-26 9:33 UTC (permalink / raw)
To: u-boot
On Saturday 26 September 2020 11:30:15 Andre Heider wrote:
> On 26/09/2020 11:26, Pali Roh?r wrote:
> > On Saturday 26 September 2020 11:16:12 Andre Heider wrote:
> > > On 25/09/2020 09:54, Pali Roh?r wrote:
> > > > 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.
> > >
> > > I never tried, what does "inherit" mean? eth1addr=$ethaddr+1 and so on?
> >
> > It means that address for DSA port is same as address for main ethernet adapter (ethaddr). So ethNaddr = $ethaddr
>
> Okay, nice.
>
> >
> > > And would port1=wan be correct for v7?
> >
> > Yes.
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu.git/diff/arch/arm64/boot/dts/marvell/armada-3720-espressobin-v7.dts?h=for-next&id=b64d814257b027e29a474bcd660f6372490138c7
> >
> > eth1addr is set to ethernet1 and ethernet1 is alias for &switch0port3 for V7. And switch0port3 is wan on V7.
>
> For Linux, yes. But I meant u-boot, we don't have a v7 dts there. Doesn't
> that matter?
No, it does not matter. U-Boot loads DTB file supplied by user/boot
script and inserts MAC address into it. So if user boots this U-Boot on
V7 board and supply kernel's V7 DTB file then U-Boot inserts WAN mac
address into ethernet1 alias which is linked to switch0port3 (wan).
So I think it is correct.
We do not need any V7 DTS file in U-Boot.
> >
> > > > 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.
> > > >
> > >
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell
2020-09-25 7:54 [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell Pali Rohár
2020-09-26 9:16 ` Andre Heider
@ 2020-09-26 9:38 ` Andre Heider
2020-10-01 12:37 ` Stefan Roese
2 siblings, 0 replies; 7+ messages in thread
From: Andre Heider @ 2020-09-26 9:38 UTC (permalink / raw)
To: u-boot
On 25/09/2020 09:54, Pali Roh?r wrote:
> 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>
Reviewed-by: Andre Heider <a.heider@gmail.com>
> ---
> 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.
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell
2020-09-25 7:54 [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell Pali Rohár
2020-09-26 9:16 ` Andre Heider
2020-09-26 9:38 ` Andre Heider
@ 2020-10-01 12:37 ` Stefan Roese
2 siblings, 0 replies; 7+ messages in thread
From: Stefan Roese @ 2020-10-01 12:37 UTC (permalink / raw)
To: u-boot
On 25.09.20 09:54, Pali Roh?r wrote:
> 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>
Applied to u-boot-marvell/master
Thanks,
Stefan
> ---
> 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.
>
Viele Gr??e,
Stefan
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-10-01 12:37 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-25 7:54 [PATCH] arm: mvebu: Espressobin: Instructions for more MAC addresses in README.marvell Pali Rohár
2020-09-26 9:16 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox