How does kernel know where to find the root file system?

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Threaded View
Dear all,

As I know,  the boot up procedure is

1. Power on
2. Bootloader( Uboot)
3. Enter kernel

At step 3, kernel will find and execute the 1st program "init" in the
root file system to bring up the whole system

My question is how does kernel know where to find the root file
system?

Root file system maybe in NAND, NOR, or get from NFS.

But how does kernel know that?

BR,
Paul


Re: How does kernel know where to find the root file system?
On Thu, 25 Feb 2010 19:26:13 -0800 (PST), Paul Hsu

root=/dev/where_you_root as kernel command line =)

root=nfs ip=... in case NFS root, root=/dev/mtdbllockN in other cases.
root=/dev/mmcblockN in case root on mmc card. So simple.

Quoted text here. Click to load it


Site Timeline