diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-04-21 12:30:40 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-04-21 12:30:40 +0000 |
commit | fc88a363c07ac47cefbf3ea3b08c49ab448d2747 (patch) | |
tree | 71af98376ec10ae864ddcdb27dd17711c0c7dda9 /target/linux/ramips/base-files | |
parent | 88b5827c52b811066d48dbdc9fe4f021295d1d16 (diff) | |
download | mtk-20170518-fc88a363c07ac47cefbf3ea3b08c49ab448d2747.zip mtk-20170518-fc88a363c07ac47cefbf3ea3b08c49ab448d2747.tar.gz mtk-20170518-fc88a363c07ac47cefbf3ea3b08c49ab448d2747.tar.bz2 |
ramips: rt305x: add initial support for Tenda W306R V2.0
More device info at: http://wiki.openwrt.org/toh/tenda/w306r
Signed-off-by: David Pearce <David_18051985@hotmail.com.au>
[juhosg: fix checkpatch errors, remove kmod-phy and luci-ssl packages
from the profile, change broken GPIO number]
SVN-Revision: 31396
Diffstat (limited to 'target/linux/ramips/base-files')
7 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index 95f608a..2d351d6 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -81,6 +81,9 @@ get_status_led() { v22rw-2x2) status_led="v22rw-2x2:green:security" ;; + w306r-v20) + status_led="w306r:green:sys" + ;; w502u) status_led="alfa:blue:wps" ;; diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom index 62788cd..34821ec 100644 --- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom +++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom @@ -65,6 +65,7 @@ case "$FIRMWARE" in sl-r7205 | \ v11st-fe | \ v22rw-2x2 | \ + w306r-v20 | \ w502u | \ wcr-150gn | \ whr-g300n | \ diff --git a/target/linux/ramips/base-files/etc/uci-defaults/leds b/target/linux/ramips/base-files/etc/uci-defaults/leds index d8f3c0c..ba6ea60 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/leds @@ -66,6 +66,9 @@ case $board in v11st-fe) set_wifi_led "rt2800pci-phy0::radio" ;; + w306r-v20) + set_wifi_led "rt2800pci-phy0::radio" + ;; w502u) set_usb_led "alfa:blue:usb" set_wifi_led "rt2800pci-phy0::radio" diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network index dc2221f..81c12de 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/network +++ b/target/linux/ramips/base-files/etc/uci-defaults/network @@ -55,6 +55,7 @@ ramips_setup_interfaces() ;; freestation5 | \ + w306r-v20 | \ wcr-150gn) ucidef_set_interfaces_lan_wan "eth0.2" "eth0.1" ;; @@ -96,6 +97,11 @@ ramips_setup_macs() wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1) ;; + w306r-v20) + lan_mac=$(ramips_get_mac_binary factory 4) + wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 5) + ;; + dir-300-b1 |\ dir-300-b2 |\ dir-600-b1) diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac index f523d69..bd5de41 100644 --- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac @@ -28,6 +28,7 @@ preinit_set_mac_address() { hw550-3g |\ nbg-419n |\ omni-emb |\ + w306r-v20 |\ w502u |\ wl-330n |\ wr6202 |\ diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 1298ebd..045d952 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -134,6 +134,9 @@ ramips_board_name() { *"Sitecom WL-351 v1 002") name="wl-351" ;; + *"Tenda W306R V2.0") + name="w306r-v20" + ;; *"Ralink V11ST-FE") name="v11st-fe" ;; diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 7f500d9..faa82ec 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -32,6 +32,7 @@ platform_check_image() { rt-n15 | \ rt-n56u | \ sl-r7205 | \ + w306r-v20 |\ w502u |\ wr6202 |\ v22rw-2x2 | \ |