You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: boot/cypress/BlinkyApp/Readme.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ To get appropriate artifact for second image PRIMARY slot run this command:
83
83
84
84
To prepare MCUBootApp for work with external memory please refer to `MCUBootApp/ExternalMemory.md`.
85
85
86
-
For build BlinkyApp upgarde image for external memory use command:
86
+
For build BlinkyApp upgrade image for external memory use command:
87
87
88
88
make app APP_NAME=BlinkyApp PLATFORM=PSOC_062_2M IMG_TYPE=UPGRADE HEADER_OFFSET=0x7FE8000 ERASED_VALUE=0xff
89
89
@@ -97,6 +97,16 @@ In case of using muti-image configuration, upgrade image for second application
97
97
98
98
Note: for S25FL512S block address shuld be mutiple by 0x40000
99
99
100
+
**How to build encrypted upgrade image :**
101
+
102
+
To prepare MCUBootApp for work with encrypted upgrade image please refer to `MCUBootApp/Readme.md`.
103
+
104
+
To obtain encrypted upgrade image of BlinkyApp extra flag `ENC_IMG=1` should be passed in command line, for example:
105
+
106
+
make app APP_NAME=BlinkyApp PLATFORM=PSOC_062_2M IMG_TYPE=UPGRADE HEADER_OFFSET=0x20000 ENC_IMG=1
107
+
108
+
This also suggests user already placed corresponing `*.pem` key in `\keys` folder. The key variables are defined in root `Makefile` as `SIGN_KEY_FILE` and `ENC_KEY_FILE`
109
+
100
110
### Post-Build
101
111
102
112
Post build action is executed at compile time for `BlinkyApp`. In case of build for `PSOC_062_2M` platform it calls `imgtool` from `MCUBoot` scripts and adds signature to compiled image.
Copy file name to clipboardExpand all lines: boot/cypress/MCUBootApp/README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,6 +148,15 @@ This folder contains make files infrastructure for building MCUBoot Bootloader.
148
148
149
149
Root directory for build is **boot/cypress.**
150
150
151
+
**Encrypted Image Support**
152
+
153
+
To protect user image from unwanted read Upgrade Image Encryption can be applied. The ECDH/HKDF with EC256 scheme is used in a given solution as well as mbedTLS as a crypto provider.
154
+
155
+
To enable image encryption support `MCUBOOT_ENC_IMAGES` and `MCUBOOT_ENCRYPT_EC256` have to be defined (can be done by uncommenting in `mcuboot_config.h`).
156
+
User is also responsible on providing corresponding binary key data in `enc_priv_key[]` (file `\MCUBootApp\keys.c`). The public part will be used by imgtool when signing and encrypting upgrade image. Signing image with encryption is described in `\BlinkyApp\readme.md`.
157
+
158
+
After MCUBootApp is built with these settings unencrypted and encrypted images will be accepted in secondary (upgrade) slot.
159
+
151
160
**Programming solution**
152
161
153
162
There are couple ways of programming hex of MCUBootApp and BlinkyApp. Following instructions assume one of Cypress development kits, for example `CY8CPROTO_062_4343W`.
0 commit comments