Alex Shumsky ed4ae73862 rockchip: board: Increase rng-seed size to make it sufficient for modern Linux
Increase rng-seed size to make Linux happy and initialize rng pool instantly.
Linux 5.19+ requires 32 bytes of entropy to initialize random pool, but u-boot
currently provides only 8 bytes.
Linux 5.18 and probably some versions before it used to require 64 bytes.
Bump min value to 64 bytes to be on a safe side.

Boot with 8 byte rng-seed (Linux 6.11):
    # dmesg | grep crng
    [   12.089286] random: crng init done
Boot with 32 byte rng-seed (Linux 6.11):
    # dmesg | grep crng
    [    0.000000] random: crng init done

Linux source references:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/char/random.c?h=v5.19#n551
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/char/random.c?h=v5.18#n236

Signed-off-by: Alex Shumsky <alexthreed@gmail.com>
Fixes: d2048bafae40 ("rockchip: board: Add board_rng_seed() for all Rockchip devices")
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2024-10-26 10:46:47 +08:00
..
2024-10-17 03:12:47 +02:00
2022-10-30 20:07:16 +01:00
2024-10-17 03:12:47 +02:00
2023-08-25 13:54:33 -04:00
2023-08-08 10:22:03 -04:00
2024-07-29 15:01:04 -06:00
2023-12-21 08:54:37 -05:00
2024-10-24 11:20:58 -06:00
2024-07-29 15:01:04 -06:00
2024-08-26 14:05:38 -06:00
2024-02-13 15:38:49 -05:00
2024-07-29 15:01:04 -06:00
2024-08-02 15:16:51 -03:00
2024-10-23 06:52:38 +02:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-09-12 17:35:37 +02:00
2024-06-14 12:59:07 -06:00
2024-08-26 14:05:38 -06:00
2024-10-18 14:10:22 -06:00
2024-07-29 15:01:04 -06:00
2024-08-15 14:35:15 -06:00
2023-05-02 14:23:34 -04:00
2024-09-24 13:41:20 -06:00
2023-01-20 12:27:06 -05:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2023-11-07 14:50:51 -05:00
2024-07-29 15:01:04 -06:00
2024-08-26 14:05:38 -06:00
2024-08-13 06:23:15 +02:00
2023-04-27 13:51:06 -04:00
2023-12-21 11:59:49 -05:00
2023-08-19 04:12:53 +02:00
2024-10-10 16:02:20 -06:00
2022-10-30 20:07:17 +01:00
2024-10-11 11:44:47 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2023-12-21 08:54:37 -05:00
2023-10-11 15:43:55 -04:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2024-10-24 11:21:48 -06:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2023-12-21 08:54:37 -05:00
2024-10-16 11:11:56 -06:00
2024-09-30 17:48:12 -06:00
2024-07-29 15:01:04 -06:00
2023-01-16 18:01:10 +08:00
2024-09-12 17:35:37 +02:00
2023-12-21 08:54:37 -05:00
2024-07-29 15:01:04 -06:00
2024-07-29 15:01:04 -06:00
2023-10-09 15:24:31 -04:00
2023-02-10 07:41:40 -05:00
2024-07-29 15:01:04 -06:00
2024-06-30 13:58:31 +02:00
2024-07-29 15:01:04 -06:00
2022-12-07 16:04:17 -05:00
2024-07-29 15:01:04 -06:00
2024-10-22 19:51:23 +02:00
2024-05-22 08:55:29 -06:00
2024-07-29 15:01:04 -06:00