From 8ffdf1997be5e67bd2a23b117b3a56a2429ad84b Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Thu, 7 Oct 2021 12:25:20 +0200 Subject: [PATCH] Fixed scripts by adding explicit "--ecc256" argument --- tools/scripts/prepare_encrypted_update.sh | 2 +- tools/scripts/prepare_update.sh | 2 +- tools/scripts/prepare_update_l5.sh | 2 +- tools/scripts/prepare_update_l5_dualbank.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/scripts/prepare_encrypted_update.sh b/tools/scripts/prepare_encrypted_update.sh index 1612f31b..a04344a4 100755 --- a/tools/scripts/prepare_encrypted_update.sh +++ b/tools/scripts/prepare_encrypted_update.sh @@ -13,7 +13,7 @@ APP=test-app/image_v"$VERSION"_signed_and_encrypted.bin # Create test key echo -n "0123456789abcdef0123456789abcdef0123456789ab" > enc_key.der -$SIGN_TOOL --encrypt enc_key.der test-app/image.bin ecc256.der $VERSION +$SIGN_TOOL --ecc256 --encrypt enc_key.der test-app/image.bin ecc256.der $VERSION dd if=/dev/zero bs=$SIZE count=1 2>/dev/null | tr "\000" "\377" > update.bin dd if=$APP of=update.bin bs=1 conv=notrunc printf "pBOOT" >> update.bin diff --git a/tools/scripts/prepare_update.sh b/tools/scripts/prepare_update.sh index d564af69..438e4922 100755 --- a/tools/scripts/prepare_update.sh +++ b/tools/scripts/prepare_update.sh @@ -9,7 +9,7 @@ fi SIZE=131067 VERSION=8 APP=test-app/image_v"$VERSION"_signed.bin -$SIGN_TOOL test-app/image.bin ecc256.der $VERSION +$SIGN_TOOL --ecc256 test-app/image.bin ecc256.der $VERSION dd if=/dev/zero bs=$SIZE count=1 2>/dev/null | tr "\000" "\377" > update.bin dd if=$APP of=update.bin bs=1 conv=notrunc printf "pBOOT" >> update.bin diff --git a/tools/scripts/prepare_update_l5.sh b/tools/scripts/prepare_update_l5.sh index d2b862dc..a8b0e432 100755 --- a/tools/scripts/prepare_update_l5.sh +++ b/tools/scripts/prepare_update_l5.sh @@ -9,7 +9,7 @@ fi SIZE=129019 VERSION=8 APP=test-app/image_v"$VERSION"_signed.bin -$SIGN_TOOL test-app/image.bin ecc256.der $VERSION +$SIGN_TOOL --sha256 --ecc256 test-app/image.bin ecc256.der $VERSION dd if=/dev/zero bs=$SIZE count=1 2>/dev/null | tr "\000" "\377" > update.bin dd if=$APP of=update.bin bs=1 conv=notrunc printf "pBOOT" >> update.bin diff --git a/tools/scripts/prepare_update_l5_dualbank.sh b/tools/scripts/prepare_update_l5_dualbank.sh index 0afbeea8..a0601675 100755 --- a/tools/scripts/prepare_update_l5_dualbank.sh +++ b/tools/scripts/prepare_update_l5_dualbank.sh @@ -9,7 +9,7 @@ fi SIZE=229371 VERSION=8 APP=test-app/image_v"$VERSION"_signed.bin -$SIGN_TOOL test-app/image.bin ecc256.der $VERSION +$SIGN_TOOL --ecc256 test-app/image.bin ecc256.der $VERSION dd if=/dev/zero bs=$SIZE count=1 2>/dev/null | tr "\000" "\377" > update.bin dd if=$APP of=update.bin bs=1 conv=notrunc printf "pBOOT" >> update.bin