ramips/mt7621: mikrotik: don't use mtd-mac-address in DTS

As evidenced here[1] the device MAC address can be stored at a random
offset in the hard_config partition. Rely on sysfs to update the MAC
address correctly.

Adjust config so that WAN is base MAC and LAN is base MAC +1 to better
match label and vendor OS.

[1] https://github.com/openwrt/openwrt/pull/2850#issuecomment-610809021

Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
This commit is contained in:
Thibaut VARÈNE
2020-04-20 14:35:57 +02:00
committed by Koen Vandeputte
parent 9242d691ec
commit 5e50515fa6
4 changed files with 4 additions and 25 deletions

View File

@@ -134,11 +134,6 @@
};
};
&gmac0 {
mtd-mac-address = <&hard_config 0x0010>;
mtd-mac-address-increment = <1>;
};
&switch0 {
ports {
port@0 {