[Macchiato] [EXT] How to save mac addresses?

Leif Lindholm leif.lindholm at linaro.org
Tue Jul 30 16:15:34 BST 2019


On Tue, 30 Jul 2019 at 16:09, Marcin Wojtas <mw at semihalf.com> wrote:
>
> Hi Stefan,
>
> From what I can see, Andrew is using ACPI boot, i.e. edk2.
>
> Hi Andrew,
>
> You have to pass the mac address via ACPI tables. Example for eth0
(according entries should be done for other ports:
> diff --git
a/Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0McBin/Dsdt.asl
b/Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0McBin/Dsdt.asl
> index 7e9e361..8e99f9f 100644
> --- a/Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0McBin/Dsdt.asl
> +++ b/Silicon/Marvell/Armada7k8k/AcpiTables/Armada80x0McBin/Dsdt.asl
> @@ -238,6 +238,7 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "MVEBU ",
"ARMADA8K", 3)
>                      Package () { "port-id", 0 },
>                      Package () { "gop-port-id", 0 },
>                      Package () { "phy-mode", "10gbase-kr"},
> +                    Package () { "local-mac-address", {0xAA, 0xBB, 0xCC,
0xDD, 0xAA, 0xBB}},^M
>                    }
>                })
>              }

Ouch. Is there really no better way than recompiling your firmware?

> For DT you should add something like this to the port node:
> local-mac-address = [0xAA 0xBB 0xCC 0xDD 0xAA 0xBB]
>
> BTW, in what OS do you see those interfaces as enamrvl*?

I see this with Debian 10 (Buster) when booting with ACPI. Not when booting
with DT.

Best Regards,

Leif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.einval.com/pipermail/macchiato/attachments/20190730/d6a7f0c3/attachment-0001.html>


More information about the Macchiato mailing list