忘记密码   免费注册 查看新帖 | 论坛精华区

ChinaUnix.net

  平台 论坛 博客 认证专区 大话IT 视频 徽章 文库 沙龙 自测 下载 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
最近访问板块 发新帖
查看: 243 | 回复: 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

打赏鼓励一下!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

SACC2017购票6.8折优惠进行时

2017中国系统架构师大会(SACC2017)将于10月19-21日在北京新云南皇冠假日酒店震撼来袭。今年,大会以“云智未来”为主题,云集国内外顶级专家,围绕云计算、人工智能、大数据、移动互联网、产业应用等热点领域展开技术探讨与交流。本届大会共设置2大主会场,18个技术专场;邀请来自互联网、金融、制造业、电商等多个领域,100余位技术专家及行业领袖来分享他们的经验;并将吸引4000+人次的系统运维、架构师及IT决策人士参会,为他们提供最具价值的交流平台。
----------------------------------------
优惠时间:2017年8月2日前

活动链接>>
  

北京皓辰网域网络信息技术有限公司. 版权所有 京ICP证:060528号 北京市公安局海淀分局网监中心备案编号:1101082001
广播电视节目制作经营许可证(京) 字第1234号 中国互联网协会会员  联系我们:
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP