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

Feb 26, 2010 1 Replies

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



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.

--- news://freenews.netfront.net/ - complaints: snipped-for-privacy@netfront.net ---

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required