summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-04-09 10:26:41 +0000
committerJohn Crispin <john@openwrt.org>2016-04-09 10:26:41 +0000
commitd9799dea89ea1da5bbc0c9146a2e1ae5e54bd742 (patch)
tree4f4dfd04930430d21ffbf225dd53a8dc2c0017c0 /target/linux/ar71xx/base-files
parent2cba297ea064df58259f2b4dafbcdd05291d38b5 (diff)
downloadmaster-31e0f0ae-d9799dea89ea1da5bbc0c9146a2e1ae5e54bd742.tar.gz
master-31e0f0ae-d9799dea89ea1da5bbc0c9146a2e1ae5e54bd742.tar.bz2
master-31e0f0ae-d9799dea89ea1da5bbc0c9146a2e1ae5e54bd742.zip
ar71xx: add support for Compex WPJ342
OpenWrt can be flashed with following uboot commands: tftpboot 0x80500000 openwrt-ar71xx-generic-wpj342-16M-squashfs-sysupgrade.bin erase 0x9f030000 +$filesize cp.b $fileaddr 0x9f030000 $filesize Signed-off-by: Christian Mehlis <christian@m3hlis.de> SVN-Revision: 49157
Diffstat (limited to 'target/linux/ar71xx/base-files')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/board.d/02_network5
-rw-r--r--target/linux/ar71xx/base-files/etc/diag.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/ar71xx.sh3
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh1
4 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/board.d/02_network b/target/linux/ar71xx/base-files/etc/board.d/02_network
index bd488a26ff..c6a20149b5 100755
--- a/target/linux/ar71xx/base-files/etc/board.d/02_network
+++ b/target/linux/ar71xx/base-files/etc/board.d/02_network
@@ -405,6 +405,11 @@ gl-ar300)
"0@eth1" "1:lan" "2:lan" "3:lan" "4:lan"
;;
+wpj342)
+ ucidef_add_switch "switch0" \
+ "0@eth0" "1:lan" "2:wan"
+ ;;
+
wpj344)
ucidef_add_switch "switch0" \
"0@eth0" "3:lan" "2:wan"
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 783a4e6478..1cf6e4c301 100644
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -389,6 +389,9 @@ get_status_led() {
wp543)
status_led="wp543:green:diag"
;;
+ wpj342)
+ status_led="wpj342:green:sig3"
+ ;;
wpj344)
status_led="wpj344:green:status"
;;
diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh
index 9c19e23e4d..b3eda6c469 100755
--- a/target/linux/ar71xx/base-files/lib/ar71xx.sh
+++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh
@@ -967,6 +967,9 @@ ar71xx_board_detect() {
*WPE72)
name="wpe72"
;;
+ *WPJ342)
+ name="wpj342"
+ ;;
*WPJ344)
name="wpj344"
;;
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index 2d61638bf7..86375a9acc 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -255,6 +255,7 @@ platform_check_image() {
rw2458n | \
wpj531 | \
wndap360 | \
+ wpj342 | \
wpj344 | \
wzr-hp-g300nh2 | \
wzr-hp-g300nh | \