aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network4
-rw-r--r--target/linux/ramips/dts/WHR-G300N.dts4
2 files changed, 7 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 03f718ee30..4441b2293e 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -110,6 +110,7 @@ ramips_setup_interfaces()
u7621-06-256M-16M|\
vr500|\
wf-2881|\
+ whr-g300n|\
witi|\
wl-wn575a3|\
wndr3700v5|\
@@ -440,7 +441,8 @@ ramips_setup_macs()
e1700)
wan_mac=$(mtd_get_mac_ascii config WAN_MAC_ADDR)
;;
- gl-mt300n-v2)
+ gl-mt300n-v2|\
+ whr-g300n)
wan_mac=$(mtd_get_mac_binary factory 4)
;;
hc5*61|\
diff --git a/target/linux/ramips/dts/WHR-G300N.dts b/target/linux/ramips/dts/WHR-G300N.dts
index da861ce66e..a7c28341b2 100644
--- a/target/linux/ramips/dts/WHR-G300N.dts
+++ b/target/linux/ramips/dts/WHR-G300N.dts
@@ -107,6 +107,10 @@
};
};
+&ethernet {
+ mtd-mac-address = <&factory 0x4>;
+};
+
&esw {
mediatek,portmap = <0x2f>;
};