summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-01-27 10:40:58 +0000
committerRafał Miłecki <zajec5@gmail.com>2016-01-27 10:40:58 +0000
commit1dfa8f37db2a4778bf664b32c05e1630bb281699 (patch)
tree4c2b0d8cedf202f0be8e75b576f146f31f3b919f
parent81e8e02289ef8ffd8c061524e4310f700177e732 (diff)
downloadmtk-20170518-1dfa8f37db2a4778bf664b32c05e1630bb281699.zip
mtk-20170518-1dfa8f37db2a4778bf664b32c05e1630bb281699.tar.gz
mtk-20170518-1dfa8f37db2a4778bf664b32c05e1630bb281699.tar.bz2
bcm53xx: detect Seama sysupgrade format
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
-rw-r--r--target/linux/bcm53xx/base-files/lib/upgrade/platform.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
index eff7aff..e9a3dc4 100644
--- a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
@@ -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"