Fix to improve boot time on Emulators
PATCH 1/1 Fix to improve boot time on Emulators
Use haveged instead of rngd (That gets added when adding ssh) since rngd init is taking ~7 mins during boot time
Change-Id I038c42b8a7c025959248d78940483322421ad5ef
Signed-off-by Vineeth Raveendran <[email protected]>
--- meta-arm-bsp/conf/machine/foundation-armv8.conf | 5 +++++ meta-arm-bsp/conf/machine/fvp-base.conf | 5 +++++ meta-arm-bsp/conf/machine/gem5-arm64.conf | 4 ++++ 3 files changed, 14 insertions(+)
meta-arm-bsp/conf/machine/foundation-armv8.conf +5 -0
@@ -8,3 +8,8 @@ require conf/machine/fvp-common/fvp.inc KERNEL_DEVICETREE = "arm/foundation-v8-gicv3-psci.dtb" EXTRA_IMAGEDEPENDS += "foundation-armv8-native" + +# Use haveged as a source of entropy instead of rng-tools (Needed for ssh). +# rngd (Part of rng-tools) takes ~7 mins to init resulting in a slow boot time. +PACKAGE_EXCLUDE_append = " rng-tools" +IMAGE_INSTALL_append = " haveged"
meta-arm-bsp/conf/machine/fvp-base.conf +5 -0
@@ -8,3 +8,8 @@ require conf/machine/fvp-common/fvp.inc KERNEL_DEVICETREE = "arm/fvp-base-gicv3-psci-custom.dtb" EXTRA_IMAGEDEPENDS += "fvp-base-native" + +# Use haveged as a source of entropy instead of rng-tools (Needed for ssh). +# rngd (Part of rng-tools) takes ~7 mins to init resulting in a slow boot time. +PACKAGE_EXCLUDE_append = " rng-tools" +IMAGE_INSTALL_append = " haveged"
meta-arm-bsp/conf/machine/gem5-arm64.conf +4 -0
@@ -56,3 +56,7 @@ XEN_CONFIG_EARLY_PRINTK = "vexpress" BOOT_WRAPPER_AARCH64_XEN_CMDLINE = "noreboot dom0_mem=256M console=dtuart \ dtuart=/uart@1c090000 bootscrub=0" +# Use haveged as a source of entropy instead of rng-tools (Needed for ssh). +# rngd (Part of rng-tools) takes ~7 mins to init resulting in a slow boot time. +PACKAGE_EXCLUDE_append = " rng-tools" +IMAGE_INSTALL_append = " haveged"
Signature · 1 line
2.17.1
Quoted 3 lines · Vineeth Raveendran
Use haveged instead of rngd (That gets added when adding ssh) since rngd init is taking ~7 mins during boot time
The patch has been accepted and pushed to the master branch of meta-arm. Thank you for doing this work.
Thanks,
Jon
Quoted 51 lines
Change-Id I038c42b8a7c025959248d78940483322421ad5efSigned-off-by Vineeth Raveendran <[email protected]>--- meta-arm-bsp/conf/machine/foundation-armv8.conf | 5 +++++ meta-arm-bsp/conf/machine/fvp-base.conf | 5 +++++ meta-arm-bsp/conf/machine/gem5-arm64.conf | 4 ++++ 3 files changed, 14 insertions(+)meta-arm-bsp/conf/machine/foundation-armv8.conf +5
-0@@ -8,3 +8,8 @@ require conf/machine/fvp-common/fvp.inc KERNEL_DEVICETREE = "arm/foundation-v8-gicv3-psci.dtb" EXTRA_IMAGEDEPENDS += "foundation-armv8-native" + +# Use haveged as a source of entropy instead of rng-tools (Needed for ssh). +# rngd (Part of rng-tools) takes ~7 mins to init resulting in a slow boot time. +PACKAGE_EXCLUDE_append = " rng-tools" +IMAGE_INSTALL_append = " haveged"meta-arm-bsp/conf/machine/fvp-base.conf +5
-0@@ -8,3 +8,8 @@ require conf/machine/fvp-common/fvp.inc KERNEL_DEVICETREE = "arm/fvp-base-gicv3-psci-custom.dtb" EXTRA_IMAGEDEPENDS += "fvp-base-native" + +# Use haveged as a source of entropy instead of rng-tools (Needed for ssh). +# rngd (Part of rng-tools) takes ~7 mins to init resulting in a slow boot time. +PACKAGE_EXCLUDE_append = " rng-tools" +IMAGE_INSTALL_append = " haveged"meta-arm-bsp/conf/machine/gem5-arm64.conf +4
-1@@ -56,3 +56,7 @@ XEN_CONFIG_EARLY_PRINTK = "vexpress" BOOT_WRAPPER_AARCH64_XEN_CMDLINE = "noreboot dom0_mem=256M console=dtuart \ dtuart=/uart@1c090000 bootscrub=0" +# Use haveged as a source of entropy instead of rng-tools (Needed for ssh). +# rngd (Part of rng-tools) takes ~7 mins to init resulting in a slow boot time. +PACKAGE_EXCLUDE_append = " rng-tools" +IMAGE_INSTALL_append = " haveged" --2.17.1