From 0828d2ab2ab5d046087c8d1b150ad81b725510d5 Mon Sep 17 00:00:00 2001 From: Alex Shumsky Date: Fri, 11 Oct 2024 22:59:00 +0300 Subject: [PATCH] rockchip64/uboot: increase rng-seed size to make it sufficient for modern linux --- .../v2024.07/rockchip-fix-rng-seed.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 patch/u-boot/v2024.07/rockchip-fix-rng-seed.patch diff --git a/patch/u-boot/v2024.07/rockchip-fix-rng-seed.patch b/patch/u-boot/v2024.07/rockchip-fix-rng-seed.patch new file mode 100644 index 000000000000..428b4607dc08 --- /dev/null +++ b/patch/u-boot/v2024.07/rockchip-fix-rng-seed.patch @@ -0,0 +1,30 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Alex Shumsky +Date: Tue, 11 Oct 2024 17:54:53 +0000 +Subject: Make rockchip rng-seed sufficient size to initialize modern linux + +Signed-off-by: Alex Shumsky +--- + 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 +