Subject: Re: Lack of error message with /sbin/init and missing /dev
To: Roberto <roberto@redix.it>
From: Marcin Jessa <lists@yazzy.org>
List: current-users
Date: 11/15/2005 15:28:57
On Tue, 15 Nov 2005 15:14:24 +0100 (CET)
"Roberto" <roberto@redix.it> wrote:

> 
> > In article <20051115143819.379b4150.lists@yazzy.org>
> > lists@yazzy.org 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. 

Marcin