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

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

Reply to
Paul Hsu
Loading thread data ...

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 ---

Reply to
Alex A. Mihaylov

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.