From d260813d091fffa33fae7ce86cb2f2a4b42d3da0 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Fri, 22 Feb 2019 00:28:50 -0500 Subject: ar71xx: ens202ext: Fix VLAN switch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Michael Pratt [commit author fix, subject fix, message text wrap] Signed-off-by: Petr Štetiar --- target/linux/ar71xx/base-files/etc/board.d/02_network | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'target/linux/ar71xx/base-files/etc') 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" ;; -- cgit v1.2.3