Skip to content
Snippets Groups Projects
Commit 2a7f6690 authored by BangLang Huang's avatar BangLang Huang Committed by John Crispin
Browse files

ramips: fix mac address of miwifi-mini


For the miwifi-mini, the offset of ethernet mac should be 0x28
which you can easyily dump from 'Factory' partition.

Signed-off-by: default avatarBangLang Huang <banglang.huang@foxmail.com>
parent 2b84dfaf
No related branches found
No related tags found
No related merge requests found
......@@ -357,6 +357,10 @@ ramips_setup_macs()
lan_mac=$(mtd_get_mac_binary factory_info 13)
wan_mac=$(macaddr_add "$lan_mac" 1)
;;
miwifi-mini)
wan_mac=$(cat /sys/class/net/eth0/address)
lan_mac=$(macaddr_setbit_la "$wan_mac")
;;
m3|\
m4|\
x5|\
......
......@@ -119,7 +119,7 @@
&ethernet {
pinctrl-names = "default";
pinctrl-0 = <&ephy_pins>;
mtd-mac-address = <&factory 0x4>;
mtd-mac-address = <&factory 0x28>;
mediatek,portmap = "llllw";
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment