aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-11 15:11:36 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-11 15:11:36 +0000
commitf42d3fde3bc3c0978cdd5b113753a55122376b94 (patch)
treed308d99406c69d62eb13569ad5d43bd14d56c8cc /target/linux/ramips/base-files
parent9933f03b4a326b477e408da55ebf6325b5a987a8 (diff)
downloadupstream-f42d3fde3bc3c0978cdd5b113753a55122376b94.tar.gz
upstream-f42d3fde3bc3c0978cdd5b113753a55122376b94.tar.bz2
upstream-f42d3fde3bc3c0978cdd5b113753a55122376b94.zip
ramips: rt305x: add support for Accton WR6202 / SMCWBR11S-3GN
This patch adds support for the Accton WR6202 Mini 3G broadband router. Full details for this device are available at http://www.awbnetworks.com/products03.php?Fullkey=19. This device is identical to the SMCWBR11S-3GN: http://www.smc-asia.com/products03.php?Fullkey=210 It's also worth noting that this board has a GPIO line to control the power to the USB port. [juhosg: - fix checkpatch warnings, - reorder Kconfig entry, - merge the sysupgrade patch, - add GPL header] Signed-off-by: Johnathan Boyce <jon.boyce@globalreach.eu.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30434 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/network3
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
5 files changed, 10 insertions, 3 deletions
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 ac97d037c1..ace012acc7 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
@@ -64,7 +64,8 @@ case "$FIRMWARE" in
whr-g300n | \
wl-351 | \
wli-tx4-ag300n | \
- wr512-3gn)
+ wr512-3gn | \
+ wr6202)
rt2x00_eeprom_extract "factory" 0 272
;;
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network
index 65c49e0ebb..174383405a 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -23,7 +23,8 @@ ramips_setup_interfaces()
argus-atp52b | \
b2c | \
nw718 | \
- w502u)
+ w502u | \
+ wr6202)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
;;
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 f6884c8477..121b471f4f 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
@@ -25,7 +25,8 @@ preinit_set_mac_address() {
hw550-3g |\
nbg-419n |\
omni-emb |\
- w502u)
+ w502u |\
+ wr6202)
mac=$(ramips_get_mac_binary factory 40)
ifconfig eth0 hw ether $mac 2>/dev/null
;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index b3c54e82db..5204820fb9 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -128,6 +128,9 @@ ramips_board_name() {
*"WR512-3GN-like router")
name="wr512-3gn"
;;
+ *"AWB WR6202")
+ name="wr6202"
+ ;;
*)
name="generic"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 494e774ef9..2751fdda29 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -29,6 +29,7 @@ platform_check_image() {
rt-g32-b1 | \
rt-n15 | \
w502u |\
+ wr6202 |\
v22rw-2x2 | \
wl341v3 | \
wli-tx4-ag300n | \