> If you're running Linux in the target, configure to run a getty on that
> serial port, with /etc/inittab or with systemd [email protected].
I should add that if you want Linux kernel log to go to a serial
port, you have to arrange that through the kernel boot argument
(how else will the kernel know to do it?), like
console=ttyS0,115200n8 earlycon=ttyS0,115200n8 loglevel=8
where ttyS0 name and the baudrate arguments will depend on the emulated
UART hardware model.
I mostly do this on ARM targets, so if there's something special about
serial ports on x86 targets somebody here will probably speak up.