Skip to contentSkip to conversation

Fix to improve boot time on Emulators

PATCH In review [email protected] 2 participants 2 messages Feb 4, 2020 – Feb 5, 2020

lore
Share & tools
lore
#0 lore raw

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
---
 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
index 9a3f43f..10d3eea 100644
@@ -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
index 5592dc1..4c79250 100644
@@ -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
index 54f7ede..4775940 100644
@@ -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
#1 lore raw
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 I038c42b8a7c025959248d78940483322421ad5ef
---
 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
index 9a3f43f..10d3eea 100644
@@ -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
index 5592dc1..4c79250 100644
@@ -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
index 54f7ede..4775940 100644
@@ -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