[OpenWrt-Devel] [PATCH] Modify glinet x750 and AR300m MAC address offsets

Luochongjun luochongjun at gl-inet.com
Fri Feb 22 06:46:37 EST 2019


In the production of glinet, the MAC address of ethernet port is only written
at the position where the ART area offset address is 0, and the MAC address of
eth1 is added 1 on the basis of eth0.

Signed-off-by: Luochongjun <luochongjun at gl-inet.com>
---
 target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi | 3 ++-
 target/linux/ath79/dts/qca9531_glinet_gl-x750.dts    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi
index fe986bd..55002b4 100644
--- a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi
+++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi
@@ -84,7 +84,8 @@
 };
 
 &eth1 {
-	mtd-mac-address = <&art 0x6>;
+	mtd-mac-address = <&art 0x0>;
+	mtd-mac-address-increment = <1>;
 };
 
 &wmac {
diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts b/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts
index f8a5119..79cd516 100644
--- a/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts
+++ b/target/linux/ath79/dts/qca9531_glinet_gl-x750.dts
@@ -126,7 +126,8 @@
 };
 
 &eth1 {
-	mtd-mac-address = <&art 0x6>;
+	mtd-mac-address = <&art 0x0>;
+	mtd-mac-address-increment = <1>;
 };
 
 &wmac {
-- 
2.7.4




_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list