aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-02-19 16:44:49 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-02-19 16:44:49 +0000
commit3489515a7eb66c6489c3aeefda06e132532f5811 (patch)
treed66b1b0d6f66ba151dcba9646d9a8ac97008cd56 /target/linux/ramips/base-files
parent413caddc3408102b368fc8cb969c85de018ca912 (diff)
downloadupstream-3489515a7eb66c6489c3aeefda06e132532f5811.tar.gz
upstream-3489515a7eb66c6489c3aeefda06e132532f5811.tar.bz2
upstream-3489515a7eb66c6489c3aeefda06e132532f5811.zip
ramips: rt305x: add support for the Skyline SL-R7205 Wireless 3G router
[juhosg: - don't switch back to 2.6.39 - update config-3.2 - change machine id to SL-R7205 - reorder case entries in platform scripts - remove button hotplug script] Signed-off-by: Haipoh Teoh <hpteoh@ceedtec.com> SVN-Revision: 30645
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/leds3
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/network2
-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
7 files changed, 15 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index b167c520bd..26f0d1f0af 100755
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -69,6 +69,9 @@ get_status_led() {
rt-n56u)
status_led="asus:blue:power"
;;
+ sl-r7205)
+ status_led="sl-r7205:green:status"
+ ;;
v11st-fe)
status_led="v11st-fe:green:status"
;;
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 6d90c25975..eb756a5e5f 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
omni-emb | \
rt-n15 | \
rt-n56u | \
+ sl-r7205 | \
v11st-fe | \
v22rw-2x2 | \
w502u | \
diff --git a/target/linux/ramips/base-files/etc/uci-defaults/leds b/target/linux/ramips/base-files/etc/uci-defaults/leds
index 891a1a7b3c..d8f3c0cba6 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/leds
+++ b/target/linux/ramips/base-files/etc/uci-defaults/leds
@@ -60,6 +60,9 @@ case $board in
nw718)
set_usb_led "nw718:amber:usb"
;;
+ sl-r7205)
+ set_wifi_led "rt2800pci-phy0::radio"
+ ;;
v11st-fe)
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 a36341ca15..2b8c1ab254 100755
--- a/target/linux/ramips/base-files/etc/uci-defaults/network
+++ b/target/linux/ramips/base-files/etc/uci-defaults/network
@@ -23,6 +23,7 @@ ramips_setup_interfaces()
argus-atp52b | \
b2c | \
nw718 | \
+ sl-r7205 | \
w502u | \
wr6202)
ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
@@ -99,6 +100,7 @@ ramips_setup_macs()
f5d8235-v1 | \
nw718 | \
rt-n15 | \
+ sl-r7205 | \
wl-351)
lan_mac=$(ramips_get_mac_binary factory 4)
wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1)
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 9f5c02446c..66eb6b98a4 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
@@ -9,9 +9,10 @@ preinit_set_mac_address() {
case $(ramips_board_name) in
bc2 |\
+ esr-9753 |\
nw718 |\
rt-n56u |\
- esr-9753)
+ sl-r7205)
mac=$(ramips_get_mac_binary factory 4)
mac=$(maccalc or "$mac" "02:00:00:00:00:00")
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 07bdf16051..728f525d68 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -104,6 +104,9 @@ ramips_board_name() {
*"RT-N56U")
name="rt-n56u"
;;
+ *"Skyline SL-R7205"*)
+ name="sl-r7205"
+ ;;
*"Sparklan WCR-150GN")
name="wcr-150gn"
;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 2bcfa4b821..a2f351353c 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 | \
rt-n56u | \
+ sl-r7205 | \
w502u |\
wr6202 |\
v22rw-2x2 | \