kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: mandeepsandhu.chd@gmail.com (Mandeep Sandhu)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Problem with rootfs mounting
Date: Tue, 22 Mar 2011 16:03:09 +0530	[thread overview]
Message-ID: <AANLkTi=LSyRqDZSn0HVt4+uqj2NERuyFrC8GORgGaP+N@mail.gmail.com> (raw)
In-Reply-To: <AANLkTi=TyrWKXSpFAYeC3F9Fn+LuPKhzfmTS1iM-QaqX@mail.gmail.com>

> But, I have not found how I can do this in Linux..
> I have chosen the filesystem ROMFS in the .config file.
> Where and how the romfs tree is created and included to the kernel image?

We're using an embedded MIPS platform with busybox.

We build the rootfs image (busybox build) and point to its location in
the kernel menu config. Though I beleive that menu config is coming
due to our vendor patched kernel. I'm not sure if this option is
available in vanilla kernels.

Doing this creates a cpio archive of whatever root dir we point to in
the kernel config...which is then added to the kernel as a ramfs
image.

>
> This question concerns also all the necessary user applications like "init"
> and "sh".

If you have a busybox based system, then init is essentially the busybox shell.

 HTH,
-mandeep

  reply	other threads:[~2011-03-22 10:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-21 14:41 Problem with rootfs mounting stl
2011-03-22 10:33 ` Mandeep Sandhu [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-03-21 13:26 stl

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='AANLkTi=LSyRqDZSn0HVt4+uqj2NERuyFrC8GORgGaP+N@mail.gmail.com' \
    --to=mandeepsandhu.chd@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /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;
as well as URLs for NNTP newsgroup(s).