各位TI的专家好,
最近在用Appro的DM368的参考设计,在使用NFS启动时,总是出错,出错信息如下:
[ 3.325179] VFS: Unable to mount root fs via NFS, trying floppy.
[ 3.332568] VFS: Cannot open root device "nfs" or unknown-block(2,0)
[ 3.338972] Please append a correct "root=" boot option; here are the available partitions:
[ 3.347529] 1f00 3072 mtdblock0 (driver?)
[ 3.352772] 1f01 2048 mtdblock1 (driver?)
[ 3.357881] 1f02 4096 mtdblock2 (driver?)
[ 3.363076] 1f03 40960 mtdblock3 (driver?)
[ 3.368179] 1f04 2048 mtdblock4 (driver?)
[ 3.373449] 1f05 40960 mtdblock5 (driver?)
[ 3.378557] 1f06 37888 mtdblock6 (driver?)
[ 3.383735] Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[ 3.392095] Backtrace:[ 3.394576] Function entered at [<c002e4ec>] from [<c0311888>]
[ 3.400483] r7:00008000 r6:c2813000 r5:c0023668 r4:c03b2920
[ 3.406209] Function entered at [<c0311870>] from [<c03118f4>]
[ 3.412125] Function entered at [<c031188c>] from [<c0008fcc>]
[ 3.417998] r3:00000000 r2:00000000 r1:c2825f58 r0:c03317d6
[ 3.423764] Function entered at [<c0008de8>] from [<c00090c0>]
[ 3.429633] Function entered at [<c0009014>] from [<c0009244>]
[ 3.435538] r4:c03b2228
[ 3.438099] Function entered at [<c00090e4>] from [<c00084b4>]
[ 3.444005] r5:c0022e04 r4:c03b21d8
[ 3.447620] Function entered at [<c00083a4>] from [<c0042e0c>]
[ 3.453525] r5:c00083a4 r4:00000000
我设定的bootargs的命令如下:
setenv bootargs 'console=ttyS1,115200n8 noinitrd rw ip=192.168.1.251:192.168.1.223:192.168.1.1:255.255.255.0:192.168.1.251::off root=/dev/nfs nfsroot=$(nfshost):$(rootpath), nolock mem=48M cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1×28672 cmemk.allowOverlap=1 eth=$(ethaddr) lpj=1077248 nohz=off highres=off'
nfshost和rootpath设定如下:
setenv nfshost 192.168.1.223
setenv rootpath /home/Shaquille/WorkSpace/ApproSrc/Source/ipnc_rdk/target/filesys
已经在PC端对filesys执行了,chmod 777 -R
在编译内核时,已经将rules.make的BUILD_CONFIG改成了NFS,因此烧写的内核一定是NFS对应的那个内核
包括相机上的跳线,dhcp和static ip我都试过了。
跳到dhcp的时候,bootargs的设定如下:
setenv bootargs 'console=ttyS1,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=$(nfshost):$(rootpath), nolock mem=48M cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1×28672 cmemk.allowOverlap=1 eth=$(ethaddr) lpj=1077248 nohz=off highres=off'
总之,各种方法都穷尽了,一直就无法通过。想请TI的专家帮我看看。
还有,我按通讯板上的reset键,内核还能启动,一直执行到NFS报错。但是当我重拔电源之后,内核无法加载,出错提示如下:
ERROR: can't get kernel image !
说明重新拔电之后内核部分都损坏了,我想知道这是为什么。UBI启动的时候是不会这样的
shuai zhou:
检查下PC机上的NFS是否配置好了,不知道你bootcmd是什么。
Shaquille Wu:
回复 shuai zhou:
PC上的没问题,完全按照Userguide设定的,而且别的设备可以挂载,说明PC的设定是没问题的
至于Bootcmd跟ubi启动的设定是一致的,ubi启动是没问题的,我想应该是没问题的。我这现在是iPad,没法打出来,能告诉我,你认为正确的bootcmd应该是怎样的么?
其实该检查的地方,我都检查了,就是不知道哪有错
Shaquille Wu:
回复 Shaquille Wu:
补充一下,我的bootcmd如下:
setenv bootcmd 'nboot 0x80700000 0 0x500000; bootm 0x80700000'
没人遇到过这个问题么?
Shaquille Wu:
回复 Eason Wang:
板子Ping主机是没有问题的
你所说的方法都试过了,就是过不去
ben chen1:
回复 Shaquille Wu:
请问楼主这个问题解决了没?我现在也卡在这里好几天了
Christian Shen:
回复 ben chen1:
Ben、你的rdk什么版本的? 你有按照eason建议的先排查一遍网络的问题不?
ben chen1:
回复 Christian Shen:
谢谢,已经解决了。是NFS配置问题 找了好久了