On 8/24/23 9:08 AM, Max Krummenacher wrote:
HiThe following two commits do set SERIAL_CONSOLES and SERIAL_CONSOLES_CHECK in the the SoC specific am62xx.inc and k3.inc. With SysVinit this does spawn a getty on each tty which is specified in the variables which also appears in /proc/consoles on the running system. 31eb1aa2 ("recipes-ti: Add recipe and patches for jailhouse support for am62xx") bc894bf5 /"conf: machine: Set common default SERIAL_CONSOLES for all K3") Adding whatever tty comes to mind doesn't hurt in a SysVinit system, however when configuring OE to use systemd as the init system a getty is spawned unconditionally on each listed tty in SERIAL_CONSOLES, SERIAL_CONSOLES_CHECK is ignored.
The fix for this we did up in meta-arago using Systemd's getty-generator [0] which spawns getty only on valid consoles and ignores SERIAL_CONSOLES. SERIAL_CONSOLES is left here only for SysVinit systems. I'm guessing you are not using meta-arago (which is fine, ideally meta-ti should be all you need). In that case, we should find a way to move this systemd PACKAGECONFIG option setting into meta-ti. Andrew [0] https://lists.yoctoproject.org/g/meta-arago/message/14632
In the light of this, shouldn't bc894bf5 be reverted, i.e. the setting of SERIAL_CONSOLES done in the <machine>.conf file and 31eb1aa2 have a follow up to move the change to SERIAL_CONSOLES? This would help people which do use systemd and include am62xx and/or k3 in there <machine>.conf file to not having a getty on an arbitrary tty. Any thoughts? Regards Max
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16890): https://lists.yoctoproject.org/g/meta-ti/message/16890 Mute This Topic: https://lists.yoctoproject.org/mt/100935821/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
