AA: ar71xx: enable sysupgrade for the CAP4200AG board
authorGabor Juhos <juhosg@openwrt.org>
Sun, 28 Oct 2012 12:24:43 +0000 (12:24 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 28 Oct 2012 12:24:43 +0000 (12:24 +0000)
Backport of r33960.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33981

target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index f1d95f6f6ae6aafafb619b85be3b5a3e12dcc9ec..81535ce9b19f5e02ed92097cdbdcac7eace13206 100755 (executable)
@@ -78,7 +78,8 @@ platform_check_image() {
 
        case "$board" in
        all0315n | \
-       all0258n )
+       all0258n | \
+       cap4200ag)
                platform_check_image_allnet "$1" && return 0
                return 1
                ;;
@@ -259,6 +260,9 @@ platform_do_upgrade() {
        all0315n )
                platform_do_upgrade_allnet "0x9f080000" "$ARGV"
                ;;
+       cap4200ag)
+               platform_do_upgrade_allnet "0xbf0a0000" "$ARGV"
+               ;;
        dir-825-b1 |\
        tew-673gru)
                platform_do_upgrade_dir825b "$ARGV"