aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips')
-rw-r--r--target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts12
-rw-r--r--target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts5
-rw-r--r--target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts7
-rwxr-xr-xtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network5
4 files changed, 4 insertions, 25 deletions
diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts
index a075d08556..018e83664d 100644
--- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts
+++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-750gr3.dts
@@ -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>;
};
};
};
diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts
index 128b8a2816..d7c4a45798 100644
--- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts
+++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m11g.dts
@@ -134,11 +134,6 @@
};
};
-&gmac0 {
- mtd-mac-address = <&hard_config 0x0010>;
- mtd-mac-address-increment = <1>;
-};
-
&switch0 {
ports {
port@0 {
diff --git a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts
index aff2d0e64f..30bb36a77f 100644
--- a/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts
+++ b/target/linux/ramips/dts/mt7621_mikrotik_routerboard-m33g.dts
@@ -158,18 +158,11 @@
};
};
-&gmac0 {
- mtd-mac-address = <&hard_config 0x0010>;
- mtd-mac-address-increment = <1>;
-};
-
&switch0 {
ports {
port@0 {
status = "okay";
label = "wan";
- mtd-mac-address = <&hard_config 0x0010>;
- mtd-mac-address-increment = <2>;
};
port@1 {
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index 43db9c6f64..34be067085 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -91,9 +91,12 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
label_mac=$wan_mac
;;
+ mikrotik,routerboard-750gr3|\
mikrotik,routerboard-m11g|\
mikrotik,routerboard-m33g)
- label_mac=$(mtd_get_mac_binary hard_config 0x10)
+ label_mac=$(cat "/sys/firmware/mikrotik/hard_config/mac_base")
+ wan_mac=$label_mac
+ lan_mac=$(macaddr_add $label_mac 1)
;;
zbtlink,zbt-we1326|\
zbtlink,zbt-wg3526-16m|\