From 6e54abd57c635272e827d8cb0f9a807a7822e64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20Audun=20Kvamtr=C3=B8?= Date: Fri, 7 Feb 2025 09:48:37 +0100 Subject: [PATCH] ble: Ensure HCI rng not used for peripheral/central UART samples MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -Fixes issues with nRF54H20 and nRF5340dk in upmerge. This can be seen as a workaround -Adjusting board-files for central_uart and peripheral_uart for nRF5340 and nRFH20 cpuapp Signed-off-by: Frank Audun Kvamtrø --- .../central_uart/boards/nrf5340dk_nrf5340_cpuapp.conf | 11 +++++++++++ .../boards/nrf54h20dk_nrf54h20_cpuapp.conf | 4 ++++ .../boards/nrf5340dk_nrf5340_cpuapp.conf | 9 +++++++++ .../boards/nrf54h20dk_nrf54h20_cpuapp.conf | 4 ++++ 4 files changed, 28 insertions(+) create mode 100644 samples/bluetooth/central_uart/boards/nrf5340dk_nrf5340_cpuapp.conf create mode 100644 samples/bluetooth/peripheral_uart/boards/nrf5340dk_nrf5340_cpuapp.conf diff --git a/samples/bluetooth/central_uart/boards/nrf5340dk_nrf5340_cpuapp.conf b/samples/bluetooth/central_uart/boards/nrf5340dk_nrf5340_cpuapp.conf new file mode 100644 index 000000000000..6003d59cdd82 --- /dev/null +++ b/samples/bluetooth/central_uart/boards/nrf5340dk_nrf5340_cpuapp.conf @@ -0,0 +1,11 @@ +# +# Copyright (c) 2025 Nordic Semiconductor ASA +# +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause +# +################################################################################ + +# Don't get entropy from HCI on nRF5340 devices +CONFIG_BT_HOST_CRYPTO_PRNG=y +CONFIG_ENTROPY_BT_HCI=n + diff --git a/samples/bluetooth/central_uart/boards/nrf54h20dk_nrf54h20_cpuapp.conf b/samples/bluetooth/central_uart/boards/nrf54h20dk_nrf54h20_cpuapp.conf index f75b773c2b75..fb5a71c62404 100644 --- a/samples/bluetooth/central_uart/boards/nrf54h20dk_nrf54h20_cpuapp.conf +++ b/samples/bluetooth/central_uart/boards/nrf54h20dk_nrf54h20_cpuapp.conf @@ -6,3 +6,7 @@ # Disable the unsupported driver CONFIG_NRFX_UARTE0=n + +# Don't get entropy from HCI on nRF54H20 devices +CONFIG_BT_HOST_CRYPTO_PRNG=y +CONFIG_ENTROPY_BT_HCI=n diff --git a/samples/bluetooth/peripheral_uart/boards/nrf5340dk_nrf5340_cpuapp.conf b/samples/bluetooth/peripheral_uart/boards/nrf5340dk_nrf5340_cpuapp.conf new file mode 100644 index 000000000000..8a8f0f7fb85c --- /dev/null +++ b/samples/bluetooth/peripheral_uart/boards/nrf5340dk_nrf5340_cpuapp.conf @@ -0,0 +1,9 @@ +# +# Copyright (c) 2025 Nordic Semiconductor +# +# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause +# + +# Don't get entropy from HCI on nRF5340 devices +CONFIG_BT_HOST_CRYPTO_PRNG=y +CONFIG_ENTROPY_BT_HCI=n diff --git a/samples/bluetooth/peripheral_uart/boards/nrf54h20dk_nrf54h20_cpuapp.conf b/samples/bluetooth/peripheral_uart/boards/nrf54h20dk_nrf54h20_cpuapp.conf index 0623953b424b..ec5f8e3fbb40 100644 --- a/samples/bluetooth/peripheral_uart/boards/nrf54h20dk_nrf54h20_cpuapp.conf +++ b/samples/bluetooth/peripheral_uart/boards/nrf54h20dk_nrf54h20_cpuapp.conf @@ -6,3 +6,7 @@ # Disable the unspupported UART0 driver CONFIG_NRFX_UARTE0=n + +# Don't get entropy from HCI on nRF54H20 devices +CONFIG_BT_HOST_CRYPTO_PRNG=y +CONFIG_ENTROPY_BT_HCI=n