1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
root@debian-9:~# dmesg | grep tty
[ 0.000000] console [tty0] enabled
[ 0.700084] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
root@debian-9:~# systemctl start serial-getty@ttyS0
root@debian-9:~# systemctl status serial-getty@ttyS0
● [email protected] - Serial Getty on ttyS0
Loaded: loaded (/lib/systemd/system/[email protected]; disabled; vendor preset: enabled)
Active: active (running) since Thu 2024-07-25 14:52:28 CST; 13s ago
Docs: man:agetty(8)
man:systemd-getty-generator(8)
http://0pointer.de/blog/projects/serial-console.html
Main PID: 829 (agetty)
Tasks: 1 (limit: 4915)
CGroup: /system.slice/system-serial\x2dgetty.slice/[email protected]
└─829 /sbin/agetty --keep-baud 115200,38400,9600 ttyS0 vt220
Jul 25 14:52:28 debian-9 systemd[1]: Started Serial Getty on ttyS0.
|