Skip to content

Commit

Permalink
ramips: fix mac addresses of Youku YK1
Browse files Browse the repository at this point in the history
MAC addresses read from official firmware

        value       location
Wlan    xx 71 de    factory@0x04
Lan     xx 71 dd    factory@0x28
Wan     xx 71 df    factory@0x2e
Label   xx 71 dd    factory@0x28

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
[fix sorting in 02_network, redact commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
  • Loading branch information
DragonBluep authored and adschm committed May 10, 2021
1 parent f4940d2 commit e57e460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion target/linux/ramips/dts/mt7620a_youku_yk1.dts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &ethernet;
};

leds {
Expand Down Expand Up @@ -106,7 +107,7 @@
&ethernet {
pinctrl-names = "default";

mtd-mac-address = <&factory 0x4>;
mtd-mac-address = <&factory 0x28>;

mediatek,portmap = "llllw";
};
Expand Down
4 changes: 2 additions & 2 deletions target/linux/ramips/mt7620/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
Expand Up @@ -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|\
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e57e460

Please sign in to comment.