aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorMichael Pratt <mpratt51@gmail.com>2019-02-22 00:28:50 -0500
committerPetr Štetiar <ynezz@true.cz>2019-03-31 20:58:51 +0200
commitd260813d091fffa33fae7ce86cb2f2a4b42d3da0 (patch)
treefe20c630b52d3eef7182bcb6fa23cc890d6e88e4 /target/linux/ar71xx
parentfbe2e7d15e5bf6c4ae2a2e4189f9b389098c3245 (diff)
downloadupstream-d260813d091fffa33fae7ce86cb2f2a4b42d3da0.tar.gz
upstream-d260813d091fffa33fae7ce86cb2f2a4b42d3da0.tar.bz2
upstream-d260813d091fffa33fae7ce86cb2f2a4b42d3da0.zip
ar71xx: ens202ext: Fix VLAN switch
The target ENS202EXT was just recently added right before the stable release of Openwrt 18. It flashes fine, but the physical switch is almost impossible to use until you have a VLAN set up. Tested on two devices. The actual problem is that eth0 represents nothing for whatever reason. In other words, both WAN and LAN are running from eth1. There may be an underlying problem in the build, but for now, I assume that this is correct and that a VLAN switch is an appropriate fix. Also, it's virtually impossible to get the switch running right through LuCI. It is one thing to get a switch to appear, but attempting to configure it breaks the whole thing. The VLAN has to be set up perfectly, otherwise, interfaces will not start up, and one is forced to reset settings, OR, the new LuCI feature kicks in and reverses any steps. It is extremely difficult to determine which virtual ports correspond to which physical ethernet ports without being able to set up the switch in LuCI. Temporary Workaround: followed directions here [openwrt/luci#867](https://github.com/openwrt/luci/issues/867) Reviewed-by: Marty Plummer <hanetzer@startmail.com> Signed-off-by: Michael Pratt <mpratt51@gmail.com> [commit author fix, subject fix, message text wrap] Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to 'target/linux/ar71xx')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index 8dd2f6c6c0..04c5a31957 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -193,7 +193,6 @@ ar71xx_setup_interfaces()
all0315n|\
dlan-hotspot|\
dlan-pro-500-wp|\
- ens202ext|\
ja76pf2|\
rocket-m-ti|\
ubnt-unifi-outdoor)
@@ -582,6 +581,11 @@ ar71xx_setup_interfaces()
ucidef_add_switch "switch0" \
"0@eth0" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4" "5:wan"
;;
+ ens202ext)
+ ucidef_set_interfaces_lan_wan "eth1.1" "eth1.2"
+ ucidef_add_switch "switch0" \
+ "0@eth1" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
+ ;;
*)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;