aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-06-19 09:52:15 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-06-19 09:52:15 +0000
commit833b4af81602e0afc302060972038dfbbc993708 (patch)
treebbb31daf1c76fa49712b20bbebac879681244d60 /target/linux/ramips/base-files
parent431e612d9e885471a4cf28288b1673d290e0c782 (diff)
downloadupstream-833b4af81602e0afc302060972038dfbbc993708.tar.gz
upstream-833b4af81602e0afc302060972038dfbbc993708.tar.bz2
upstream-833b4af81602e0afc302060972038dfbbc993708.zip
ramips: rt305x: add support for the Petatel PSR-680W Wireless CDMA Router
This patch adds support for the Korean made Petatel PSR-680W Wireless CDMA Router. The platform is based on Ralink RT3052. http://wiki.openwrt.org/toh/petatel/psr-680w Signed-off-by: Dmitry Shmygov <shmygov at rambler.ru> SVN-Revision: 32450
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh3
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom1
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/network2
-rw-r--r--target/linux/ramips/base-files/lib/preinit/06_set_iface_mac1
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh3
-rwxr-xr-xtarget/linux/ramips/base-files/lib/upgrade/platform.sh1
6 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 78c9e945b3..95e504f1da 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -60,6 +60,9 @@ get_status_led() {
omni-emb)
status_led="emb:green:status"
;;
+ psr-680w)
+ status_led="psr-680w:red:wan"
+ ;;
pwh2004)
status_led="pwh2004:green:power"
;;
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 d93e60a9a6..c5d0d6978b 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
@@ -60,6 +60,7 @@ case "$FIRMWARE" in
nbg-419n | \
nw718 | \
omni-emb | \
+ psr-680w | \
rt-n15 | \
rt-n56u | \
sl-r7205 | \
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network
index 43d5726921..bbf0334437 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -24,6 +24,7 @@ ramips_setup_interfaces()
argus-atp52b | \
b2c | \
nw718 | \
+ psr-680w | \
sl-r7205 | \
w502u | \
wr6202)
@@ -93,6 +94,7 @@ ramips_setup_macs()
b2c | \
f5d8235-v1 | \
nw718 | \
+ psr-680w | \
rt-n15 | \
sl-r7205 | \
wl-351)
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 b02dfab813..69d1b8cb20 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
@@ -12,6 +12,7 @@ preinit_set_mac_address() {
esr-9753 |\
freestation5 |\
nw718 |\
+ psr-680w |\
rt-n56u |\
sl-r7205)
mac=$(ramips_get_mac_binary factory 4)
diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh
index 486d137298..a5a173436e 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -101,6 +101,9 @@ ramips_board_name() {
*"Omnima MiniEMBWiFi")
name="omni-emb"
;;
+ *"Petatel PSR-680W"*)
+ name="psr-680w"
+ ;;
*"PWH2004")
name="pwh2004"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 229cbe5435..1292b83e79 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -27,6 +27,7 @@ platform_check_image() {
nbg-419n | \
nw718 | \
omni-emb | \
+ psr-680w | \
rt-g32-b1 | \
rt-n10-plus | \
rt-n15 | \