From bafedcbe4f5ea9e62a55301809fd42ecff83bca1 Mon Sep 17 00:00:00 2001 From: Ben Horgan Date: Mon, 11 Dec 2023 16:01:10 +0000 Subject: [PATCH] chore(tc): add dummy entropy to speed up the Linux boot If the kernel is post 5.19 and is configured with CONFIG_RANDOM_TRUST_BOOTLOADER=y then entropy can be passed to Linux via the device tree. This avoids delaying the Linux boot waiting for entropy. This is particularly noticeable when booting android but also speeds up the generation of the ssl certificates. Signed-off-by: Ben Horgan Change-Id: I4c6136c54f0e971802a2a9de9f88cd32b610dce9 --- fdts/tc.dts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/fdts/tc.dts b/fdts/tc.dts index 0c93bfa47..bb1f5c77f 100644 --- a/fdts/tc.dts +++ b/fdts/tc.dts @@ -26,6 +26,18 @@ chosen { stdout-path = STDOUT_PATH; + /* + * Add some dummy entropy for Linux so it + * doesn't delay the boot waiting for it. + */ + rng-seed = <0x01 0x02 0x04 0x05 0x06 0x07 0x08 \ + 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \ + 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \ + 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \ + 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \ + 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \ + 0x01 0x02 0x04 0x05 0x06 0x07 0x08 \ + 0x01 0x02 0x04 0x05 0x06 0x07 0x08 >; }; cpus {