>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Linux设备驱动开发者群落" group.
> To post to this group, send email to linux...@googlegroups.com
> To unsubscribe from this group, send email to
> linuxdriver...@googlegroups.com
> For more options, visit this group at
> http://groups.google.gr/group/linuxdriver?hl=zh-CN
>
> To unsubscribe from this group, send email to
> linuxdriver+unsubscribegooglegroups.com or reply to this email with the
> words "REMOVE ME" as the subject.
>
是的,boot console只是在early printk阶段有效,之后转入console=指定的设备作为printk.
我出现的问题是:
。。。。。。。。。。。。。。。。。。。。。。。。
>> RPC: Registered udp transport module.
>>> RPC: Registered tcp transport module.
>>> turn off boot console early0
内核跑到这里来就死掉了。 所以没有打印信息了。
但是我在console已经定义了ttyS2 。虽然 console early0已经关闭掉了,但是ttyS2应该有信息打印出来啊。可惜结果没有。 用的8250.c 的驱动,支持1665这个标准的。
还有一个问题 “>>> turn off boot console early0”之前的打印语句应该都是 console early0 打印出来的吧?
把你的cmd line贴出来,另外,你内核配置使能了CONFIG_SERIAL_8250_CONSOLE吗?
drivers/serial/Kconfig:
config SERIAL_8250_CONSOLE
bool "Console on 8250/16550 and compatible serial port"
depends on SERIAL_8250=y
select SERIAL_CORE_CONSOLE
---help---
If you say Y here, it will be possible to use a serial port as the
system console (the system console is the device which receives all
kernel messages and warnings and which allows logins in single user
mode). This could be useful if some terminal or printer is connected
to that serial port.
Even if you say Y here, the currently visible virtual console
(/dev/tty0) will still be used as the system console by default, but
you can alter that using a kernel command line option such as
"console=ttyS1". (Try "man bootparam" or see the documentation of
your boot loader (grub or lilo or loadlin) about how to pass options
to the kernel at boot time.)
If you don't have a VGA card installed and you say Y here, the
kernel will automatically use the first serial line, /dev/ttyS0, as
system console.
You can set that using a kernel command line option such as
"console=uart8250,io,0x3f8,9600n8"
"console=uart8250,mmio,0xff5e0000,115200n8".
and it will switch to normal serial console when the corresponding
port is ready.
"earlycon=uart8250,io,0x3f8,9600n8"
"earlycon=uart8250,mmio,0xff5e0000,115200n8".
it will not only setup early console.
If unsure, say N.
