Hello Andrew

On Thu, Aug 24, 2023 at 4:29 PM Andrew Davis <[email protected]> wrote:
>
> On 8/24/23 9:08 AM, Max Krummenacher wrote:
> > Hi
> >
> > The 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.

Thanks for the reply.
Yes, we are not using meta-arago.
I wasn't aware that you can make a systemd behaving the same as SysVinit
in regard to SERIAL_CONSOLES and spawning a getty.
For us the way forward will be to add the PACKAGECONFIG to our distro
and be done with. I currently don't see any drawbacks for any of our other
machines.

Regards
Max

>
> 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 (#16892): 
https://lists.yoctoproject.org/g/meta-ti/message/16892
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]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to