All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Mason <jdmason@kudzu.us>
To: Mikko Rapeli <mikko.rapeli@linaro.org>
Cc: meta-arm@lists.yoctoproject.org
Subject: Re: [PATCH master-next 2/2] qemuarm*-secureboot.conf: fix kernel serial consoles
Date: Fri, 4 Oct 2024 10:01:41 -0400	[thread overview]
Message-ID: <Zv_1RfzWjJp6DJtJ@kudzu.us> (raw)
In-Reply-To: <20241004130427.217611-2-mikko.rapeli@linaro.org>

On Fri, Oct 04, 2024 at 04:04:27PM +0300, Mikko Rapeli wrote:
> 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
> 
> 

I'm not inclined to include this patch, and it should be unnecessary
soon (and I'll need to revert it then).  The patch that adds that
KERNEL_CONSOLE is in poky/oe-core master-next.  So, it should be very
soon.  The SERIAL_CONSOLES line should be unnecessary, and that should
be inherited from qemuarm/qemuarm64.

Thanks,
Jon


  reply	other threads:[~2024-10-04 14:01 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 ` [PATCH master-next 2/2] qemuarm*-secureboot.conf: fix kernel serial consoles Mikko Rapeli
2024-10-04 14:01   ` Jon Mason [this message]
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=Zv_1RfzWjJp6DJtJ@kudzu.us \
    --to=jdmason@kudzu.us \
    --cc=meta-arm@lists.yoctoproject.org \
    --cc=mikko.rapeli@linaro.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.