From: Mikko Rapeli <mikko.rapeli@linaro.org>
To: meta-arm@lists.yoctoproject.org
Cc: Mikko Rapeli <mikko.rapeli@linaro.org>
Subject: [PATCH master-next 2/2] qemuarm*-secureboot.conf: fix kernel serial consoles
Date: Fri, 4 Oct 2024 16:04:27 +0300 [thread overview]
Message-ID: <20241004130427.217611-2-mikko.rapeli@linaro.org> (raw)
In-Reply-To: <20241004130427.217611-1-mikko.rapeli@linaro.org>
Kernel boot serial console is not visible in runqemu stdout.
Fix this by setting SERIAL_CONSOLES to include ttyAMA0
and use that as KERNEL_CONSOLE in .wks file bootloader
configuration which assembles the kernel command line.
Now kernel boot log is again visible, incase there are problems
with it.
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
meta-arm/conf/machine/qemuarm-secureboot.conf | 3 +++
meta-arm/conf/machine/qemuarm64-secureboot.conf | 3 +++
2 files changed, 6 insertions(+)
diff --git a/meta-arm/conf/machine/qemuarm-secureboot.conf b/meta-arm/conf/machine/qemuarm-secureboot.conf
index f08b84fe..c01ca47a 100644
--- a/meta-arm/conf/machine/qemuarm-secureboot.conf
+++ b/meta-arm/conf/machine/qemuarm-secureboot.conf
@@ -21,3 +21,6 @@ WKS_FILE_DEPENDS = "trusted-firmware-a"
IMAGE_BOOT_FILES = "${KERNEL_IMAGETYPE}"
MACHINE_FEATURES += "optee-ftpm"
+
+SERIAL_CONSOLES = "115200;ttyAMA0"
+KERNEL_CONSOLE ?= "${@','.join(d.getVar('SERIAL_CONSOLES').split(' ')[0].split(';')[::-1]) or 'ttyS0'}"
diff --git a/meta-arm/conf/machine/qemuarm64-secureboot.conf b/meta-arm/conf/machine/qemuarm64-secureboot.conf
index 78a39c03..2f8c093a 100644
--- a/meta-arm/conf/machine/qemuarm64-secureboot.conf
+++ b/meta-arm/conf/machine/qemuarm64-secureboot.conf
@@ -22,3 +22,6 @@ WKS_FILE_DEPENDS = "trusted-firmware-a"
IMAGE_BOOT_FILES = "${KERNEL_IMAGETYPE}"
MACHINE_FEATURES += "optee-ftpm"
+
+SERIAL_CONSOLES = "115200;ttyAMA0"
+KERNEL_CONSOLE ?= "${@','.join(d.getVar('SERIAL_CONSOLES').split(' ')[0].split(';')[::-1]) or 'ttyS0'}"
--
2.34.1
next prev parent reply other threads:[~2024-10-04 13:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-04 13:04 [PATCH master-next 1/2] ci/uefi-secureboot.yml: include ci/meta-secure-core.yml Mikko Rapeli
2024-10-04 13:04 ` Mikko Rapeli [this message]
2024-10-04 14:01 ` [PATCH master-next 2/2] qemuarm*-secureboot.conf: fix kernel serial consoles Jon Mason
2024-10-04 14:07 ` Mikko Rapeli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241004130427.217611-2-mikko.rapeli@linaro.org \
--to=mikko.rapeli@linaro.org \
--cc=meta-arm@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.