[OpenWrt-Devel] [PATCH 2/3] ramips: fix Netgear R6120 MAC address

David Bauer mail at david-bauer.net
Wed Jan 30 15:38:36 EST 2019


Currently, the MAC address for the Netgear R6120 is read from the NVRAM
partition. The offset for the MAC address however is not consistent
across devices or firmware versions.

Switch to using the factory partition like all other Netgear devices do.

Signed-off-by: David Bauer <mail at david-bauer.net>
---
 target/linux/ramips/dts/R6120.dts | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/target/linux/ramips/dts/R6120.dts b/target/linux/ramips/dts/R6120.dts
index 9897d8d9e5..37295814a3 100644
--- a/target/linux/ramips/dts/R6120.dts
+++ b/target/linux/ramips/dts/R6120.dts
@@ -103,7 +103,7 @@
 				read-only;
 			};
 
-			nvram: partition at 60000 {
+			partition at 60000 {
 				label = "nvram";
 				reg = <0x60000 0x30000>;
 				read-only;
@@ -126,12 +126,12 @@
 
 &wmac {
 	status = "okay";
-	mtd-mac-address = <&nvram 0x100b0>;
+	mtd-mac-address = <&factory 0x4>;
 	mediatek,mtd-eeprom = <&factory 0x20000>;
 };
 
 &ethernet {
-	mtd-mac-address = <&nvram 0x100b0>;
+	mtd-mac-address = <&factory 0x4>;
 };
 
 &pcie {
@@ -143,7 +143,7 @@
 		reg = <0x0000 0 0 0 0>;
 		mediatek,mtd-eeprom = <&factory 0x28000>;
 		ieee80211-freq-limit = <5000000 6000000>;
-		mtd-mac-address = <&nvram 0x100b0>;
+		mtd-mac-address = <&factory 0x4>;
 		mtd-mac-address-increment = <(2)>;
 	};
 };
-- 
2.20.1


_______________________________________________
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