2
0
forked from Ivasoft/openwrt

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

@@ -126,10 +126,6 @@
};
};
&gmac0 {
mtd-mac-address = <&hard_config 0x0010>;
};
&switch0 {
ports {
port@0 {
@@ -140,29 +136,21 @@
port@1 {
status = "okay";
label = "lan2";
mtd-mac-address = <&hard_config 0x0010>;
mtd-mac-address-increment = <1>;
};
port@2 {
status = "okay";
label = "lan3";
mtd-mac-address = <&hard_config 0x0010>;
mtd-mac-address-increment = <2>;
};
port@3 {
status = "okay";
label = "lan4";
mtd-mac-address = <&hard_config 0x0010>;
mtd-mac-address-increment = <3>;
};
port@4 {
status = "okay";
label = "lan5";
mtd-mac-address = <&hard_config 0x0010>;
mtd-mac-address-increment = <4>;
};
};
};