求助NFS
U-boot设置好了,然后重启时就显示:VFS: Unable to mount root fs on unknown-block(2,0)
是什么原因?解压的FileSystem-Yaffs2文件需要编译吗?
详细的串口信息:#0: SMDK (WM9713)
TCP cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
can: raw protocol (rev 20090105)
can: broadcast manager protocol (rev 20090105 t)
lib80211: comms
Registering the dns_resolver y type
s3c-rtc s3c64xx-rtc: setock to 2000-08-11 05:40:10 UTC (972410)
dm9000 dm9000.0: eth0: link down
dm9000 dm9000.0: eth0: link up, 100Mbps, full-duplex, lpa 0x4DE1
VFS: Unable to mount root fs via NFS, trying floppy.
Kernel panic - not syncing:
VFS: Unable to mount root fs on unknown-block(2,0)
[<c0039ca8>] (unwind_backtrace+0x0/0xfc) from [<c04a044c>][<c04a044c>] (dump_st)
[<c04a04b0>] (panic+0x60/0x1) from [<c0008fd0>] (mount_blockot
+0x204/0x25c)
[<c0008fd0>] (mnt_block_root+0x204/0x25c) from 00090b0>] (mount_root+0x88/0xd0))
[<c0009204>] (ppare_namespace+0x10c/0x1a8)
fromc00084c4>] (kernel_init+0xf0/0x1)
[<c00084c4>] (kernel_init+0xfx130) from [<c0034a34>] (kernel_read_exit+0x0/0x8) 请楼主帖详细操作信息。 回复 2# 飞凌-fatfish
print u-boot到信息是:
bootcmd=nand read 0xc0008000 0x100000 0x500000;bootm 0xc0008000
bootdelay=1
baudrate=115200
ethaddr=00:40:5c:26:0a:5b
netmask=255.255.255.0
bootargs=root=/dev/nfs nfsroot=192.168.0.123:/opt/nfs/root/FileSystem-Yaffs2 ip=192.168.0.124:192.168.0.124:192.168.0.1:255.255.255.0:witech.com.cn:0
ipaddr=192.168.0.124
serverip=192.168.0.123
gatewayip=192.168.0.1
stdin=serial
stdout=serial
stderr=serial
Environment size: 425/524284 bytes
bootarys 设置信息如下:
setenv bootargs "root=/dev/nfs nfsroot=192.168.0.123:/opt/nfs/root/FileSystem-Yaffs2 ip=192.168.0.124:192.168.0.124:192.168.0.1:255.255.255.0:witech.com.cn:eth0:0ff console=ttySAC0,115200"
用开发板的YAFFS2系统可以ping到PC,PC也可以ping到开发板,在u-boot下不会用ping。
谢谢了,麻烦了 回复 2# 飞凌-fatfish
问题解决来,每次启动前都要再命令行修改ip和网关
ifconfig eth0(硬件设备名) 192.168.0.123(主机的IP)
route add default gw 192.168.0.1(网关)
每次链接都要用。 可以写成一个脚本,开机就运行,这样就不用每次都设置了 回复 5# 飞凌-chongzi
嗯嗯,谢谢。已经写过一个脚本了。
页:
[1]