From 6a72dbe941d52ee0df33eb50860b0fd8b047c47a Mon Sep 17 00:00:00 2001 From: Georgios Vasilakis Date: Wed, 4 Dec 2024 12:55:36 +0100 Subject: [PATCH] samples: suit: smp_transfer: Use PRNG entropy This sample require entropy from Zephyr, in nRF54h20 this is provided by PSA RNG driver and from the secure domain. The PSA RNG driver brings IPC dependencies which increase the flash footprint of this sample and this was not an acceptable increase for the mainttainers of the sample. It was concluded that as a temporary solution this sample will keep using the non cryptographically secure, deterministic software RNG. The dependency on the PRNG node needs to be removed later and it tracked in NCSDK-30805 Signed-off-by: Georgios Vasilakis --- .../sysbuild/recovery_hci_ipc.overlay | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/samples/suit/smp_transfer/sysbuild/recovery_hci_ipc.overlay b/samples/suit/smp_transfer/sysbuild/recovery_hci_ipc.overlay index 5d0abbea4925..b06fa93c52ef 100644 --- a/samples/suit/smp_transfer/sysbuild/recovery_hci_ipc.overlay +++ b/samples/suit/smp_transfer/sysbuild/recovery_hci_ipc.overlay @@ -6,6 +6,24 @@ #include "nrf54h20dk_nrf54h20_memory_map.dtsi" +/ { + chosen { + zephyr,entropy = &prng; + }; + + /delete-node/ psa-rng; + + prng: prng { + compatible = "nordic,entropy-prng"; + status = "okay"; + }; + +}; + +&cpusec_cpurad_ipc { + status = "disabled"; +}; + &uart135 { status = "disabled"; };