wolfBoot/config/examples/sim-compressed-update-ecc.c...

32 lines
933 B
Plaintext

ARCH=sim
TARGET=sim
SIGN?=ED25519
HASH?=SHA256
WOLFBOOT_SMALL_STACK?=0
SPI_FLASH=0
DEBUG=1
# UPDATE holds a signed gzip stream whose payload is a complete signed
# image, inflated into BOOT, which keeps executing in place.
COMPRESSED_UPDATE=1
WOLFBOOT_COMPRESSED_WINDOW=16384
# Trailer journal and the ECC flash rules: the simulator then rejects writes
# that are not whole, erased 16-byte units, and partial-sector erases
NVM_FLASH_JOURNAL=1
NVM_FLASH_ECC=1
FLASH_WRITE_UNIT=16
# sizes should be multiple of system page size
WOLFBOOT_PARTITION_SIZE=0x50000
WOLFBOOT_PARTITION_UPDATE_SIZE=0x2C000
WOLFBOOT_SECTOR_SIZE=0x1000
WOLFBOOT_PARTITION_BOOT_ADDRESS=0x80000
# if on external flash, it should be multiple of system page size
WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x100000
# No swap step in this mode; still reserved for the keytools.
WOLFBOOT_PARTITION_SWAP_ADDRESS=0x180000
# required for keytools
WOLFBOOT_FIXED_PARTITIONS=1