[Macchiato] [EXT] How to save mac addresses?
Marcin Wojtas
mw at semihalf.com
Tue Jul 30 23:32:05 BST 2019
Hi Leif,
wt., 30 lip 2019 o 17:15 Leif Lindholm <leif.lindholm at linaro.org> napisaĆ(a):
>
>
>
> 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?
In U-Boot this particular part is simpler, as the mac-address
properties are automatically updated in DT from the ethXaddr envs.
Unfortunately we do not support it in EDK2 - I already had several
discussions about it. The idea is to use variables to store the MAC
for the UEFI stage and update ACPI/DT for the OS. Useful feature,
which I had no time to develop yet.
>
> > 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.
>
Ok, thanks.
Best regards,
Marcin
> Best Regards,
>
> Leif
More information about the Macchiato
mailing list