Changeset 42179


Ignore:
Timestamp:
2014-08-18T15:08:52+02:00 (3 years ago)
Author:
blogic
Message:

ramips: add a workaround to fix failsafe on RT5350

Due to TCP connections not working when VLAN is disabled, this is
needed to get failsafe functional.

Signed-off-by: Paul Fertser <fercerpav@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips

    r37027 r42179  
    1212        fi 
    1313 
    14         ifname=eth0 
     14        if echo $RT3X5X | grep -q RT5350; then 
     15                # This is a dirty hack to get by while the switch 
     16                # problem is investigated. When VLAN is disabled, ICMP 
     17                # pings work as expected, but TCP connections time 
     18                # out, so telnetting in failsafe is impossible. The 
     19                # likely reason is TCP checksumming hardware getting 
     20                # disabled: 
     21                # https://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg19870.html 
     22                swconfig dev rt305x set enable_vlan 1 
     23                swconfig dev rt305x vlan 1 set ports "0 6" 
     24                swconfig dev rt305x port 6 set untag 0 
     25                swconfig dev rt305x set apply 1 
     26                vconfig add eth0 1 
     27                ifconfig eth0 up 
     28                ifname=eth0.1 
     29        else 
     30                ifname=eth0 
     31        fi 
    1532} 
    1633 
Note: See TracChangeset for help on using the changeset viewer.