Skip to content

Commit 7632dfa

Browse files
rbqvqhauke
authored andcommitted
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@gmail.com> Link: openwrt/openwrt#20256 (cherry picked from commit c907c7c) Link: openwrt/openwrt#20257 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent 0f09527 commit 7632dfa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@
123123
reg = <0x0 0x400>;
124124
};
125125

126-
macaddr_factory_28: macaddr@28 {
127-
reg = <0x28 0x6>;
126+
macaddr_factory_4: macaddr@4 {
127+
reg = <0x4 0x6>;
128128
};
129129
};
130130
};
@@ -146,7 +146,7 @@
146146
};
147147

148148
&ethernet {
149-
nvmem-cells = <&macaddr_factory_28>;
149+
nvmem-cells = <&macaddr_factory_4>;
150150
nvmem-cell-names = "mac-address";
151151
};
152152

target/linux/ramips/mt76x8/base-files/etc/board.d/02_network

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ ramips_setup_macs()
257257
label_mac=$(mtd_get_mac_binary factory 0x4)
258258
;;
259259
duzun,dm06|\
260+
hongdian,h7920-v40|\
260261
netgear,r6020|\
261262
netgear,r6080|\
262263
netgear,r6120|\
@@ -278,7 +279,6 @@ ramips_setup_macs()
278279
totolink,a3)
279280
wan_mac=$(mtd_get_mac_binary u-boot 0x1fc40)
280281
;;
281-
hongdian,h7920-v40|\
282282
jotale,js76x8-8m|\
283283
jotale,js76x8-16m|\
284284
jotale,js76x8-32m|\

0 commit comments

Comments
 (0)