From: Baruch Siach <baruch@tkos.co.il>
To: buildroot@busybox.net
Subject: [Buildroot] Changing from NFS root filesystem to embedded within kernel
Date: Wed, 23 Feb 2011 19:10:24 +0200 [thread overview]
Message-ID: <20110223171024.GC339@jasper.tkos.co.il> (raw)
In-Reply-To: <201102231803.41162.dargaud@lpsc.in2p3.fr>
Hi Guillaume,
On Wed, Feb 23, 2011 at 06:03:40PM +0100, Guillaume Dargaud wrote:
> It's probably a simple question, but I'm a bit confused by what I found
> searching this question.
> I have a buildroot system which currently boots remotely via DHCP+NFS.
> The following is both in the dts file and as the kernel parameter line:
> console=ttyUL0,115200 rw root=/dev/nfs ip=bootp
>
> Now I would like to package the kernel with the filesystem embedded in it.
> That's what initramfs is for, right ?
>
> In buildroot, I generated a CPIO filesystem, and in the kernel compile options
> I told it to use that file as an initramfs.
>
> Now all I need is to change the kernel parameter line, right ? What's the
> syntax ?
No. If you include initramfs in your kernel, the /init script runs
automatically, regardless of the kernel command line. In this script you can
examine the kernel command line (available in /proc/cmdline), and mount the
right filesystem. See the Documentation/filesystems/ramfs-rootfs-initramfs.txt
file under "What is initramfs?".
baruch
--
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
prev parent reply other threads:[~2011-02-23 17:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-23 17:03 [Buildroot] Changing from NFS root filesystem to embedded within kernel Guillaume Dargaud
2011-02-23 17:10 ` Baruch Siach [this message]
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=20110223171024.GC339@jasper.tkos.co.il \
--to=baruch@tkos.co.il \
--cc=buildroot@busybox.net \
/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