bcm53xx: detect Seama sysupgrade format
authorRafał Miłecki <zajec5@gmail.com>
Wed, 27 Jan 2016 10:40:58 +0000 (10:40 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Wed, 27 Jan 2016 10:40:58 +0000 (10:40 +0000)
It's used e.g. by D-Link devices. We don't support it yet.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 48509

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

index eff7affe0469701aa56c8b8c095a3fdf89608b68..e9a3dc49501862d0844be9b826cdcf7d30b99111 100644 (file)
@@ -44,6 +44,10 @@ platform_identify() {
                        echo "chk"
                        return
                        ;;
+               "5ea3a417")
+                       echo "seama"
+                       return
+                       ;;
        esac
 
        magic=$(get_magic_long_at "$1" 14)
@@ -95,6 +99,10 @@ platform_check_image() {
                                error=1
                        fi
                ;;
+               "seama")
+                       echo "Seama firmware format is unsupported"
+                       error=1
+               ;;
                "trx")
                        if ! otrx check "$1"; then
                                echo "Invalid (corrupted?) TRX firmware"