From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 26 May 2025 12:11:55 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uJUoF-000UAk-2C for lore@lore.pengutronix.de; Mon, 26 May 2025 12:11:55 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uJUoE-0003J2-V0; Mon, 26 May 2025 12:11:54 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1uJUoB-000330-4c; Mon, 26 May 2025 12:11:51 +0200 Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1uJUoA-000ERf-2V; Mon, 26 May 2025 12:11:50 +0200 Received: from rhi by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1uJUoA-008CCz-2A; Mon, 26 May 2025 12:11:50 +0200 From: Roland Hieber To: distrokit@pengutronix.de Date: Mon, 26 May 2025 12:11:47 +0200 Message-Id: <20250526101147.1953428-11-rhi@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250526101147.1953428-1-rhi@pengutronix.de> References: <20250526101147.1953428-1-rhi@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [DistroKit] [PATCH 11/11] v7a: barebox: enable HWRNG drivers and allow fallback to PRNG X-BeenThere: distrokit@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Roland Hieber Sender: "DistroKit" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: distrokit-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Without ALLOW_PRNG_FALLBACK, barebox prints an unsightly error message on boot: ERROR: no HWRNG available! Since we don't have HWRNG drivers for all available platforms, enable those that we have (RPi and AM33xx). For the other platforms allow fallback to the PRNG, which will at least only print a warning on boot on platforms without HWRNG: WARNING: falling back to Pseudo RNG source! … but in this case, this is expected. Signed-off-by: Roland Hieber --- configs/platform-v7a/barebox.config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/platform-v7a/barebox.config b/configs/platform-v7a/barebox.config index 4780b6493a7a..86cb40acbf17 100644 --- a/configs/platform-v7a/barebox.config +++ b/configs/platform-v7a/barebox.config @@ -1106,9 +1106,9 @@ CONFIG_HWRNG=y # CONFIG_HW_RANDOM_TIMERIOMEM is not set CONFIG_HWRNG_STM32=y CONFIG_HW_RANDOM_OPTEE=y -# CONFIG_HW_RANDOM_BCM2835 is not set +CONFIG_HW_RANDOM_BCM2835=y # CONFIG_HW_RANDOM_IPROC_RNG200 is not set -# CONFIG_HW_RANDOM_OMAP is not set +CONFIG_HW_RANDOM_OMAP=y # # DMA support @@ -1380,7 +1380,7 @@ CONFIG_IMAGE_SPARSE=y CONFIG_STMP_DEVICE=y CONFIG_LIBFDT=y # CONFIG_RATP is not set -# CONFIG_ALLOW_PRNG_FALLBACK is not set +CONFIG_ALLOW_PRNG_FALLBACK=y # CONFIG_CRC_CCITT is not set CONFIG_CRC8=y -- 2.39.5