Skip to content

Commit 1d38898

Browse files
committed
samples: crypto: migrate nRF5340 NS builds off Partition Manager
Disable Partition Manager for the nRF5340/ns target. For psa_tls also: Extend the DTS layout to nrf54lv10a/cpuapp/ns (new overlay) and update the nrf54l10/cpuapp/ns overlay. The stock DTS split allocates only 96 kB (nrf54l10) / 92 kB (nrf54lv10a) of SRAM to the non-secure. This new overlay matches the previous Partition Manager layout Fix nrf54lv10dk_nrf54lv10_cpuapp_ns.conf filename that was missing the 'a' variant suffix and was not being picked up by the build. Signed-off-by: Dag Erik Gjørvad <dag.erik.gjorvad@nordicsemi.no>
1 parent f659198 commit 1d38898

41 files changed

Lines changed: 1187 additions & 23 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/crypto/aes_cbc/Kconfig.sysbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
#
66

77
config PARTITION_MANAGER
8-
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
8+
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)
99

1010
source "share/sysbuild/Kconfig"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/delete-node/ &boot_partition;
2+
/delete-node/ &slot0_partition;
3+
/delete-node/ &slot1_partition;
4+
/delete-node/ &storage_partition;
5+
6+
/delete-node/ &tfm_its_partition;
7+
/delete-node/ &tfm_otp_partition;
8+
/delete-node/ &tfm_ps_partition;
9+
10+
&flash0 {
11+
partitions {
12+
slot0_s_partition: partition@0 {
13+
compatible = "zephyr,mapped-partition";
14+
label = "image-0-secure";
15+
reg = <0x0 0x40000>;
16+
};
17+
18+
slot0_ns_partition: partition@40000 {
19+
compatible = "zephyr,mapped-partition";
20+
label = "image-0-nonsecure";
21+
reg = <0x40000 0xb4000>;
22+
};
23+
24+
tfm_storage_partition: partition@f4000 {
25+
compatible = "zephyr,mapped-partition";
26+
label = "tfm-storage";
27+
reg = <0xf4000 DT_SIZE_K(48)>;
28+
ranges = <0x0 0xf4000 DT_SIZE_K(48)>;
29+
#address-cells = <1>;
30+
#size-cells = <1>;
31+
32+
tfm_its_partition: partition@0 {
33+
compatible = "zephyr,mapped-partition";
34+
label = "tfm-its";
35+
reg = <0x0 DT_SIZE_K(8)>;
36+
};
37+
38+
tfm_otp_partition: partition@4000 {
39+
compatible = "zephyr,mapped-partition";
40+
label = "tfm-otp";
41+
reg = <0x4000 DT_SIZE_K(8)>;
42+
};
43+
44+
tfm_ps_partition: partition@8000 {
45+
compatible = "zephyr,mapped-partition";
46+
label = "tfm-ps";
47+
reg = <0x8000 DT_SIZE_K(16)>;
48+
};
49+
};
50+
};
51+
};

samples/crypto/aes_ccm/Kconfig.sysbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
#
66

77
config PARTITION_MANAGER
8-
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
8+
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)
99

1010
source "share/sysbuild/Kconfig"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/delete-node/ &boot_partition;
2+
/delete-node/ &slot0_partition;
3+
/delete-node/ &slot1_partition;
4+
/delete-node/ &storage_partition;
5+
6+
/delete-node/ &tfm_its_partition;
7+
/delete-node/ &tfm_otp_partition;
8+
/delete-node/ &tfm_ps_partition;
9+
10+
&flash0 {
11+
partitions {
12+
slot0_s_partition: partition@0 {
13+
compatible = "zephyr,mapped-partition";
14+
label = "image-0-secure";
15+
reg = <0x0 0x40000>;
16+
};
17+
18+
slot0_ns_partition: partition@40000 {
19+
compatible = "zephyr,mapped-partition";
20+
label = "image-0-nonsecure";
21+
reg = <0x40000 0xb4000>;
22+
};
23+
24+
tfm_storage_partition: partition@f4000 {
25+
compatible = "zephyr,mapped-partition";
26+
label = "tfm-storage";
27+
reg = <0xf4000 DT_SIZE_K(48)>;
28+
ranges = <0x0 0xf4000 DT_SIZE_K(48)>;
29+
#address-cells = <1>;
30+
#size-cells = <1>;
31+
32+
tfm_its_partition: partition@0 {
33+
compatible = "zephyr,mapped-partition";
34+
label = "tfm-its";
35+
reg = <0x0 DT_SIZE_K(8)>;
36+
};
37+
38+
tfm_otp_partition: partition@4000 {
39+
compatible = "zephyr,mapped-partition";
40+
label = "tfm-otp";
41+
reg = <0x4000 DT_SIZE_K(8)>;
42+
};
43+
44+
tfm_ps_partition: partition@8000 {
45+
compatible = "zephyr,mapped-partition";
46+
label = "tfm-ps";
47+
reg = <0x8000 DT_SIZE_K(16)>;
48+
};
49+
};
50+
};
51+
};

samples/crypto/aes_ctr/Kconfig.sysbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
#
66

77
config PARTITION_MANAGER
8-
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
8+
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)
99

1010
source "share/sysbuild/Kconfig"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/delete-node/ &boot_partition;
2+
/delete-node/ &slot0_partition;
3+
/delete-node/ &slot1_partition;
4+
/delete-node/ &storage_partition;
5+
6+
/delete-node/ &tfm_its_partition;
7+
/delete-node/ &tfm_otp_partition;
8+
/delete-node/ &tfm_ps_partition;
9+
10+
&flash0 {
11+
partitions {
12+
slot0_s_partition: partition@0 {
13+
compatible = "zephyr,mapped-partition";
14+
label = "image-0-secure";
15+
reg = <0x0 0x40000>;
16+
};
17+
18+
slot0_ns_partition: partition@40000 {
19+
compatible = "zephyr,mapped-partition";
20+
label = "image-0-nonsecure";
21+
reg = <0x40000 0xb4000>;
22+
};
23+
24+
tfm_storage_partition: partition@f4000 {
25+
compatible = "zephyr,mapped-partition";
26+
label = "tfm-storage";
27+
reg = <0xf4000 DT_SIZE_K(48)>;
28+
ranges = <0x0 0xf4000 DT_SIZE_K(48)>;
29+
#address-cells = <1>;
30+
#size-cells = <1>;
31+
32+
tfm_its_partition: partition@0 {
33+
compatible = "zephyr,mapped-partition";
34+
label = "tfm-its";
35+
reg = <0x0 DT_SIZE_K(8)>;
36+
};
37+
38+
tfm_otp_partition: partition@4000 {
39+
compatible = "zephyr,mapped-partition";
40+
label = "tfm-otp";
41+
reg = <0x4000 DT_SIZE_K(8)>;
42+
};
43+
44+
tfm_ps_partition: partition@8000 {
45+
compatible = "zephyr,mapped-partition";
46+
label = "tfm-ps";
47+
reg = <0x8000 DT_SIZE_K(16)>;
48+
};
49+
};
50+
};
51+
};

samples/crypto/aes_gcm/Kconfig.sysbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
#
66

77
config PARTITION_MANAGER
8-
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
8+
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)
99

1010
source "share/sysbuild/Kconfig"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/delete-node/ &boot_partition;
2+
/delete-node/ &slot0_partition;
3+
/delete-node/ &slot1_partition;
4+
/delete-node/ &storage_partition;
5+
6+
/delete-node/ &tfm_its_partition;
7+
/delete-node/ &tfm_otp_partition;
8+
/delete-node/ &tfm_ps_partition;
9+
10+
&flash0 {
11+
partitions {
12+
slot0_s_partition: partition@0 {
13+
compatible = "zephyr,mapped-partition";
14+
label = "image-0-secure";
15+
reg = <0x0 0x40000>;
16+
};
17+
18+
slot0_ns_partition: partition@40000 {
19+
compatible = "zephyr,mapped-partition";
20+
label = "image-0-nonsecure";
21+
reg = <0x40000 0xb4000>;
22+
};
23+
24+
tfm_storage_partition: partition@f4000 {
25+
compatible = "zephyr,mapped-partition";
26+
label = "tfm-storage";
27+
reg = <0xf4000 DT_SIZE_K(48)>;
28+
ranges = <0x0 0xf4000 DT_SIZE_K(48)>;
29+
#address-cells = <1>;
30+
#size-cells = <1>;
31+
32+
tfm_its_partition: partition@0 {
33+
compatible = "zephyr,mapped-partition";
34+
label = "tfm-its";
35+
reg = <0x0 DT_SIZE_K(8)>;
36+
};
37+
38+
tfm_otp_partition: partition@4000 {
39+
compatible = "zephyr,mapped-partition";
40+
label = "tfm-otp";
41+
reg = <0x4000 DT_SIZE_K(8)>;
42+
};
43+
44+
tfm_ps_partition: partition@8000 {
45+
compatible = "zephyr,mapped-partition";
46+
label = "tfm-ps";
47+
reg = <0x8000 DT_SIZE_K(16)>;
48+
};
49+
};
50+
};
51+
};

samples/crypto/chachapoly/Kconfig.sysbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
#
66

77
config PARTITION_MANAGER
8-
default n if !((SOC_SERIES_NRF91 || SOC_SERIES_NRF53) && BOARD_IS_NON_SECURE)
8+
default n if !(SOC_SERIES_NRF91 && BOARD_IS_NON_SECURE)
99

1010
source "share/sysbuild/Kconfig"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/delete-node/ &boot_partition;
2+
/delete-node/ &slot0_partition;
3+
/delete-node/ &slot1_partition;
4+
/delete-node/ &storage_partition;
5+
6+
/delete-node/ &tfm_its_partition;
7+
/delete-node/ &tfm_otp_partition;
8+
/delete-node/ &tfm_ps_partition;
9+
10+
&flash0 {
11+
partitions {
12+
slot0_s_partition: partition@0 {
13+
compatible = "zephyr,mapped-partition";
14+
label = "image-0-secure";
15+
reg = <0x0 0x40000>;
16+
};
17+
18+
slot0_ns_partition: partition@40000 {
19+
compatible = "zephyr,mapped-partition";
20+
label = "image-0-nonsecure";
21+
reg = <0x40000 0xb4000>;
22+
};
23+
24+
tfm_storage_partition: partition@f4000 {
25+
compatible = "zephyr,mapped-partition";
26+
label = "tfm-storage";
27+
reg = <0xf4000 DT_SIZE_K(48)>;
28+
ranges = <0x0 0xf4000 DT_SIZE_K(48)>;
29+
#address-cells = <1>;
30+
#size-cells = <1>;
31+
32+
tfm_its_partition: partition@0 {
33+
compatible = "zephyr,mapped-partition";
34+
label = "tfm-its";
35+
reg = <0x0 DT_SIZE_K(8)>;
36+
};
37+
38+
tfm_otp_partition: partition@4000 {
39+
compatible = "zephyr,mapped-partition";
40+
label = "tfm-otp";
41+
reg = <0x4000 DT_SIZE_K(8)>;
42+
};
43+
44+
tfm_ps_partition: partition@8000 {
45+
compatible = "zephyr,mapped-partition";
46+
label = "tfm-ps";
47+
reg = <0x8000 DT_SIZE_K(16)>;
48+
};
49+
};
50+
};
51+
};

0 commit comments

Comments
 (0)