aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7621
diff options
context:
space:
mode:
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>2020-03-19 19:33:27 +0800
committerChuanhong Guo <gch981213@gmail.com>2020-04-04 14:56:14 +0800
commit5acd1ed0be0d78847cd7d9d5599526f59babaf4d (patch)
treeb01ffc36449027c241ce6acfeca3f9dbcf1e1239 /target/linux/ramips/mt7621
parent3211c983fd7a51208f22866193df64a009b64fdb (diff)
downloadupstream-5acd1ed0be0d78847cd7d9d5599526f59babaf4d.tar.gz
upstream-5acd1ed0be0d78847cd7d9d5599526f59babaf4d.tar.bz2
upstream-5acd1ed0be0d78847cd7d9d5599526f59babaf4d.zip
ramips: mt7621: fix Ubiquiti ER-X ports names and MAC addresses
The name of each user port should be eth0..4, instead of lan1..4 and there is no WAN port. Rename them to match the official firmware. To avoid conflict with the master port (gmac0), rename it to "dsa". The official firmware assigns MAC address in this way: eth0 = label mac eth1 = label mac + 1 ... eth4 = label mac + 4 Since we have switched to DSA, it's possible to use different MAC for each port. Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Diffstat (limited to 'target/linux/ramips/mt7621')
-rwxr-xr-xtarget/linux/ramips/mt7621/base-files/etc/board.d/02_network4
1 files changed, 4 insertions, 0 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index 6205fab301..e2a8a9392d 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -39,6 +39,10 @@ ramips_setup_interfaces()
ubnt,unifi-nanohd)
ucidef_set_interface_lan "lan"
;;
+ ubiquiti,edgerouterx|\
+ ubiquiti,edgerouterx-sfp)
+ ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth4"
+ ;;
*)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
;;