aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-09-19 22:36:41 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-09-19 22:36:41 +0000
commit7f9d2292fa00bbc98e4efc9f957d1b0b72f927c8 (patch)
tree6c5bf63226e490857d83385c77bdf55970f8089d /target/linux/ar71xx/base-files/etc
parent8b50ecc6ffa8439405b7fce3737eea2464ba591c (diff)
downloadupstream-7f9d2292fa00bbc98e4efc9f957d1b0b72f927c8.tar.gz
upstream-7f9d2292fa00bbc98e4efc9f957d1b0b72f927c8.tar.bz2
upstream-7f9d2292fa00bbc98e4efc9f957d1b0b72f927c8.zip
ar71xx: add user-space support for the WD My Net N600 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38074
Diffstat (limited to 'target/linux/ar71xx/base-files/etc')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/01_leds8
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network1
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header20
4 files changed, 32 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 1456d6eebb..2719a1340a 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -77,6 +77,9 @@ get_status_led() {
mr600v2)
status_led="mr600:blue:power"
;;
+ mynet-n600)
+ status_led="wd:blue:power"
+ ;;
mzk-w04nu | \
mzk-w300nh)
status_led="planex:green:status"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
index f55f1fe7c2..845de4e788 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds
@@ -86,6 +86,14 @@ mr600)
ucidef_set_led_wlan "wlan58" "WLAN58" "mr600:green:wlan58" "phy0tpt"
;;
+mynet-n600)
+ ucidef_set_led_netdev "wan" "WAN" "wd:blue:internet" "eth1"
+ ucidef_set_led_switch "lan1" "LAN1" "wd:green:lan1" "switch0" "0x02"
+ ucidef_set_led_switch "lan2" "LAN2" "wd:green:lan2" "switch0" "0x10"
+ ucidef_set_led_switch "lan3" "LAN3" "wd:green:lan3" "switch0" "0x08"
+ ucidef_set_led_switch "lan4" "LAN4" "wd:green:lan4" "switch0" "0x04"
+ ;;
+
mzk-w04u)
ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1"
;;
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
index d5a15066e3..23e99d0b3b 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -249,6 +249,7 @@ dir-600-a1 |\
dir-615-c1 |\
dir-615-e4 |\
ja76pf |\
+mynet-n600 |\
rb-750 |\
rb-751 |\
tew-632brp |\
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header
new file mode 100755
index 0000000000..8114ed47e6
--- /dev/null
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/09_fix-seama-header
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# Copyright (C) 2013 OpenWrt.org
+#
+
+. /lib/ar71xx.sh
+
+fix_seama_header() {
+ local part=$1
+
+ mtd fixseama $part
+}
+
+board=$(ar71xx_board_name)
+
+case "$board" in
+mynet-n600)
+ fix_seama_header kernel
+ ;;
+esac