[OpenWrt-Devel] [PATCH] ramips: Fix failsafe switch workaround for RT5350 introduced in r42179.
blogic at openwrt.org
Tue Mar 10 15:42:53 EDT 2015
On 10/03/2015 20:16, Vittorio G (VittGam) wrote:
> Il 10.03.2015 14:18 John Crispin ha scritto:
>> can you send a version that has the pattern shown below please
>> and "0 1 2 3 4 5 6" is wrong, exclude the wan port from the list please.
> The problem is that it's not easy to determine what number the LAN or
> WAN port(s) is/are. On many routers a LAN port can be 0, but on the
> HT-TM02 there is only one port and it is 4. So the current "0 6" is
> effectively soft-bricking the HT-TM02 if failsafe is needed and one
> doesn't have a serial adapter... That's why I proposed to just enable
> all ports for failsafe.
>> ports="0 6""
>> case $board in
>> ports="0 1 2 3 4 5 6"
>> swconfig dev rt305x set enable_vlan 1
>> swconfig dev rt305x vlan 1 set ports "$ports"
>> swconfig dev rt305x port 6 set untag 0
>> swconfig dev rt305x set apply 1
>> vconfig add eth0 1
> This needs to be better addressed somehow, without replicating the port
> layout here for every router that does not have port 0 exposed at all.
we can hook this up with the board detect code. i'll put it on my todo
list. might take a bit till i find the time
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel