Skip to content

Instantly share code, notes, and snippets.

@zekica
Created September 27, 2023 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zekica/2062af6b959c87fe5b25daf6b0eb98db to your computer and use it in GitHub Desktop.
Save zekica/2062af6b959c87fe5b25daf6b0eb98db to your computer and use it in GitHub Desktop.
Fix mtd-eeprom offsets for Cudy WR1300v2 and v3 that can be applied on top of OpenWRT 23.05-rc3
diff --git a/target/linux/ramips/dts/mt7621_cudy_wr1300-v2.dts b/target/linux/ramips/dts/mt7621_cudy_wr1300-v2.dts
index a5d2fc4607..a051d6277f 100644
--- a/target/linux/ramips/dts/mt7621_cudy_wr1300-v2.dts
+++ b/target/linux/ramips/dts/mt7621_cudy_wr1300-v2.dts
@@ -118,7 +118,7 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x0000>;
+ mediatek,mtd-eeprom = <&factory 0x8000>;
nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
};
@@ -128,7 +128,7 @@
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
- mediatek,mtd-eeprom = <&factory 0x8000>;
+ mediatek,mtd-eeprom = <&factory 0x0000>;
nvmem-cells = <&macaddr_bdinfo_de00>;
nvmem-cell-names = "mac-address";
mac-address-increment = <2>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment