]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemuriscv: check serial consoles w.r.t. /proc/consoles
authorKhem Raj <raj.khem@gmail.com>
Mon, 14 Dec 2020 06:01:25 +0000 (22:01 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Dec 2020 22:52:13 +0000 (22:52 +0000)
qemuriscv enables hvc0 along with ttyS0, however its not enabled in
/proc/consoles, getty tries to enable it in inittab and erroring out

Fixes below message with sysvinit

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

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/machine/include/riscv/qemuriscv.inc

index 0e88c91aa6013f089de4ee2b3a0fc2d12f2ba99a..47d7e9b174a61c03ec7bf0efd1785c3f47699210 100644 (file)
@@ -10,6 +10,7 @@ KERNEL_IMAGETYPES += "uImage"
 KEEPUIMAGE = "no"
 
 SERIAL_CONSOLES ?= "115200;ttyS0 115200;hvc0"
+SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
 
 IMAGE_FSTYPES += "ext4 wic.qcow2"