Commit Graph

12 Commits (6ea5f7d44c8dccdf018af0aa9750903308aa95b7)

Author SHA1 Message Date
Adrian Schmutzler 5b96421964 ramips: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax.

While at it, remove some useless cat commands and deprecated
egrep commands.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years ago
Adrian Schmutzler e8d2d97498 ramips: Remove base-files/lib/ramips.sh
Having converted the target to use device compatible, ramips.sh
is obsolete now.

The only remaining entry for the mt7688 evaluation board seems to
be orphaned.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
5 years ago
Kevin Darbyshire-Bryant 972c126eb6 ramips: mt7621: fix failsafe mode networking
Disable VLANs on mt7621 boards with mt7530 switches on failsafe entry.

Allows failsafe networking to work correctly.

Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
[fixed default case syntax error]
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years ago
blogic 40bfe9f0bd 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>

SVN-Revision: 49293
8 years ago
John Crispin 074cc7ac38 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>

SVN-Revision: 48772
8 years ago
John Crispin 907c67fa87 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>

SVN-Revision: 47349
9 years ago
John Crispin 86a1e46b63 ramips: add proper mt7688 detection
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46957
9 years ago
John Crispin cadf517107 ralink: add support for mt7628
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 43197
10 years ago
John Crispin 3a9752bbd2 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>

SVN-Revision: 42179
10 years ago
John Crispin 5063f712a6 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>

SVN-Revision: 37027
11 years ago
John Crispin fc9532aeaa 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>

SVN-Revision: 36898
11 years ago
John Crispin 978567a89e 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>

SVN-Revision: 36434
11 years ago