genericarm64: add ttyMSM0 serial console
PATCH 1/1 genericarm64: add ttyMSM0 serial console
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.
--- meta-yocto-bsp/conf/machine/genericarm64.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-yocto-bsp/conf/machine/genericarm64.conf +1 -1
@@ -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
Signature · 1 line
2.34.1
Hi,
Quoted 7 lines · Vivek Puar via poky
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_CONSOLESso 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