linux内核启动过程中Warning: unable to open an initial console

在linux启动的过程中,当kernel中大部分驱动程序加载完成之后,也就是start_kernel完成到最后一步的过程中,报Warning: unable to open an initial console这样的打印信息,串口无法输入。

网上没有找到比较好的解释,但是我不想轻易放弃这次深入了解用户空间启动的过程,因此决定要好好看一下问题到底出在哪里。

网上很多人提供的解决方法创建console和null文件的方法是可用的。

mknod –m 660 console c 5 1
 
mknod –m 660 null c 1 3
但是究竟是什么原因让程序无法正常执行呢?随我一探究竟?

你可能感兴趣的:(linux内核启动过程中Warning: unable to open an initial console)