History log of /openwrt/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
Revision Date Author Comments
# 4d5daf0e 02-May-2016 John Crispin <blogic@openwrt.org>

ramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.

The new rt3050 switch driver doesn't have problems with TCP when not
using VLANs.

This piece of code also broke failsafe for all routers where the LAN
port is not wired to port 0 of the internal switch.

Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49293 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 4b90728f 25-Feb-2016 John Crispin <blogic@openwrt.org>

ramips: mt7620: fix failsafe switch config

As indicated in the bug tracker[1], failsafe mode is broken on at least some
devices using the mt7620 switch (and possibly mt7621). The thread explicitly
mentions the Xiaomi MiWifi, and the Nexx WT3020, and an unspecified device
using the mt7621 switch; the issue also applies to the Netgear EX2700.

The problem is that failsafe mode uses eth0, but enable_vlan is always set to 1
by the switch driver. Connecting to and/or pinging the device fails. This patch
fixes the failsafe preinit config, by making sure that vlan support is disabled.
It currently only fixes the switch config on mt7620, but might apply to the
mt7621 as well, so the patch has been designed with this in mind.

A similar (line wrapped) patch was submitted in December by Simon Peter, but never
accepted and/or discussed.

This patch applies to both Chaos Calmer and trunk.

[1] https://dev.openwrt.org/ticket/18768

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48772 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 1c958c18 02-Nov-2015 John Crispin <blogic@openwrt.org>

ramips: preinit: use iproute2 instead of vconfig

Replace use of vconfig with the corresponding iproute2 syntax in
/lib/preinit/07_set_preinit_iface_ramips

The switch reset work-around needed on some ramips targets used the
deprecated vconfig tool to bring up the pre-init/failsafe interface.
This doesn't work on recent builds where vconfig is no longer being
deployed, resulting in the device being unreachable when triggered
into failsafe mode.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47349 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 8f5e870f 16-Sep-2015 John Crispin <blogic@openwrt.org>

ramips: add proper mt7688 detection

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46957 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 3d1fb84a 06-Nov-2014 John Crispin <blogic@openwrt.org>

ralink: add support for mt7628

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43197 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 262de184 18-Aug-2014 John Crispin <blogic@openwrt.org>

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@gmail.com>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42179 3c298f89-4303-0410-b956-a3cf2f4a3e73


# 6d4d47f2 23-Jun-2013 John Crispin <blogic@openwrt.org>

ramips: move ESW reset to preinit on RT305x/RT5350

RT305x/RT5350 SoCs require the switch to be reset before touching the ethernet
interface, otherwise the driver will panic.
As we already init the ethernet in preinit we therefor need to reset the switch
before that.

Signed-off-by: Felix Kaechele <felix@fetzig.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37027 3c298f89-4303-0410-b956-a3cf2f4a3e73


# ecb32a21 10-Jun-2013 John Crispin <blogic@openwrt.org>

ramips: add HAME MPR-A2 support

This patch adds support for HAME MPR-A2 router using a DTS file.
The platform is Ralink RT5350.
http://wiki.openwrt.org/toh/hame/mpr-a2

Signed-off-by: Dmitry Shmygov <shmygov@rambler.ru>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36898 3c298f89-4303-0410-b956-a3cf2f4a3e73


# e5adedfd 25-Apr-2013 John Crispin <blogic@openwrt.org>

ramips: set preinit interface to eth0 by default.

This makes any ramips device accessible via ethernet in failsafe mode.

Based on: https://dev.openwrt.org/changeset/36322

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3567/
Acked-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36434 3c298f89-4303-0410-b956-a3cf2f4a3e73