* [Buildroot] Systemd default console
@ 2019-09-20 13:38 Norbert Lange
2019-09-20 14:47 ` Carlos Santos
0 siblings, 1 reply; 4+ messages in thread
From: Norbert Lange @ 2019-09-20 13:38 UTC (permalink / raw)
To: buildroot
Hello,
I tried systemd with busybox for the first time and I have now the
problem that login vie serial is not working correctly.
- busybox creates the link
/etc/systemd/system/getty.target.wants/console-getty.service, which
starts a getty on ttyS0
- systemd itself create
/run/systemd/generator/getty.target.wants/serial-getty at ttyS0.service
automatically (no idea when and how)
in and output is perfectly garbled until one of those services is killed.
Given that systemd automatically picks up the getty from the
commandline, is there any reason for busybox to setup /dev/console?
kind regards, Norbert
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Systemd default console
2019-09-20 13:38 [Buildroot] Systemd default console Norbert Lange
@ 2019-09-20 14:47 ` Carlos Santos
2019-09-20 14:51 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Carlos Santos @ 2019-09-20 14:47 UTC (permalink / raw)
To: buildroot
On Fri, Sep 20, 2019 at 10:39 AM Norbert Lange <nolange79@gmail.com> wrote:
>
> Hello,
>
> I tried systemd with busybox for the first time and I have now the
> problem that login vie serial is not working correctly.
>
> - busybox creates the link
> /etc/systemd/system/getty.target.wants/console-getty.service, which
> starts a getty on ttyS0
> - systemd itself create
> /run/systemd/generator/getty.target.wants/serial-getty at ttyS0.service
> automatically (no idea when and how)
>
> in and output is perfectly garbled until one of those services is killed.
> Given that systemd automatically picks up the getty from the
> commandline, is there any reason for busybox to setup /dev/console?
Do not use BR2_TARGET_GENERIC_GETTY_PORT with systemd.
--
Carlos Santos <unixmania@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Systemd default console
2019-09-20 14:47 ` Carlos Santos
@ 2019-09-20 14:51 ` Thomas Petazzoni
2019-09-20 15:16 ` Carlos Santos
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2019-09-20 14:51 UTC (permalink / raw)
To: buildroot
On Fri, 20 Sep 2019 11:47:08 -0300
Carlos Santos <unixmania@gmail.com> wrote:
> > - busybox creates the link
> > /etc/systemd/system/getty.target.wants/console-getty.service, which
> > starts a getty on ttyS0
> > - systemd itself create
> > /run/systemd/generator/getty.target.wants/serial-getty at ttyS0.service
> > automatically (no idea when and how)
> >
> > in and output is perfectly garbled until one of those services is killed.
> > Given that systemd automatically picks up the getty from the
> > commandline, is there any reason for busybox to setup /dev/console?
>
> Do not use BR2_TARGET_GENERIC_GETTY_PORT with systemd.
There's a whole bunch of logic at
https://git.buildroot.org/buildroot/tree/package/systemd/systemd.mk#n435
to do stuff depending on the value of BR2_TARGET_GENERIC_GETTY_PORT. So
it seems kind of odd to recommend to not use
BR2_TARGET_GENERIC_GETTY_PORT with systemd. Shouldn't we fix what's in
systemd.mk so that it works as expected ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] Systemd default console
2019-09-20 14:51 ` Thomas Petazzoni
@ 2019-09-20 15:16 ` Carlos Santos
0 siblings, 0 replies; 4+ messages in thread
From: Carlos Santos @ 2019-09-20 15:16 UTC (permalink / raw)
To: buildroot
On Fri, Sep 20, 2019 at 11:51 AM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> On Fri, 20 Sep 2019 11:47:08 -0300
> Carlos Santos <unixmania@gmail.com> wrote:
>
> > > - busybox creates the link
> > > /etc/systemd/system/getty.target.wants/console-getty.service, which
> > > starts a getty on ttyS0
> > > - systemd itself create
> > > /run/systemd/generator/getty.target.wants/serial-getty at ttyS0.service
> > > automatically (no idea when and how)
> > >
> > > in and output is perfectly garbled until one of those services is killed.
> > > Given that systemd automatically picks up the getty from the
> > > commandline, is there any reason for busybox to setup /dev/console?
> >
> > Do not use BR2_TARGET_GENERIC_GETTY_PORT with systemd.
>
> There's a whole bunch of logic at
> https://git.buildroot.org/buildroot/tree/package/systemd/systemd.mk#n435
> to do stuff depending on the value of BR2_TARGET_GENERIC_GETTY_PORT. So
> it seems kind of odd to recommend to not use
> BR2_TARGET_GENERIC_GETTY_PORT with systemd. Shouldn't we fix what's in
> systemd.mk so that it works as expected ?
I will investigate this. There is already a related bug but it got
stuck waiting for an answer from the OP:
https://bugs.busybox.net/show_bug.cgi?id=11766
--
Carlos Santos <unixmania@gmail.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-09-20 15:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-20 13:38 [Buildroot] Systemd default console Norbert Lange
2019-09-20 14:47 ` Carlos Santos
2019-09-20 14:51 ` Thomas Petazzoni
2019-09-20 15:16 ` Carlos Santos
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.