aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-01-30 08:06:40 +0000
committerJohn Crispin <blogic@openwrt.org>2015-01-30 08:06:40 +0000
commit93eb47fb3d13c7d85ca193cfbe2ebc50e0af0ec1 (patch)
tree9c2af604ff670904c96e507cc6db4c7d84866c8b /target/linux/ar71xx/base-files
parentf223ab856d64ad86fe82d371dc4b5702ed386af4 (diff)
downloadupstream-93eb47fb3d13c7d85ca193cfbe2ebc50e0af0ec1.tar.gz
upstream-93eb47fb3d13c7d85ca193cfbe2ebc50e0af0ec1.tar.bz2
upstream-93eb47fb3d13c7d85ca193cfbe2ebc50e0af0ec1.zip
ar71xx: add Netgear WNR1000v2/WNR1000v2-VC support (#18633)
The board is already supported by OpenWrt. WNR1000v2/WNR1000v2-VC are pretty much the same as WNR2000v3/WNR612v2, therefore the same initialization code and flash layout is used. Signed-off-by: Ștefan Rusu <saltwaterc@gmail.com> Tested-by: Douglas Fraser <1dsfraser@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44221 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/02_network3
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration4
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rw-r--r--target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx1
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh3
6 files changed, 14 insertions, 3 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 444e6fff7f..af6107b489 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -281,7 +281,8 @@ get_status_led() {
wndr4300 | \
wnr2000 | \
wnr2200 |\
- wnr612-v2)
+ wnr612-v2 |\
+ wnr1000-v2)
status_led="netgear:green:power"
;;
wp543)
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 5f1704f4b8..a223ae8fe5 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network
@@ -223,7 +223,8 @@ tl-wr842n-v2 |\
wnr2000-v3 |\
wnr2000-v4 |\
wnr2200 |\
-wnr612-v2)
+wnr612-v2 |\
+wnr1000-v2)
ucidef_set_interfaces_lan_wan "eth1" "eth0"
ucidef_add_switch "switch0" "1" "1"
ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4"
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration b/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
index 1cef8b9937..d578f59f7c 100755
--- a/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
+++ b/target/linux/ar71xx/base-files/etc/uci-defaults/04_led_migration
@@ -77,6 +77,10 @@ wnr612-v2)
migrate_leds "wnr612v2:=netgear:"
;;
+wnr1000-v2)
+ migrate_leds "wnr1000v2:=netgear:"
+ ;;
+
*)
;;
esac
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 14ee68b854..02872de145 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -780,6 +780,9 @@ ar71xx_board_detect() {
*"WNR612 V2")
name="wnr612-v2"
;;
+ *"WNR1000 V2")
+ name="wnr1000-v2"
+ ;;
*WRT160NL)
name="wrt160nl"
;;
diff --git a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
index a9a8794c77..f11ea8cb32 100644
--- a/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
+++ b/target/linux/ar71xx/base-files/lib/preinit/05_set_preinit_iface_ar71xx
@@ -38,6 +38,7 @@ set_preinit_iface() {
wnr2000-v3 |\
wnr2200 |\
wnr612-v2 |\
+ wnr1000-v2 |\
wpe72)
ifname=eth1
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 391299f38a..bc6866da19 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -379,7 +379,8 @@ platform_check_image() {
;;
wndr3700 | \
wnr2000-v3 | \
- wnr612-v2)
+ wnr612-v2 | \
+ wnr1000-v2)
local hw_magic
hw_magic="$(ar71xx_get_mtd_part_magic firmware)"