Has anyone tried using the Ethernet switch on Ralink lately? I don't
believe it is working correctly in the default 'off' state.  The
failure is that the Ralink CPU can't receive any packets from Ethernet
(or those packet are corrupted by the VLAN tag).

If I enable the switch it works properly. I'm seeing this on the
RT5350 but the code is generic to all Ralink

diff --git a/files/etc/config/network b/files/etc/config/network
new file mode 100644
index 0000000..c608d0e
--- /dev/null
+++ b/files/etc/config/network
@@ -0,0 +1,39 @@
+config interface 'loopback'
+ option ifname 'lo'
+ option proto 'static'
+ option ipaddr '127.0.0.1'
+ option netmask '255.0.0.0'
+
+config globals 'globals'
+ option ula_prefix 'fd59:3f8d:cb3a::/48'
+
+config interface 'lan'
+ option ifname 'eth0.1'
+ option type 'bridge'
+ option proto 'static'
+ option ipaddr '192.168.1.85'
+ option netmask '255.255.255.0'
+ option ip6assign '60'
+
+config interface 'wan'
+ option ifname 'eth0.2'
+ option proto 'dhcp'
+
+config interface 'wan6'
+ option ifname '@wan'
+ option proto 'dhcpv6'
+
+config switch
+ option name 'rt305x'
+ option reset '1'
+ option enable_vlan '1'
+
+config switch_vlan
+ option device 'rt305x'
+ option vlan '1'
+ option ports '1 2 3 4 6t'
+
+config switch_vlan
+ option device 'rt305x'
+ option vlan '2'
+ option ports '0  6t'

-- 
Jon Smirl
jonsm...@gmail.com
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to