What is the console setting for kernel early_printk in Linux?
I am working on an embedded Linux (kernel-5.10.24), and I enabled the early_printk in kernel configuration to help my debugging kernel.
Normally, the kernel command line has set console=ttyS0,115200 ...., and I can see the early printk logs in kernel.
But today, I changed the command line to console=ttyS1,115200 .... by mistake, and I assumed I would NOT see any kernel logs during kernel bootup.
And to my surprise, I can still see the first part of kernel log done by early printk, there is NO other logs afterwards.
So my question is how early printk output kernel logs to the right console, even the console= is set to a non-existing device (or wrong serial console) ?
评论
?
参与讨论