File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ARCH?=ARM
2+ TARGET?=stm32wb
3+ SIGN?=ECC256
4+ HASH?=SHA256
5+ DEBUG?=0
6+ VTOR?=1
7+ CORTEX_M0?=0
8+ NO_ASM?=0
9+ EXT_FLASH?=1
10+ SPI_FLASH?=0
11+ NO_XIP?=0
12+ UART_FLASH?=1
13+ ALLOW_DOWNGRADE?=0
14+ NVM_FLASH_WRITEONCE?=1
15+ WOLFBOOT_VERSION?=0
16+ V?=0
17+ NO_MPU?=0
18+ SPMATH?=1
19+ RAM_CODE?=0
20+ DUALBANK_SWAP?=0
21+ IMAGE_HEADER_SIZE?=256
22+ PKA?=0
23+ WOLFTPM?=0
24+ WOLFBOOT_PARTITION_SIZE?=0x20000
25+ WOLFBOOT_SECTOR_SIZE?=0x1000
26+ WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x08010000
27+ WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x0
28+ WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x20000
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # SIZE is WOLFBOOT_PARTITION_SIZE - 5
3+ SIZE=131067
4+ VERSION=8
5+ APP=test-app/image_v" $VERSION " _signed_and_encrypted.bin
6+
7+ # Create test key
8+ echo -n " 0123456789abcdef0123456789abcdef" > enc_key.der
9+
10+ ./tools/keytools/sign.py --encrypt enc_key.der test-app/image.bin ecc256.der $VERSION
11+ dd if=/dev/zero bs=$SIZE count=1 2> /dev/null | tr " \000" " \377" > update.bin
12+ dd if=$APP of=update.bin bs=1 conv=notrunc
13+ printf " pBOOT" >> update.bin
14+
15+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # SIZE is WOLFBOOT_PARTITION_SIZE - 5
3+ SIZE=131067
4+ VERSION=8
5+ APP=test-app/image_v" $VERSION " _signed.bin
6+ ./tools/keytools/sign.py test-app/image.bin ecc256.der $VERSION
7+ dd if=/dev/zero bs=$SIZE count=1 2> /dev/null | tr " \000" " \377" > update.bin
8+ dd if=$APP of=update.bin bs=1 conv=notrunc
9+ printf " pBOOT" >> update.bin
10+
You can’t perform that action at this time.
0 commit comments