免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2504 | 回复: 0

[操作系统] nfs 根文件系统挂载 [复制链接]

论坛徽章:
0
发表于 2017-07-04 22:58 |显示全部楼层
本帖最后由 shaohua312 于 2017-07-04 23:04 编辑

linux3.17的内核,计划配置的时候通过nfs根文件系统直接挂载,板子是mini2440,开发环境是ubuntu14.04,内核启动到最后挂载nfs的时候总是失败。跟踪代码,发现总是在rpc阶段失败,有哪位大虾可以帮忙说说,叩谢啊。
启动参数:bootargs=console=ttySAC0,115200 root=/dev/nfs nfsroot=192.168.2.101:/home/lsh/wkplace/fs/root_qtopia ip=192.168.2.111:192.168.2.101:192.168.2.101:255.255.255.0:smdk2440a.embedclub.com:eth0ff

这个参数使用mini2440提供的2.6的内核是可以启动的,开发环境是windows安装虚拟机,虚拟机装了ubuntu。

tcpdump抓包流程:192.168.2.101(开发服务器) 192.168.2.111(开发板) 路由器(192.168.2.1)
22:40:12.173785 ARP, Request who-has 192.168.2.101 tell 192.168.2.111, length 46
22:40:12.173867 ARP, Reply 192.168.2.101 is-at 00:0c:29:c4:77:42 (oui Unknown), length 28
22:40:12.174920 IP 192.168.2.111.35775 > 192.168.2.101.sunrpc: UDP, length 88
22:40:12.437016 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:40:17.175814 IP 192.168.2.111.35775 > 192.168.2.101.sunrpc: UDP, length 88
22:40:24.436593 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:40:27.193173 IP 192.168.2.111.35775 > 192.168.2.101.sunrpc: UDP, length 88
22:40:36.436229 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:40:37.436211 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:40:38.436149 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:40:50.435917 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:40:51.435790 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:40:51.435842 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:40:52.288740 IP 192.168.2.111.60785 > 192.168.2.101.sunrpc: UDP, length 88
22:40:52.435803 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:40:57.295578 IP 192.168.2.111.60785 > 192.168.2.101.sunrpc: UDP, length 88
22:40:57.296150 IP 192.168.2.101.sunrpc > 192.168.2.111.60785: UDP, length 28
22:40:57.297663 IP 192.168.2.111.944 > 192.168.2.101.46737: UDP, length 40
22:40:58.295057 ARP, Request who-has 192.168.2.101 tell 192.168.2.111, length 46
22:40:58.295117 ARP, Reply 192.168.2.101 is-at 00:0c:29:c4:77:42 (oui Unknown), length 28
22:41:02.304354 IP 192.168.2.111.944 > 192.168.2.101.46737: UDP, length 40
22:41:03.435478 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:03.435533 ARP, Reply 192.168.2.111 is-at 08:08:11:18:12:27 (oui Unknown), length 46
22:41:04.435395 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:05.435377 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:05.435432 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:06.435361 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:12.331773 IP 192.168.2.111.944 > 192.168.2.101.48: UDP, length 40
22:41:18.434883 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:30.434604 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:42.406091 IP 192.168.2.111.59143 > 192.168.2.101.sunrpc: UDP, length 88
22:41:42.434210 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:47.412692 ARP, Request who-has 192.168.2.101 (00:00:00:00:c0:a8 (oui Ethernet)) tell 192.168.2.111, length 46
22:41:47.412747 ARP, Reply 192.168.2.101 is-at 00:0c:29:c4:77:42 (oui Unknown), length 28
22:41:54.433795 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:55.433818 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:56.433665 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:56.433717 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:41:57.430391 IP 192.168.2.111.59143 > 192.168.2.101.96: UDP, length 88
22:42:08.433382 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:42:08.433433 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:42:09.433375 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:42:10.432526 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:42:10.432582 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:42:11.433306 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:42:23.432809 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:42:35.432403 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:42:37.522245 IP 192.168.2.111.35968 > 192.168.2.101.96: UDP, length 88
22:42:47.431978 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:42:48.432098 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46
22:42:49.431964 ARP, Request who-has 192.168.2.111 tell 192.168.2.1, length 46

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP