Skip to content

Commit cf2387c

Browse files
committed
docs: design: Add update on swap using offset
Adds the new unprotected TLV sizes field that swap using offset mode uses Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
1 parent 62479c8 commit cf2387c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/design.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,12 @@ image trailer. An image trailer has the following structure:
571571
| 0xff padding as needed |
572572
| (BOOT_MAX_ALIGN minus 4 octets from Swap size) |
573573
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
574+
| Unprotected TLV size [*2] | Unprotected TLV size [*2] |
575+
| Secondary slot (2 octets) | Primary slot (2 octets) |
576+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
577+
| 0xff padding as needed [*2] |
578+
| (BOOT_MAX_ALIGN minus 4 octets from unprotected TLV sizes) |
579+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
574580
| Swap info | 0xff padding (BOOT_MAX_ALIGN minus 1 octet) |
575581
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
576582
| Copy done | 0xff padding (BOOT_MAX_ALIGN minus 1 octet) |
@@ -586,6 +592,7 @@ image trailer. An image trailer has the following structure:
586592
```
587593
588594
[*]: Only present if the encryption option is enabled (`MCUBOOT_ENC_IMAGES`).
595+
[*2]: Only present if swap using offset mode is used (`MCUBOOT_SWAP_USING_OFFSET`).
589596
590597
The offset immediately following such a record represents the start of the next
591598
flash area.

0 commit comments

Comments
 (0)