[openwrt/openwrt] ramips: Fix Hongdian H7920 v40 mac address
LEDE Commits
lede-commits at lists.infradead.org
Sat Oct 4 10:37:28 PDT 2025
hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c907c7c9b3f0b66bbafc75a2ae1111fbf873a1c3
commit c907c7c9b3f0b66bbafc75a2ae1111fbf873a1c3
Author: Coia Prant <coiaprant at gmail.com>
AuthorDate: Wed Oct 1 17:09:32 2025 +0800
ramips: Fix Hongdian H7920 v40 mac address
After extracting the EEPROMs of different devices, only the 0x4 address is unique.
Use the 0x4 address as the LAN address, and the LAN+1 address as the WAN address.
Signed-off-by: Coia Prant <coiaprant at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20256
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts | 6 +++---
target/linux/ramips/mt76x8/base-files/etc/board.d/02_network | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts b/target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts
index 6c165fc3bf..d29b131aa6 100644
--- a/target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts
+++ b/target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts
@@ -123,8 +123,8 @@
reg = <0x0 0x400>;
};
- macaddr_factory_28: macaddr at 28 {
- reg = <0x28 0x6>;
+ macaddr_factory_4: macaddr at 4 {
+ reg = <0x4 0x6>;
};
};
};
@@ -146,7 +146,7 @@
};
ðernet {
- nvmem-cells = <&macaddr_factory_28>;
+ nvmem-cells = <&macaddr_factory_4>;
nvmem-cell-names = "mac-address";
};
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
index ec88ab43bd..0b3899a07a 100644
--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
@@ -284,6 +284,7 @@ ramips_setup_macs()
label_mac=$(mtd_get_mac_binary factory 0x4)
;;
duzun,dm06|\
+ hongdian,h7920-v40|\
netgear,r6020|\
netgear,r6080|\
netgear,r6120|\
@@ -302,7 +303,6 @@ ramips_setup_macs()
totolink,a3)
wan_mac=$(mtd_get_mac_binary u-boot 0x1fc40)
;;
- hongdian,h7920-v40|\
jotale,js76x8-8m|\
jotale,js76x8-16m|\
jotale,js76x8-32m|\
More information about the lede-commits
mailing list