This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM36X内核



您好:

       我以前用的3.0的内核,现在换成2.6的内核,运行后出现以下错误:

VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

这是怎么,我用3.0的内核是没问题的,只是换成2.6就出现这个错误

  • 挂载nfs的时候出错,看一下u-boot参数配置

  •      您好,我的uboot参数设置如下:

    bootdelay=2
    baudrate=115200
    setboot=setenv bootargs $(bootargs)
    ethaddr=00:01:02:05:0b:0a
    filesize=B5C000
    fileaddr=82000000
    serverip=192.168.1.92
    ipaddr=192.168.1.88
    bootfile=uImage_ipnc_dm368_2.6.0
    bootcmd=tftpboot 0x80700000 uImage_ipnc_dm368_2.6.0;bootm 0x80700000
    bootargs=console=ttyS1,115200n8 noinitrd rw ip=192.168.1.14 root=/dev/nfs nfsroot=192.168.1.92:/home/jayson/DM36X/ipnc3.0/ipnc_rdk/target/filesys/, eth=00:0C:0C:A0:11:ba,nolock mem=48M
    stdin=serial
    stdout=serial
    stderr=serial
    ver=U-Boot 1.3.4 (Jul  4 2013 - 10:37:02) DM368-IPNC-2.0.0

    现在用的u-boot能正常运行3.0的内核,就是不能正常运行2.6的内核

  • 根据报错,这个可能和u-boot的关系不大,挂载nfs的时候出错,可能是内核和文件系统不匹配造成的