]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
ramips: Fix Hongdian H7920 v40 mac address 20256/head
authorCoia Prant <coiaprant@gmail.com>
Wed, 1 Oct 2025 09:09:32 +0000 (17:09 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 4 Oct 2025 17:36:44 +0000 (19:36 +0200)
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
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/dts/mt7628an_hongdian_h7920-v40.dts
target/linux/ramips/mt76x8/base-files/etc/board.d/02_network

index 6c165fc3bfd1531d9867d80c7eb40892c258a3fe..d29b131aa6e332af3ce1471e77596f7bc3c301bc 100644 (file)
                                                reg = <0x0 0x400>;
                                        };
 
-                                       macaddr_factory_28: macaddr@28 {
-                                               reg = <0x28 0x6>;
+                                       macaddr_factory_4: macaddr@4 {
+                                               reg = <0x4 0x6>;
                                        };
                                };
                        };
 };
 
 &ethernet {
-       nvmem-cells = <&macaddr_factory_28>;
+       nvmem-cells = <&macaddr_factory_4>;
        nvmem-cell-names = "mac-address";
 };
 
index ec88ab43bd63c81a5a4d1298556908c4ef11de63..0b3899a07a62318f50fa3f0c272f3f1e9d9217c5 100644 (file)
@@ -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|\