mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
* 32-bit Amlogic SoCs: avoid using Ethernet MAC addresses
@ 2019-02-24 20:55 Martin Blumenstingl
  2019-02-25  9:25 ` Piero
  2019-02-25 12:19 ` Anand Moon
  0 siblings, 2 replies; 6+ messages in thread
From: Martin Blumenstingl @ 2019-02-24 20:55 UTC (permalink / raw)
  To: linux.amoon, linux-amlogic; +Cc: netdev

I have seen Anand's your question in [0]:
> only issue is I have is the each time their is random MAC address so I
> get new IP from dhcp server.
> How can I avoid this. I have tried to enable eFuse driver but with no success.

u-boot on the 64-bit SoCs can read the MAC address from the eFuse and
pass it (via the .dtb) to the kernel.
This requires an ethernet0 alias in the mainline .dts though, see [1]
for and example.

I'm not sure if this also works with the older u-boot on the 32-bit SoCs.
if it doesn't then there's a nvmem-cells binding for all Ethernet
controllers: [2] (please note that the function implementing this
binding was recently renamed: [3])
as far as I can tell the stmmac driver doesn't support the nvmem-cells
based binding yet

Anand, if you want to work on this: feel free to do so!
I have the SDHC MMC driver and a discussion about the power-domain
drivers on my TODO-list, so I'm pretty busy at the moment.


Regards
Martin


[0] http://lists.infradead.org/pipermail/linux-amlogic/2019-February/010464.html
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f7c36209c46c4d162202b65eed2e66962ad8c3c1
[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=9217e566bdee4583d0a9ea4879c8f5e004886eac
[3] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=afa64a72b862a7a9d04f8d07fba632eaf06b23f8

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2019-02-26 12:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-24 20:55 32-bit Amlogic SoCs: avoid using Ethernet MAC addresses Martin Blumenstingl
2019-02-25  9:25 ` Piero
2019-02-25 12:19 ` Anand Moon
2019-02-26 10:25   ` Anand Moon
2019-02-26 11:37     ` Martin Blumenstingl
2019-02-26 12:13       ` Anand Moon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®