-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Populate /chosen/rng-seed with the HWRNG #1595
Comments
There is an internal patch open for review that adds the rng-seed property. Assuming no problems are found it should be merged in the next few days, at which point it can begin its journey to users. |
kernel: KMS and FKMS right/bottom margin fixes See: raspberrypi/linux#4451 kernel: overlays: Add overlay for Si446x Transceiver SPI See: raspberrypi/linux#4430 kernel: ARM: dts: bcm2711: fold in the correct interrupt kernel: dtoverlays: Add overlay for cap1106 capacitive touch sensor See: raspberrypi/linux#4442 firmware: arm_loader: Add rng-seed DT property See: #1595 firmware: isp: Set the YUV420/YVU420 format stride to 64 byte
kernel: KMS and FKMS right/bottom margin fixes See: raspberrypi/linux#4451 kernel: overlays: Add overlay for Si446x Transceiver SPI See: raspberrypi/linux#4430 kernel: ARM: dts: bcm2711: fold in the correct interrupt kernel: dtoverlays: Add overlay for cap1106 capacitive touch sensor See: raspberrypi/linux#4442 firmware: arm_loader: Add rng-seed DT property See: raspberrypi/firmware#1595 firmware: isp: Set the YUV420/YVU420 format stride to 64 byte
There is a new firmware available from this repo and installable with |
I believe the kernel config option |
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
|
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
kernel: dtoverlays: Add orientation (and rotation) parameter to sensor overlays See: raspberrypi/linux#4501 kernel: Adding Ablic S35390A to i2c-rtc-common.dtsi See: raspberrypi/linux#4492 kernel: configs: Add RANDOM_TRUST_BOOTLOADER=y See: #1595 kernel: char: vc_mem: Delete dead code firmware: arm_dt: Limit CMA to 256MB if total_mem < 2GB or gpu_mem > 256MB See: #1603
kernel: dtoverlays: Add orientation (and rotation) parameter to sensor overlays See: raspberrypi/linux#4501 kernel: Adding Ablic S35390A to i2c-rtc-common.dtsi See: raspberrypi/linux#4492 kernel: configs: Add RANDOM_TRUST_BOOTLOADER=y See: raspberrypi/firmware#1595 kernel: char: vc_mem: Delete dead code firmware: arm_dt: Limit CMA to 256MB if total_mem < 2GB or gpu_mem > 256MB See: raspberrypi/firmware#1603
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
See: raspberrypi/firmware#1595 Signed-off-by: Phil Elwell <[email protected]>
Thanks for the quick fix!
Sort-of: AIUI |
Already done. |
Linux supports adding "bootloader randomness" from the device tree via /chosen/rng-seed. This happens in early_init_dt_scan_chosen() just after the command line is copied from /chosen/bootargs, and has several advantages over other methods of adding HWRNG entropy to the kernel entropy pool (mainly that it happens very early in the boot process).
The bootloader (probably start*.elf) should populate /chosen/rng-seed with ~64 bytes from the HWRNG. (I assume it does not currently do this, because start*.elf contains the string
/chosen/kaslr-seed
but notrng-seed
.)Notes:
tp_printk trace_event=random:mix_pool_bytes
does not catch it. (Perhaps there is a way to enable it in the compile-time config?)./chosen/rng-seed
with a misspelling (e.g./chosen/rng-seee
) which would not be removed.System
The text was updated successfully, but these errors were encountered: