screen 打开串口

screen /dev/ttyUSB0 9600windows

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

# 9600 波特率, 与对端同样就能够日志

固然还有其余的一些打开窗口的选项terminal

 

screen 的选项it

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

 

 

配置grub bootloader的串口配置配置

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

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

相关文章
相关标签/搜索