2
0
forked from Ivasoft/openwrt

ramips: Add support to TP-Link Archer MR200

CPU: MT7620N 580MHz
Flash: 8MB
RAM: 64MB
build-in modem 3G/4G
four ethernet port 10/100Mbps

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
This commit is contained in:
Henryk Heisig
2016-09-24 21:41:43 +02:00
committed by John Crispin
parent 190ee7d86b
commit c8043137bb
9 changed files with 253 additions and 1 deletions

View File

@@ -242,6 +242,12 @@ mr-102n)
set_wifi_led "$board:green:wlan"
set_usb_led "$board:green:usb"
;;
mr200)
ucidef_set_led_default "power" "power" "$board:white:power" "1"
ucidef_set_led_netdev "lan" "lan" "$board:white:lan" "eth0.1"
ucidef_set_led_netdev "wan" "wan" "$board:white:wan" "usb0"
set_wifi_led "$board:white:wlan"
;;
mzk-ex750np)
ucidef_set_led_default "power" "power" "$board:red:power" "1"
set_wifi_led "$board:red:wifi"

View File

@@ -217,6 +217,11 @@ ramips_setup_interfaces()
wl-330n)
ucidef_set_interface_lan "eth0.1"
;;
mr200)
ucidef_add_switch "switch0" \
"0:lan" "1:lan" "2:lan" "3:lan" "6t@eth0"
ucidef_set_interface_wan "usb0"
;;
mzk-dp150n|\
vocore)
ucidef_add_switch "switch0" \

View File

@@ -164,6 +164,9 @@ get_status_led() {
mr-102n)
status_led="$board:amber:status"
;;
mr200)
status_led="$board:white:power"
;;
nw718)
status_led="$board:amber:cpu"
;;

View File

@@ -0,0 +1,16 @@
#!/bin/sh /etc/rc.common
. /lib/ramips.sh
START=99
start() {
local board=$(ramips_board_name)
if [ $board = "mr200" ]; then
adb wait-for-device
adb shell chmod +x /WEBSERVER/www/cgi-bin/*
adb shell httpd -h /WEBSERVER/www/ &
echo "2357 000d" > /sys/bus/usb-serial/drivers/option1/new_id
sleep 2
adb kill-server
fi
}

View File

@@ -295,6 +295,9 @@ ramips_board_detect() {
*"MR-102N")
name="mr-102n"
;;
*"MR200")
name="mr200"
;;
*"MT7620a + MT7530 evaluation"*)
name="mt7620a_mt7530"
;;

View File

@@ -204,7 +204,8 @@ platform_check_image() {
return 0
;;
c20i|\
c50)
c50|\
mr200)
[ "$magic" != "03000000" ] && {
echo "Invalid image type."
return 1