Lightsword wrote:Chadster766 wrote:Lightsword wrote:Would anyone happen to know if there is a way to configure the switch ports individually for dualwan failover? I'm fairly sure the switch hardware supports that but not sure if the Marvell driver is configured to allow that in the Belkin builds.
I think the LAN ports are actually a hardware switch and can't be separated out.
I think it has been possible on other Marvell based switches, even if it is hardware I thought there usually is a way to separate ports out depending on the actual switch hardware. The driver though seems fairly complex and doesn't seem to fully integrate with OpenWRT properly.
The switch is the Marvell 88E6172. It will support a dual wan failover configuration. It supports IEEE 802.1Q port-based VLANs. The driver you linked provides the Marvell Distributed Switch Architecture driver for switch configuration. OpenWRT uses swconfig. Hopefully swconfig can be updated to support the switch. You can use /etc/init.d/mrvlswitch provided in the patch to setup the switch if you can decipher it.
Here is what you can do with the sysfs driver:
cat help - show this help
cat stats - show statistics for switch all ports info
cat status - show switch status
echo p r t > reg_r - read switch register. t: 1-phy, 2-port, 3-global, 4-global2, 5-smi
echo p r t v > reg_w - write switch register. t: 1-phy, 2-port, 3-global, 4-global2, 5-smi
The help will output to stdout. The others will output to your logs.
(Last edited by ducphuc on 26 Jul 2014, 00:32)