Commit 9457715
pm: add inequally sized primary and secondary partitions
The default configuration of MCUboot is intended to swap between two
application images. Hence it makes sense that the sizes of both the
primary and secondary partition are equal.
In the B&O use case, however, the secondary partition is only used to
store the net-core image, while the primary partition is used to store
the app-core image.
In this case it makes sense to allow inequal sizes as the net-core only
has 256kB flash while the default equally sized partitions typically
left around 450kB for the secondary image as well.
This is implemented as two Kconfigs. One to allow inequal sizes and one
to specify the size of the secondary partition. The primary partition
will eat up all residual space.1 parent 766be5d commit 9457715
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
70 | 85 | | |
71 | 86 | | |
72 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
44 | 48 | | |
45 | 49 | | |
46 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
50 | 58 | | |
| |||
0 commit comments