step 3: Verify ITCM again in step 3

It is already verified in step 2. However, it is possible
that users change the files for some reason, and this makes
sure that everything is in order.
This commit is contained in:
Konrad Beckmann 2022-05-17 17:16:53 +02:00
parent 441d74b5d8
commit 5a90788fcd
1 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,13 @@ if ! shasum --check shasums/flash_backup_checksummed_${TARGET}.bin.sha1 >/dev/nu
exit 1 exit 1
fi fi
echo "Validating ITCM dump..."
if ! shasum --check shasums/itcm_backup_${TARGET}.bin.sha1 >/dev/null 2>&1; then
echo "*** ITCM dump does not verify correctly ***"
echo "Please run ./2_backup_flash.sh again"
exit 1
fi
rm -f backups/flash_backup_checksummed_${TARGET}.bin rm -f backups/flash_backup_checksummed_${TARGET}.bin
echo "This step will overwrite the contents of the SPI flash chip that we backed up in step 2." echo "This step will overwrite the contents of the SPI flash chip that we backed up in step 2."