[PATCH v2] configs: KASLR OPTEE RNG support for K3 devices

Gokul g-praveen at ti.com
Thu Jul 10 11:59:22 CEST 2025


From: Gokul Praveen <g-praveen at ti.com>

KASLR, or Kernel Address Space Layout Randomization, is a security
feature in the Linux kernel that randomizes the memory location
where the kernel is loaded during boot.

OP-TEE RNG is a Random Number Generator (RNG) component within the
Open Portable Trusted Execution Environment (OP-TEE) which provides
a random number to U-BOOT and U-BOOT provides this random number
as seed value to the LINUX kernel for KASLR.

Add KASLR OPTEE RNG support across K3 devices by enabling the required
configs.

Signed-off-by: Gokul Praveen <g-praveen at ti.com>
---
v2<==> v1
===========
* Added 'if' condition for configs to avoid enabling this feature
  in R5.

Boot logs Link :

https://gist.github.com/GokulPraveen2001/44aa8c0962438c12ffc55e6ed67742e5
---
 arch/arm/Kconfig | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 7282c4123b0..cd27e5a5422 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -805,6 +805,9 @@ config ARCH_K3
 	select REGEX
 	select FIT_SIGNATURE if ARM64
 	imply TI_SECURE_DEVICE
+	imply DM_RNG if ARM64
+	imply TEE if ARM64
+	imply OPTEE if ARM64
 
 config ARCH_OMAP2PLUS
 	bool "TI OMAP2+"
-- 
2.34.1



More information about the U-Boot mailing list