Modifying init to create /dev/console ?
Denis Vlasenko
vda.linux at googlemail.com
Tue Mar 13 14:15:33 PDT 2007
Hi.
On Tuesday 13 March 2007 09:00, Robert Schwebel wrote:
> > VFS: Mounted root (nfs filesystem).
> > Freeing init memory: 88K
> > Warning: unable to open an initial console.
> > init started: BusyBox v1.1.3 (2007.03.11-10:31+0000) multi-call binary
> >
> > Does anybody have an idea how to get rid of the warning?
Delete relevant kernel messages in the source:
init/main.c
if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
printk(KERN_WARNING "Warning: unable to open an initial console.\n");
(void) sys_dup(0);
(void) sys_dup(0);
> Ah, and a regression: you don't get kernel messages any more on that
> console, because although init has a console now, the kernel does not.
What does it mean - "kernel does not have a console"?
Console is still there, and kernel can print to it,
regardless whether /dev/console exist or not, opened or not.
--
vda
More information about the busybox
mailing list