From: Wakko Warner <wakko@animx.eu.org>
To: "Richard B. Johnson" <linux-os@analogic.com>
Cc: Tomko <tomko@avantwave.com>, linux-kernel@vger.kernel.org
Subject: Re: question why need open /dev/console in init() when starting kernel
Date: Fri, 3 Jun 2005 11:08:48 -0400 [thread overview]
Message-ID: <20050603150848.GB14641@animx.eu.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0506031031070.13982@chaos.analogic.com>
Richard B. Johnson wrote:
> On Fri, 3 Jun 2005, Wakko Warner wrote:
> >Is it at all possible that if /dev/console does not exist that the kernel
> >can mknod it?
> >
>
> Yes. Your initial console can be NULL, set as a kernel command-line
I forgot about this. I was thinking in the cases where it wasn't.
> parameter. You should really be using an initial RAM disk (initrd).
> That gets mounted for boot, containing whatever is necessary to
> properly start the system, then change to the file root (or not).
> This is how hundreds of different embeded systems are started.
>
> Execute-in-place, which I think you are trying with 'cpio' will
> continue to give you problems because you can't test it except
> by throwing it off-the-cliff to see if it flies. RAM-disk systems
> can be tested, booting on any media (even a floppy).
I built a small system that runs in 2 stages. stage 1 basically only
searches for stage 2 and can fit on a floppy. It has a kernel (no
filesystem support builtin) and a cpio archive that is loaded via initrd.
It has actually decreased the size and since everything runs out of a tmpfs
filesystem anyway, it works just fine.
I was asking a technical question, not a preferred usage question.
I would think that if the kernel itself can populate a tmpfs from a cpio
archive, it can also mknod /dev/console. However, I don't know if the
code would increase the kernel more than just having 2 extra entries in a
cpio archive.
> >Would the code to do this be larger than 2 entries in a cpio archive (one
> >for /dev directory and one for /dev/console char dev)?
--
Lab tests show that use of micro$oft causes cancer in lab animals
next prev parent reply other threads:[~2005-06-03 15:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-03 7:01 Tomko
2005-06-03 10:32 ` Richard B. Johnson
2005-06-03 14:15 ` Wakko Warner
2005-06-03 14:40 ` Richard B. Johnson
2005-06-03 15:08 ` Wakko Warner [this message]
[not found] ` <42A073BA.5040700@yahoo.com>
[not found] ` <20050603152017.GC14641@animx.eu.org>
2005-06-03 16:41 ` J. Scott Kasten
[not found] <4betH-75D-9@gated-at.bofh.it>
2005-06-03 10:06 ` Bodo Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050603150848.GB14641@animx.eu.org \
--to=wakko@animx.eu.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
--cc=tomko@avantwave.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®