Skip to content

Commit 04efc2e

Browse files
tamasbannvlsianpu
authored andcommitted
docs: fix FIH example command in design.md
Signed-off-by: Tamas Ban <tamas.ban@arm.com> Change-Id: I3ce8177ad6ae8196b7deb4176c4441f41bbc475a
1 parent 166075e commit 04efc2e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

docs/design.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,13 @@ allows hundreds to thousands of field upgrades in production is recommended.
226226
swap-using scratch algorithm assumes that the primary and the secondary image
227227
slot areas sizes are equal.
228228
The maximum image size available for the application
229-
will be:
229+
will be:
230230
```
231231
maximum-image-size = image-slot-size - image-trailer-size
232232
```
233233

234-
Where:
235-
`image-slot-size` is the size of the image slot.
234+
Where:
235+
`image-slot-size` is the size of the image slot.
236236
`image-trailer-size` is the size of the image trailer.
237237

238238
### [Swap without using scratch](#image-swap-no-scratch)
@@ -241,8 +241,8 @@ This algorithm is an alternative to the swap-using-scratch algorithm.
241241
It uses an additional sector in the primary slot to make swap possible.
242242
The algorithm works as follows:
243243

244-
1. Moves all sectors of the primary slot up by one sector.
245-
Beginning from N=0:
244+
1. Moves all sectors of the primary slot up by one sector.
245+
Beginning from N=0:
246246
2. Copies the N-th sector from the secondary slot to the N-th sector of the
247247
primary slot.
248248
3. Copies the (N+1)-th sector from the primary slot to the N-th sector of the
@@ -257,13 +257,13 @@ The algorithm is limited to support sectors of the same
257257
sector layout. All slot's sectors should be of the same size.
258258

259259
When using this algorithm the maximum image size available for the application
260-
will be:
260+
will be:
261261
```
262262
maximum-image-size = (N-1) * slot-sector-size - image-trailer-sectors-size
263263
```
264264

265-
Where:
266-
`N` is the number of sectors in the primary slot.
265+
Where:
266+
`N` is the number of sectors in the primary slot.
267267
`image-trailer-sectors-size` is the size of the image trailer rounded up to
268268
the total size of sectors its occupied. For instance if the image-trailer-size
269269
is equal to 1056 B and the sector size is equal to 1024 B, then
@@ -1468,8 +1468,8 @@ are issued from the MCUboot source directory):
14681468
```sh
14691469
$ mkdir docker
14701470
$ ./ci/fih-tests_install.sh
1471-
$ FIH_LEVEL=MCUBOOT_FIH_PROFILE_MEDIUM BUILD_TYPE=RELEASE SKIP_SIZE=2 \
1472-
DAMAGE_TYPE=SIGNATURE ./ci/fih-tests_run.sh
1471+
$ FIH_LEVEL=MEDIUM BUILD_TYPE=RELEASE SKIP_SIZE=2 DAMAGE_TYPE=SIGNATURE \
1472+
./ci/fih-tests_run.sh
14731473
```
14741474
On the travis CI the environment variables in the last command are set based on
14751475
the configs provided in the `.travis.yaml`

0 commit comments

Comments
 (0)