Skip to content

Commit 86fa6cf

Browse files
committed
Update README to reflect default header size changes
1 parent 647114b commit 86fa6cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,15 @@ cd &_
8181
**Note:** even if the internal main application is not verified (ie: the digital signature is not checked) this step **must** be performed so the appropriate application header info is prepended to the binary. mcuboot will not execute the internal main application if this header info is missing or corrupt.
8282

8383
```
84-
imgtool sign -k signing-keys.pem --align 4 -v 1.2.3 --header-size 1024 --pad-header -S 901120 mbed-mcuboot-blinky.hex signed.hex
84+
imgtool sign -k signing-keys.pem --align 4 -v 1.2.3 --header-size 4096 --pad-header -S 901120 mbed-mcuboot-blinky.hex signed.hex
8585
```
8686

8787
Explanation of each option:
8888

8989
- `-k signing-keys.pem`: this specifies the file containing the keys used to sign/verify the application
9090
- `--align 4`: this lets mcuboot know the intrinsic alignment of the flash (32-bits = 4 byte alignemtn)
9191
- `-v 1.2.3`: this sets the version number of the application to 1.2.3
92-
- `--header-size 1024`: this must be the same as the value specified in `mcuboot.header-size` configuration (1024 bytes by default)
92+
- `--header-size 4096`: this must be the same as the value specified in `mcuboot.header-size` configuration (4096 bytes by default)
9393
- `--pad-header`: this tells imgtool to insert the entire header, including any necessary padding bytes.
9494
- `-S 901120`: this specifies the maximum size of the application ("slot size"). It **must** be the same as the value specified in the **main application's** `target.mbed_app_size` configuration (0xDC000 = 901120)
9595

0 commit comments

Comments
 (0)