From 0aefa67f4322757fcb4710d7b0f296f15d02dcdb Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 18 Jun 2015 20:24:20 +0000 Subject: ar71xx: add support for compex wpj531 tftpboot 0x80500000 openwrt-ar71xx-generic-wpj531-16M-squashfs-sysupgrade.bin erase 0x9f030000 +$filesize erase 0x9f680000 +1 cp.b $fileaddr 0x9f030000 $filesize Signed-off-by: Christian Mehlis Backport of r46045 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@46055 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/base-files/etc/diag.sh | 3 +++ target/linux/ar71xx/base-files/etc/uci-defaults/02_network | 4 ++++ target/linux/ar71xx/base-files/lib/ar71xx.sh | 3 +++ target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 1 + 4 files changed, 11 insertions(+) (limited to 'target/linux/ar71xx/base-files') diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index f6e4a875fc..4bdb53db93 100644 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -311,6 +311,9 @@ get_status_led() { wpj344) status_led="wpj344:green:status" ;; + wpj531) + status_led="wpj531:green:sig3" + ;; wpj558) status_led="wpj558:green:sig3" ;; 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 9fdaca0721..4fe951e3ca 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/02_network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -369,6 +369,10 @@ wpj344) ucidef_add_switch_vlan "switch0" "2" "0t 2" ;; +wpj531) + ucidef_set_interfaces_lan_wan "eth0" "eth1" + ;; + wpj558) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_add_switch "switch0" "1" "1" diff --git a/target/linux/ar71xx/base-files/lib/ar71xx.sh b/target/linux/ar71xx/base-files/lib/ar71xx.sh index 4a4101de33..85258d2fef 100755 --- a/target/linux/ar71xx/base-files/lib/ar71xx.sh +++ b/target/linux/ar71xx/base-files/lib/ar71xx.sh @@ -820,6 +820,9 @@ ar71xx_board_detect() { *WPJ344) name="wpj344" ;; + *WPJ531) + name="wpj531" + ;; *WPJ558) name="wpj558" ;; diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 3dbd91cfc7..ade47fb852 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -229,6 +229,7 @@ platform_check_image() { rocket-m-xw | \ nanostation-m-xw | \ rw2458n | \ + wpj531 | \ wndap360 | \ wpj344 | \ wzr-hp-g300nh2 | \ -- cgit v1.2.3