screen 打开串口

screen /dev/ttyUSB0 9600

# /dev/ttyUSB0 的一个usb转serial port的设备, 具体是什么, 一个在内核日志中可以看到

# 9600 波特率, 与对端一样就可以

当然还有其他的一些打开窗口的选项

screen 的选项

 -L   tells screen to turn on automatic output logging for the windows.

配置grub bootloader的串口配置

serial --unit=0 --speed=9600
terminal --timeout=5 serial console

title CentOS (2.6.32)
        root (hd0,0)
        kernel ... console=tty0 console=ttyS0,9600
        initrd ...

原文地址:https://www.cnblogs.com/kwingmei/p/3788494.html