diff options
author | John Crispin <john@openwrt.org> | 2015-07-14 07:40:22 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2015-07-14 07:40:22 +0000 |
commit | b6185738150c84e84522df3fc953e921528dbf23 (patch) | |
tree | 8f796e055533300215587924a82e30db323edd58 /target/linux/ramips/base-files | |
parent | 0ac2ef13f7a095eb0e397676fae642f59dad59e4 (diff) | |
download | upstream-b6185738150c84e84522df3fc953e921528dbf23.tar.gz upstream-b6185738150c84e84522df3fc953e921528dbf23.tar.bz2 upstream-b6185738150c84e84522df3fc953e921528dbf23.zip |
ramips: adding support for OY-0001 Wireless Router
Adding support for OY-0001 Wireless Router.
OY-0001 is a wireless router made by oyewifi.com. Below is the details:
MT7620A, 128MB DDR2, 16MB FLASH, SD Slot, USB 2.0, 4 x LAN + 1 x WAN.
Signed-off-by: Tom Deng <2579131212@qq.com>
SVN-Revision: 46349
Diffstat (limited to 'target/linux/ramips/base-files')
4 files changed, 14 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 545bd7090a..fe3a79d14d 100755 --- a/target/linux/ramips/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/base-files/etc/board.d/01_leds @@ -238,6 +238,10 @@ case $board in set_wifi_led "zbtlink:blue:air" set_usb_led "zbtlink:blue:usb" ;; + oy-0001) + ucidef_set_led_default "power" "power" "oy:green:power" "1" + set_wifi_led "oy:green:wifi" + ;; wr8305rt) ucidef_set_led_default "power" "power" "wr8305rt:sys" "1" set_usb_led "wr8305rt: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 bc1fc0191c..9fb3535149 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -139,6 +139,7 @@ ramips_setup_interfaces() mzk-750dhp | \ whr-300hp2 | \ whr-600d | \ + oy-0001 | \ wsr-600 | \ wsr-1166 | \ wt1520 | \ @@ -283,6 +284,11 @@ ramips_setup_macs() wan_mac=$(mtd_get_mac_binary devdata 7) ;; + oy-0001) + lan_mac=$(mtd_get_mac_binary factory 40) + wan_mac=$(mtd_get_mac_binary factory 46) + ;; + w306r-v20) lan_mac=$(cat /sys/class/net/eth0/address) wan_mac=$(macaddr_add "$lan_mac" 5) diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index d2a1856cd8..3d40ab9b63 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -400,6 +400,9 @@ ramips_board_detect() { *"Zbtlink ZBT-WA05") name="zbt-wa05" ;; + *"OY-0001") + name="oy-0001" + ;; *"ZBT WR8305RT") name="wr8305rt" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index cedd62bccd..8f45a84612 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -116,6 +116,7 @@ platform_check_image() { wr6202 |\ wr8305rt |\ wrtnode |\ + oy-0001 |\ wt1520 |\ wt3020 |\ x5 |\ |