[OpenWrt-Devel] [PATCH] Turn off VLAN support on MT7620 to get Failsafe working

probono probono at puredarwin.org
Wed Dec 30 07:26:04 EST 2015


Fix broken Failsafe on MT7620 caused by the fact that the switch on
MT7620 has VLANs enabled by default and eth0 won't receive any packet.

This patch turns off VLAN support to get Failsafe working.
Fixes https://dev.openwrt.org/ticket/18768 and has been discussed and
tested there.

Signed-off-by: Simon Peter <probono at puredarwin.org>

diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
index 3dce1b6..a31616f 100644
--- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
+++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
@@ -26,6 +26,14 @@ ramips_set_preinit_iface() {
  ip link add link eth0 name eth0.1 type vlan id 1
  ip link set eth0 up
  ifname=eth0.1
+ elif grep MT7620 /proc/cpuinfo; then
+ # Switch on MT7620 has VLANs enabled by default and eth0 won't
receive any packet,
+ # hence turn off VLAN support to get Failsafe working:
+ # https://dev.openwrt.org/ticket/18768
+ swconfig dev mt7620 set reset 1
+ swconfig dev mt7620 set enable_vlan 0
+ swconfig dev mt7620 set apply
+ ifname=eth0
  else
  ifname=eth0
  fi
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list