[OpenWrt-Devel] [PATCH] ramips: Fix failsafe switch workaround for RT5350 introduced in r42179.

John Crispin blogic at openwrt.org
Tue Mar 10 09:18:06 EDT 2015



On 08/03/2015 02:44, Vittorio G (VittGam) wrote:
> This patch fixes the failsafe switch workaround to avoid soft-bricking routers where the only exposed Ethernet port is not 0 (it is 4 for the HT-TM02 for instance).
> 
> This is a follow-up of http://patchwork.ozlabs.org/patch/424017/ (sorry for the delay).
> 
> Signed-off-by: Vittorio Gambaletta <openwrt at vittgam.net>
> 
> 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 cae6396..efdc5fd 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
> @@ -20,7 +20,7 @@ ramips_set_preinit_iface() {
>  		# disabled:
>  		# https://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg19870.html
>  		swconfig dev rt305x set enable_vlan 1
> -		swconfig dev rt305x vlan 1 set ports "0 6"
> +		swconfig dev rt305x vlan 1 set ports "0 1 2 3 4 5 6"
>  		swconfig dev rt305x port 6 set untag 0
>  		swconfig dev rt305x set apply 1
>  		vconfig add eth0 1
> 

hi

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.

	John


board=$(ramips_board_name)

board_config_update
ports="0 6""
case $board in
my_board_name)
	ports="0 1 2 3 4 5 6"
	;;	
esac
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
_______________________________________________
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