Linux下查看串口信息

·

使用管道命令过滤系统开机时的启动信息来得出当前系统中已存在的串口,可以看到,我的系统中存在ttyS2这个串口。

[root@localhost ~]# dmesg | grep tty
console [tty0] enabled            //这个tty0我暂时没搞懂他是什么,但他肯定不是一个物理串口
serial8250: ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A
00:04: ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha Code