Commit e62b292
[nrf noup] boot: add support for MPCCONF based write protection
Add support for write protecting both the bootloader partition
and the booted image partitions on nRF54H20 by configuring the
global domain MPCs. The protection scheme uses a combination of
UICR.MPCCONF, to protect the bootloader partition from boot, and
ironside_se_mpcconf_write(), to protect the images that will be
booted. Currently the only goal of the support is to write protect
the MRAM partitions - in the future more advanced schemes could be
added. Unlike the somewhat related and recently added PERIPHCONF
support, the MPC configuration is hardcoded in MCUboot and is not
currently possible to change via DFU.
The feature depends on support added in IronSide SE v23.4.0+27.
Signed-off-by: Jonathan Nilsen <jonathan.nilsen@nordicsemi.no>1 parent f0d1d0c commit e62b292
7 files changed
Lines changed: 482 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
822 | 822 | | |
823 | 823 | | |
824 | 824 | | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
825 | 829 | | |
826 | 830 | | |
827 | 831 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | | - | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments