目的:tftp下载内核,并且通过NFS挂载根文件系统出现以下错误
虚拟机IP:192.168.253.128 板子IP:192.168.253.183
/etc/exports 内容:/opt/DVRRDK_02.00.00.23/target/rfs *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
IP-Config: Complete:
device=eth0, addr=192.168.253.183, mask=255.255.255.0, gw=192.168.253.1,
host=192.168.253.183, domain=, nis-domain=(none),
bootserver=192.168.253.142, rootserver=192.168.253.142, rootpath=
nfs相关设置信息截图:
虚拟机的防火墙也关闭了,启动延迟设置为8秒,内核配置也选择了ROOT FILE SYSTEM ON NFS选项
.config文件开启选项截图为
错误提示:
ata2: EH complete
ata1: EH complete
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 2432 mtdblock0 (driver?)
1f01 128 mtdblock1 (driver?)
1f02 3072 mtdblock2 (driver?)
1f03 4352 mtdblock3 (driver?)
1f04 252160 mtdblock4 (driver?)
Kernel panic – not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Backtrace:
[<c0048b90>] (dump_backtrace+0x0/0x110) from [<c03c3564>] (dump_stack+0x18/0x1c)
r7:c5bf8000 r6:00000000 r5:c002dbfc r4:c0551710
[<c03c354c>] (dump_stack+0x0/0x1c) from [<c03c35c8>] (panic+0x60/0x17c)
[<c03c3568>] (panic+0x0/0x17c) from [<c0009254>] (mount_block_root+0x1e0/0x220)
r3:00000000 r2:00000000 r1:c5825f58 r0:c0485b7c
[<c0009074>] (mount_block_root+0x0/0x220) from [<c0009340>] (mount_root+0xac/0xcc)
[<c0009294>] (mount_root+0x0/0xcc) from [<c00094d0>] (prepare_namespace+0x170/0x1d4)
r4:c0550fa4
[<c0009360>] (prepare_namespace+0x0/0x1d4) from [<c0008784>] (kernel_init+0x114/0x154)
r5:c0008670 r4:c0550f40
[<c0008670>] (kernel_init+0x0/0x154) from [<c006ef78>] (do_exit+0x0/0x5e4)
r5:c0008670 r4:00000000
附件为板子启动的全部信息,希望高手指教!
haisu yuan:
检查出了一个问题,我的bootsever和rootsever的ip应该跟虚拟机ip统一,但是更改之后继续往下面跑还是会出错
Error opening /dev/fb0: No such file or directoryPlease wait: booting…Starting udev/etc/rcS.d/S03udev: line 50: can't create /tmp/uname: Read-only file systemtouch: /tmp/uname: Read-only file systemRoot filesystem already rw, not remountingCaching udev devnodesPopulating dev cachetar: can't open '/etc/dev.tar': Permission deniedmv: overwrite '/etc/udev/saved.uname'?
这又是什么原因引起的呢?
谁帮忙解答下!
haisu yuan:
回复 kooking:
是的,用户root权限登陆后问题解决了!
Jinnian Tian:
回复 haisu yuan:
请问一下,你的bootsever和rootsever的IP是怎么设置的?
tang zhi:
回复 haisu yuan:
兄弟! 怎么以用户root权限登陆??? 跪求指教
tang zhi:
回复 kooking:
大哥 我也碰到了 这个问题 。 想问一下要怎么样以 root身份登录? 在虚拟机上还是开发板上 ?
yu wang20:
回复 haisu yuan:
我是使用的虚拟机安装的linux,root登录时也报这样的错误,不知道是什么原因,能不能帮忙解决一下。谢谢!