serial-getty at ttyS0.service does not start
Rainer Dorsch
ml at bokomoko.de
Mon Jan 8 21:19:40 GMT 2024
Hi Michael,
thanks for your quick reply.
Am Sonntag, 7. Januar 2024, 15:06:22 CET schrieb Michael Biebl:
> Am 07.01.24 um 14:45 schrieb Rainer Dorsch:
>
> > Hello,
> >
> > I tried to start a serial console on ttyS0, but when I try to start the
> > serial-getty service, it does not return:
>
>
> Looks like the service is waiting for the device to appear.
> Do you have a /dev/ttyS0 device?
I get kernel messages through that device on the serial interface using
console=ttyS0,115200n8 as kernel parameter.
> Can you show the output of
>
> ls -la /dev/ttyS0
> systemctl status dev-ttyS0.device
> udevadm info /dev/ttyS0
root at master:~# ls -la /dev/ttyS0
crw-rw---- 1 root dialout 4, 64 Jan 8 22:14 /dev/ttyS0
root at master:~# systemctl status dev-ttyS0.device
● dev-ttyS0.device - /dev/ttyS0
Follows: unit currently follows state of sys-devices-pnp0-00:06-tty-
ttyS0.device
Loaded: loaded
Active: active (plugged) since Sun 2024-01-07 14:35:33 CET; 1 day 7h ago
Device: /sys/devices/pnp0/00:06/tty/ttyS0
Jan 07 14:35:33 master systemd[1]: Found device dev-ttyS0.device - /dev/ttyS0.
root at master:~# udevadm info /dev/ttyS0
P: /devices/pnp0/00:06/tty/ttyS0
M: ttyS0
R: 0
U: tty
D: c 4:64
N: ttyS0
L: 0
E: DEVPATH=/devices/pnp0/00:06/tty/ttyS0
E: DEVNAME=/dev/ttyS0
E: MAJOR=4
E: MINOR=64
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=3388940
E: ID_MM_CANDIDATE=1
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:
root at master:~#
Do you see anything suspicious in the output?
Thanks
Rainer
--
Rainer Dorsch
http://bokomoko.de/
More information about the Pkg-systemd-maintainers
mailing list