Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Changing from NFS root filesystem to embedded within kernel
@ 2011-02-23 17:03 Guillaume Dargaud
  2011-02-23 17:10 ` Baruch Siach
  0 siblings, 1 reply; 2+ messages in thread
From: Guillaume Dargaud @ 2011-02-23 17:03 UTC (permalink / raw)
  To: buildroot

Hello all,
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 ?
-- 
Guillaume Dargaud
http://www.gdargaud.net/Antarctica/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] Changing from NFS root filesystem to embedded within kernel
  2011-02-23 17:03 [Buildroot] Changing from NFS root filesystem to embedded within kernel Guillaume Dargaud
@ 2011-02-23 17:10 ` Baruch Siach
  0 siblings, 0 replies; 2+ messages in thread
From: Baruch Siach @ 2011-02-23 17:10 UTC (permalink / raw)
  To: buildroot

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 -

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-23 17:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox