我用8168做的板子 uboot以tftp方式载入kernel,bootargs配置以nfs方式挂载文件系统,bootargs中ip设置为dhcp能正常挂载文件系统,指定ip则报错,bootargs 具体设定为: bootargs 'mem=128M console=ttyO2,115200n8 rw ip=192.168.1.9:192.168.1.100:192.168.1.100:255.255.255.0::eth0:off root=/dev/nfs rootfstype=jffs2 nfsroot=192.168.1.100:/home/ti/netra/target/rfs eth=00:0C:29:94:D7:D6 vram=20M notifyk.vpssm3_sva=0xBFD00000' ,kernel打印报错信息为:
…………..
davinci_mdio davinci_mdio.0: resetting idled controller
net eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:00, id=221612)
IP-Config: Complete:
device=eth0, addr=192.168.1.9, mask=255.255.255.0, gw=192.168.1.100,
host=192.168.1.9, domain=, nis-domain=(none),
bootserver=192.168.1.100, rootserver=192.168.1.100, rootpath=
VFS: Unable to mount root fs via NFS, trying floppy.
List of all partitions:
1f00 2304 mtdblock0 (driver?)
1f01 256 mtdblock1 (driver?)
1f02 4352 mtdblock2 (driver?)
1f03 255232 mtdblock3 (driver?)
No filesystem could mount root, tried: jffs2
Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Backtrace:[<c0045b7c>] (dump_backtrace+0x0/0x110) from [<c0352404>] (dump_stack+0x18/0x1c)
r7:c6413000 r6:c0068c28 r5:c002b5dc r4:c04b6fd0
[<c03523ec>] (dump_stack+0x0/0x1c) from [<c0352468>] (panic+0x60/0x17c)
[<c0352408>] (panic+0x0/0x17c) from [<c0009254>] (mount_block_root+0x1e0/0x220)
r3:00000000 r2:00000020 r1:c6423f58 r0:c03fe41c
[<c0009074>] (mount_block_root+0x0/0x220) from [<c0009340>] (mount_root+0xac/0xcc)
[<c0009294>] (mount_root+0x0/0xcc) from [<c00094d0>] (prepare_namespace+0x170/0x1d4)
r4:c04b6924
[<c0009360>] (prepare_namespace+0x0/0x1d4) from [<c0008784>] (kernel_init+0x114/0x154)
r5:c0008670 r4:c04b68c0
[<c0008670>] (kernel_init+0x0/0x154) from [<c0068c28>] (do_exit+0x0/0x5e4)
r5:c0008670 r4:00000000
确定pc端nfs服务是正常的,因为dhcp方式能挂载,kernel中也确保nfs选项都已经选中,不知道大家有没有碰到类似问题,还望各位高手不吝赐教
Sheng Liu1:
“rootfstype=jffs2”
这句有问题,改为nfs或者直接不写
eric liu:
回复 Sheng Liu1:
这句写不写都一样,写了dhcp方式也可以挂载。我初步有眉目了,怀疑是kernel的硬件初始化代码引起的崩溃,跟bootargs参数应该无关了。
Shawn Yang:
回复 eric liu:
应该是nfs路径不对