diff mbox series

genericarm64: add ttyMSM0 serial console

Message ID 20261124102708.1431357-1-vpuar@qti.qualcomm.com (mailing list archive)
State New
Headers show
Series genericarm64: add ttyMSM0 serial console | expand

Commit Message

Vivek Puar Nov. 24, 2026, 10:27 a.m. UTC
Some platforms using the MSM serial driver expose the debug UART as
ttyMSM0. The genericarm64 SysVinit image does not currently start a getty
on this console, preventing access to the login prompt even when ttyMSM0
is selected as the kernel console.

Add ttyMSM0 to SERIAL_CONSOLES so sysvinit-inittab creates the
corresponding getty entry.

Signed-off-by: Vivek Puar <vpuar@qti.qualcomm.com>
---
 meta-yocto-bsp/conf/machine/genericarm64.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mikko Rapeli Nov. 24, 2026, 10:43 a.m. UTC | #1
Hi,

On Tue, Nov 24, 2026 at 03:57:08PM +0530, Vivek Puar via poky wrote:
> Some platforms using the MSM serial driver expose the debug UART as
> ttyMSM0. The genericarm64 SysVinit image does not currently start a getty
> on this console, preventing access to the login prompt even when ttyMSM0
> is selected as the kernel console.
> 
> Add ttyMSM0 to SERIAL_CONSOLES so sysvinit-inittab creates the
> corresponding getty entry.

AFAIK this kind of changes have been rejected in the past. Instead there
were requests from Ross to implement dynamic tty detection also on sysvinit.

Since this detection has not been worked on we have changed testing focus to
systemd variants where tty auto detection works out of the box. These variants
are default "nodistro" with INIT_MANAGER = "systemd" and "poky-altcfg" distro.
Latter is sadly picking up the older available 6.18 kernel which may not be
suitable for all HW targets.

Also, non-existing TTYs in SERIAL_CONSOLES may have negative effects with systemd
as well when systemd waits until timeout for these devices to appear.

Cheers,

-Mikko
diff mbox series

Patch

diff --git a/meta-yocto-bsp/conf/machine/genericarm64.conf b/meta-yocto-bsp/conf/machine/genericarm64.conf
index e10bec94..3b9aea36 100644
--- a/meta-yocto-bsp/conf/machine/genericarm64.conf
+++ b/meta-yocto-bsp/conf/machine/genericarm64.conf
@@ -41,7 +41,7 @@  WKS_FILE ?= "genericarm64.wks.in"
 EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boot", "grub-efi", d)}"
 
 # Try to bring up a selection of physical or virtual serial consoles
-SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0 115200;ttyS0 115200;ttyS1 115200;ttyS2 115200;ttyPS1"
+SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0 115200;ttyS0 115200;ttyS1 115200;ttyS2 115200;ttyPS1 115200;ttyMSM0"
 
 # Allow u-boot to be built for use with qemu-system-aarch64.
 # This u-boot is _not_ suitable for use with real hardware, and the expectation