aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorCarlo Nel <carlojnel@gmail.com>2018-08-26 21:11:59 +0200
committerMathias Kresin <dev@kresin.me>2018-09-06 21:36:42 +0200
commit6bbb2202551be394fead2efd99eb946f846fc63d (patch)
treedc03da1873c1ca5c73d08f3451599c383c8f275e /target/linux/ramips/base-files
parent9c26def64ad9891a036dcabcde11d58ecd59e8f4 (diff)
downloadupstream-6bbb2202551be394fead2efd99eb946f846fc63d.tar.gz
upstream-6bbb2202551be394fead2efd99eb946f846fc63d.tar.bz2
upstream-6bbb2202551be394fead2efd99eb946f846fc63d.zip
ramips: add support for TP-Link TL-MR3020 v3
TP-Link TL-MR3020 v3 is a pocket-size router based on MediaTek MT7628N. This PR is based on the work of @meyergru[1], with his permission. Specification: - MediaTek MT7628N/N (575 Mhz) - 64 MB of RAM - 8 MB of FLASH - 2T2R 2.4 GHz - 1x 10/100 Mbps Ethernet Flash instruction: The only way to flash the image in TL-MR3020 v3 is to use tftp recovery mode in U-Boot: 1. Configure PC with static IP 192.168.0.225/24 and tftp server. 2. Rename "openwrt-ramips-mt76x8-tplink_tl-mr3020-v3-squashfs-tftp-recovery.bin" to "tp_recovery.bin" and place it in tftp server directory. 3. Connect PC with the LAN port, press the reset button, power up the router and keep button pressed for around 6-7 seconds, until device starts downloading the file. 4. Router will download file from server, write it to flash and reboot. [1] https://github.com/meyergru/lede-source/commits/TL-MR3020-V3 Signed-off-by: Carlo Nel <carlojnel@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds5
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
3 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 8bf7ef3b1e..293e91ea21 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -404,6 +404,11 @@ tplink,tl-wa801nd-v5)
ucidef_set_led_wlan "wlan" "wlan" "$boardname:green:wlan" "phy0tpt"
ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
;;
+tplink,tl-mr3020-v3)
+ set_usb_led "$boardname:green:3g"
+ set_wifi_led "$boardname:green:wlan"
+ ucidef_set_led_netdev "lan" "LAN" "$boardname:green:lan" "eth0"
+ ;;
tplink,tl-mr3420-v5|\
tplink,tl-wr842n-v5)
set_usb_led "$boardname:green:usb"
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index 6e4575a052..9e9ecbcb51 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -150,6 +150,7 @@ ramips_setup_interfaces()
pbr-d1|\
ravpower,wd03|\
tama,w06|\
+ tplink,tl-mr3020-v3|\
u25awf-h1|\
wli-tx4-ag300n|\
wmdr-143n|\
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 68deb672fc..7558b4e316 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -265,6 +265,7 @@ platform_check_image() {
tplink,c20-v1|\
tplink,c20-v4|\
tplink,c50-v3|\
+ tplink,tl-mr3020-v3|\
tplink,tl-mr3420-v5|\
tplink,tl-wa801nd-v5|\
tplink,tl-wr842n-v5|\