- 论坛徽章:
- 0
|
[root@bogon ~]# uname -r
2.6.18-128.el5
[root@bogon ~]# ls /dev/ttyS*
/dev/ttyS0 /dev/ttyS1 /dev/ttyS2 /dev/ttyS3
以上的四个串口终端是由initrd在内存中生成的
initrd中的init执行了以下操作
mknod /dev/console c 5 1
。。。。。。
mknod /dev/ttyS0 c 4 64
mknod /dev/ttyS1 c 4 65
mknod /dev/ttyS2 c 4 66
mknod /dev/ttyS3 c 4 67
去找一下linux console access的说明,
the kernel normally maps /dev/console to the physical console by default,
the kernel can make some other device than the physical console the system console by specifying an option 'console=*'on its command line
我没有能力再来表述了,console=*是由内核来决定的 |
|