Subject: Re: Lack of error message with /sbin/init and missing /dev
To: Roberto <email@example.com>
From: Marcin Jessa <firstname.lastname@example.org>
Date: 11/15/2005 15:28:57
On Tue, 15 Nov 2005 15:14:24 +0100 (CET)
"Roberto" <email@example.com> wrote:
> > In article <firstname.lastname@example.org>
> > email@example.com wrote:
> >> I just accidently forgot to create /dev for my embedded image and
> >> discovered /sbin/init keeps totally silent about that.
> > At least src/sys/kern/init_main.c:check_console() warns
> > if there is no /dev/console.
> > Anyway, I think init(8) can't print any messages without device
> > node. ---
> > Izumi Tsutsui
> According to me, when no /dev/console was found, on 2.x init perform
> the following:
> - mmap /dev/MAKEDEV and MAKEDEV.local file;
> - create a /dev memory fs;
> - save the new /dev/MAKEDEV* on mem. fs;
> - create the device files;
> I remember the following output:
> warning: no /dev/console
> init: Creating mfs /dev
> At least, the kernel should output "no /dev/console" I think.
It does that but it never says anything about MAKEDEV being missing,
which IMHO it also should.
My board has only serial port so AFAIK that's why it still will print
the /dev/console message regardless existence of the MAKEDEV file.