linux内核在哪里加载根文件系统?

linux内核启动后,会对根文件系统进行加载,但是内核是在哪里对根文件进行加载的?

 List of all partitions:
1f00             256 mtdblock0 (driver?)
1f01              64 mtdblock1 (driver?)
1f02            6272 mtdblock2 (driver?)
1f03            1408 mtdblock3 (driver?)
1f04              64 mtdblock4 (driver?)
1f05              64 mtdblock5 (driver?)
1f06              64 mtdblock6 (driver?)
No filesystem could mount root, tried:  squashfs
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)

上面是串口打印的信息,我对No filesystem could mount root, tried:,这句话进行查找,定位到了mips-linux-2.6.31\init\Do_mounts.c_这个文件中

    printk("List of all partitions:\n");
    printk_all_partitions();
    printk("No filesystem could mount root, tried: ");
    for (p = fs_names; *p; p += strlen(p)+1)
        printk(" %s", p);
    printk("\n");

之后我就看不懂这些了,根文件系统是在哪里加载进来的???
而且我在Uboot下,进行烧写时,是将根文件系统写到0x9f050000这个位置,但是在内核里面是如何指定的??

查看全部
a5480991
挫爆了的大M
2015/09/07 03:01
  • 加载根文件系统
  • 点赞
  • 收藏
  • 回答
    私信

2个回复