Skip to contentSkip to conversation

qemuarm: check serial consoles vs /proc/consoles

PATCH New Trevor Gamblin 1 participant 1 message May 28, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemuarm: check serial consoles vs /proc/consoles

Note that this patch affects qemuarm AND qemuarm64.

When booting a VM and during operation, the following message periodically appears:

INIT: Id "hvc0" respawning too fast: disabled for 5 minutes

This is because hvc0 is specified in SERIAL_CONSOLES in qemuarm.conf and qemuarm64.conf, but it is not in /proc/consoles and SERIAL_CONSOLES_CHECK is not specified, leaving getty to attempt to enable hvc0. Add SERIAL_CONSOLES_CHECK to both conf files so that hvc0 isn't enabled if it hasn't been set there or in local.conf.

---
 meta/conf/machine/qemuarm.conf   | 1 +
 meta/conf/machine/qemuarm64.conf | 1 +
 2 files changed, 2 insertions(+)
meta/conf/machine/qemuarm.conf +1 -0
index 367fcef019..4e605d3a92 100644
@@ -8,6 +8,7 @@ require conf/machine/include/qemu.inc
 KERNEL_IMAGETYPE = "zImage"
 
 SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
+SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
 
 # For runqemu
 QB_SYSTEM_NAME = "qemu-system-arm"
meta/conf/machine/qemuarm64.conf +1 -0
index 7965fac71e..e8aac38475 100644
@@ -8,6 +8,7 @@ require conf/machine/include/qemu.inc
 KERNEL_IMAGETYPE = "Image"
 
 SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
+SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
 
 # For runqemu
 QB_SYSTEM_NAME = "qemu-system-aarch64"
Signature · 1 line
2.24.1