summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
authorZheng Qian <sotux82@gmail.com>2018-03-29 18:33:02 +0800
committerMathias Kresin <dev@kresin.me>2018-04-08 09:52:48 +0200
commit80a94aacaf8ce67d7a6f0f4342292c4a427ec838 (patch)
tree707c743c0f010cf2d52f75548e3d4955d42da82f /target/linux/ramips/base-files/etc
parent1680ae7eae2602dd85463a71f88d0012b236bff7 (diff)
downloadmtk-20170518-80a94aacaf8ce67d7a6f0f4342292c4a427ec838.zip
mtk-20170518-80a94aacaf8ce67d7a6f0f4342292c4a427ec838.tar.gz
mtk-20170518-80a94aacaf8ce67d7a6f0f4342292c4a427ec838.tar.bz2
ramips: add support for the YouHua WR1200JS
YouHua tech WR1200JS is an AC1200 router with 5 1Gb ports (4 Lan, 1 Wan) and 1 USB 2.0 port. Devices is base on MediaTek MT7621AT + MT7603E + MT7612E. Specification: - MT7612AT (880 MHz) - 128 MB of RAM - 16 MB of FLASH (SPI NOR) - 5x 10/100/1000 Mbps Ethernet - 2T2R 2.4 GHz (MT7603E) - 2T2R 5 GHz (MT7612E) - 1x USB 2.0 - 10x LED (Power 2G 5G WPS Internet LAN4-1 USB) - 3x button (reset wifi wps) - DC jack for main power input (12V) Installation: 1.) Press reset key 5 sec and restore the factory default 2.) Login webUI and change username to root and set a new password 3.) Visit http://192.168.2.254/adm/telnetd.shtml and turn on the telnet service 4.) Copy openwrt-ramips-mt7621-youhua_wr1200js-initramfs-kernel.bin to a usb pan 5.) Plug the usb pan to the router, telnet to the router and login by root 6.) cd /media/sda1 and check the initramfs file is there 7.) exec command: mtd_write write openwrt-ramips-mt7621-youhua_wr1200js-initramfs-kernel.bin Kernel 8.) reboot and visit 192.168.1.1 Signed-off-by: Zheng Qian <sotux82@gmail.com>
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds5
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network1
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh3
3 files changed, 8 insertions, 1 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 a34abbb..1a8e376 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -495,6 +495,11 @@ y1s)
ucidef_set_led_netdev "wifi5g" "WIFI5G" "$boardname:blue:wifi" "wlan0"
ucidef_set_led_netdev "wan" "WAN" "$boardname:blue:internet" "eth0.2" "tx rx"
;;
+youhua,wr1200js)
+ ucidef_set_led_switch "internet" "INTERNET" "$boardname:green:wan" "switch0" "0x01"
+ ucidef_set_led_usbdev "usb" "USB" "$boardname:blue:usb" "1-2"
+ ucidef_set_led_default "wps" "wps" "$boardname:blue:wps" "0"
+ ;;
zbt-ape522ii)
ucidef_set_led_netdev "wlan2g4" "wlan1-link" "$boardname:green:wlan2g4" "wlan1"
ucidef_set_led_netdev "sys1" "wlan1" "$boardname:green:sys1" "wlan1" "tx rx"
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 8f3a95d..0f173bc 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -210,6 +210,7 @@ ramips_setup_interfaces()
wrtnode|\
wrtnode2p | \
wrtnode2r | \
+ youhua,wr1200js|\
zbt-wa05)
ucidef_add_switch "switch0" \
"1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 7b90f6b..cbaa2d6 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -132,7 +132,8 @@ get_status_led() {
status_led="$boardname:yellow:status"
;;
cy-swr1100|\
- w502u)
+ w502u|\
+ youhua,wr1200js)
status_led="$boardname:blue:wps"
;;
d240|\