wolfBoot/tools/scripts/prepare_update_l5.sh

11 lines
329 B
Bash
Executable File

#!/bin/bash
# SIZE is WOLFBOOT_PARTITION_SIZE - 5
SIZE=129019
VERSION=8
APP=test-app/image_v"$VERSION"_signed.bin
./tools/keytools/sign.py 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