armbian_build/patch/u-boot/v2024.07/rockchip-fix-rng-seed.patch

31 lines
918 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Alex Shumsky <alexthreed@gmail.com>
Date: Fri, 11 Oct 2024 17:54:53 +0000
Subject: Make rockchip rng-seed sufficient size to initialize modern linux
Signed-off-by: Alex Shumsky <alexthreed@gmail.com>
---
arch/arm/mach-rockchip/board.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c
index cd226844b6..e84fc0c7fa 100644
--- a/arch/arm/mach-rockchip/board.c
+++ b/arch/arm/mach-rockchip/board.c
@@ -478,11 +478,11 @@ __weak int misc_init_r(void)
/* Use hardware rng to seed Linux random. */
__weak int board_rng_seed(struct abuf *buf)
{
struct udevice *dev;
- size_t len = 0x8;
+ size_t len = 32;
u64 *data;
data = malloc(len);
if (!data) {
printf("Out of memory\n");
--
Created with Armbian build tools https://github.com/armbian/build