[openwrt/openwrt] ramips: fix mac addresses of Youku YK1

LEDE Commits lede-commits at lists.infradead.org
Mon May 10 05:41:28 PDT 2021


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/e57e460dc75836d3227e7370b9e64a0eabc9d91d

commit e57e460dc75836d3227e7370b9e64a0eabc9d91d
Author: Shiji Yang <yangshiji66 at qq.com>
AuthorDate: Wed May 5 19:48:01 2021 +0800

    ramips: fix mac addresses of Youku YK1
    
    MAC addresses read from official firmware
    
            value       location
    Wlan    xx 71 de    factory at 0x04
    Lan     xx 71 dd    factory at 0x28
    Wan     xx 71 df    factory at 0x2e
    Label   xx 71 dd    factory at 0x28
    
    Signed-off-by: Shiji Yang <yangshiji66 at qq.com>
    [fix sorting in 02_network, redact commit message]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 target/linux/ramips/dts/mt7620a_youku_yk1.dts                | 3 ++-
 target/linux/ramips/mt7620/base-files/etc/board.d/02_network | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/target/linux/ramips/dts/mt7620a_youku_yk1.dts b/target/linux/ramips/dts/mt7620a_youku_yk1.dts
index 71fd1d12c0..2e59e5bf6e 100644
--- a/target/linux/ramips/dts/mt7620a_youku_yk1.dts
+++ b/target/linux/ramips/dts/mt7620a_youku_yk1.dts
@@ -12,6 +12,7 @@
 		led-failsafe = &led_power;
 		led-running = &led_power;
 		led-upgrade = &led_power;
+		label-mac-device = ðernet;
 	};
 
 	leds {
@@ -106,7 +107,7 @@
 &ethernet {
 	pinctrl-names = "default";
 
-	mtd-mac-address = <&factory 0x4>;
+	mtd-mac-address = <&factory 0x28>;
 
 	mediatek,portmap = "llllw";
 };
diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
index d85bdd822b..17fa48c739 100644
--- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network
@@ -254,7 +254,6 @@ ramips_setup_macs()
 	sanlinking,d240|\
 	vonets,var11n-300|\
 	wrtnode,wrtnode|\
-	youku,yk1|\
 	zbtlink,zbt-ape522ii|\
 	zbtlink,zbt-wa05|\
 	zbtlink,zbt-we2026|\
@@ -338,7 +337,8 @@ ramips_setup_macs()
 	lenovo,newifi-y1|\
 	lenovo,newifi-y1s|\
 	ohyeah,oy-0001|\
-	wavlink,wl-wn530hg4)
+	wavlink,wl-wn530hg4|\
+	youku,yk1)
 		wan_mac=$(mtd_get_mac_binary factory 0x2e)
 		;;
 	linksys,e1700)



More information about the lede-commits mailing list