On Tue, 2024-10-01 at 09:43 -0400, Jon Mason via lists.openembedded.org
wrote:
> Currently, KERNEL_CONSOLE has a default value of "ttyS0".  However,
> Arm
> machines and those using virtio serial prefer to use "ttyAMA0" or
> "hvc0"
> (or something else).  These are usually defined by the machine config
> file as SERIAL_CONSOLES, which has one or more entries.  Take the
> first
> one of those instead of ttyS0, but default back to ttyS0 if nothing
> is
> set.
> 
> Also, use this variable in the efi wic file instead of "ttyS0".
> Of note, this changes the default speed of the default kernel console
> from undefined (9600) to 115200.  This allows for users of the
> mkefidisk.wks to work as before but any users of this variable could
> see
> changed behavior and would now need to define this as:
> KERNEL_CONSOLE ?= "ttyS0,9600"
> 
> This includes revisions suggested by Quentin Schulz and Ross Burton.
> 
> Signed-off-by: Jon Mason <[email protected]>
> ---
>  meta/classes-recipe/image_types_wic.bbclass     | 1 +
>  meta/conf/distro/include/default-distrovars.inc | 3 ++-
>  scripts/lib/wic/canned-wks/mkefidisk.wks        | 2 +-
>  3 files changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/meta/classes-recipe/image_types_wic.bbclass
> b/meta/classes-recipe/image_types_wic.bbclass
> index 86f40633ebcb..db598e874ad7 100644
> --- a/meta/classes-recipe/image_types_wic.bbclass
> +++ b/meta/classes-recipe/image_types_wic.bbclass
> @@ -26,6 +26,7 @@ WICVARS ?= "\
>       INITRD \
>       INITRD_LIVE \
>       ISODIR \
> +        KERNEL_CONSOLE \

I'll fix that whitespace rather than ask for a v5...

Cheers,

Richard
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#205168): 
https://lists.openembedded.org/g/openembedded-core/message/205168
Mute This Topic: https://lists.openembedded.org/mt/108758978/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to