Ok, I tried this already, but without success. MAC is written and can be read, but the linux kernel still comes up with a 00:00:00:00:00:00 on eth0. I will recheck then.
“pr_warn(”%s: generating random MAC on stmicro", priv->dev->name);"
to drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
and can see this in the kernel-log:
root@firefly:~# dmesg | grep eth0
[ 2.527372] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[ 2.527576] eth0: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
[ 7.125743] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 7.125925] eth0: generating random MAC on stmicro
[ 7.125925] eth0: device MAC address f6:aa:ef:f3:9f:ab
[ 13.243538] rk_gmac-dwmac fe300000.eth eth0: Link is Up - 1Gbps/Full - flow control rx/tx
So there is no MAC on this Hardware and the kernel generates random as suspected.
Your article has left me speechless, thank you for sharing it! Valid OGEA-103 exam bootcamp offers amazing content, and it’s available to you without charge.