mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2026-06-14 08:46:17 -04:00
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: https://github.com/openwrt/openwrt/pull/20256
(cherry picked from commit c907c7c9b3)
Link: https://github.com/openwrt/openwrt/pull/20257
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
committed by
Hauke Mehrtens
parent
0f095274fc
commit
7632dfa843
@@ -123,8 +123,8 @@
|
||||
reg = <0x0 0x400>;
|
||||
};
|
||||
|
||||
macaddr_factory_28: macaddr@28 {
|
||||
reg = <0x28 0x6>;
|
||||
macaddr_factory_4: macaddr@4 {
|
||||
reg = <0x4 0x6>;
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -146,7 +146,7 @@
|
||||
};
|
||||
|
||||
ðernet {
|
||||
nvmem-cells = <&macaddr_factory_28>;
|
||||
nvmem-cells = <&macaddr_factory_4>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
|
||||
@@ -257,6 +257,7 @@ ramips_setup_macs()
|
||||
label_mac=$(mtd_get_mac_binary factory 0x4)
|
||||
;;
|
||||
duzun,dm06|\
|
||||
hongdian,h7920-v40|\
|
||||
netgear,r6020|\
|
||||
netgear,r6080|\
|
||||
netgear,r6120|\
|
||||
@@ -278,7 +279,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|\
|
||||
|
||||
Reference in New Issue
Block a user