I.Mx6 NFS挂载失败问题 【已解决】

1、问题描述

串口输出如下信息后,无任何响应。

IP-Config: Complete:
     device=eth0, addr=192.168.1.88, mask=255.255.255.0, gw=192.168.1.1,
     host=192.168.1.88, domain=, nis-domain=(none),
     bootserver=192.168.1.58, rootserver=192.168.1.58, rootpath=
VFS: Mounted root (nfs filesystem) on device 0:12.
Freeing init memory: 212K
starting pid 1434, tty '': '/etc/rc.d/rcS'
Mounting /proc and /sys 
Starting the hotplug events dispatcher udevd
udevd (1443): /proc/1443/oom_adj is deprecated, please use /proc/1443/oom_score_adj instead.
Synthesizing initial hotplug events
Setting the hostname to freescale
Mounting filesystems
mount: mounting usbfs on /proc/bus/usb failed: No such file or directory
nfs: server 192.168.1.58 not responding, still trying

 

2、问题原因

根文件系统中的 /etc/rc.d/rcS 文件对网卡eth0又进行了一次配置与我们设置在uboot中的IP配置信息不同。

这导致了根文件系统在配置完IP后不能找到完整的根文件系统了。

如下我们在 /etc/rc.d/rcS中找到如下配置信息

ifconfig eth0 192.168.3.104
/sbin/sshd

与我们在uboot中配置的192.168.1.88的IP一不致。

 

3、问题解决

1)将rcS文件中的IP信息修改成与我们uboot中设置的IP值

2)将rcS文件中的IP设置信息注释掉(注释掉后文件系统采用uboot中配置的IP)

posted @ 2015-03-03 14:15  阿青1987  阅读(682)  评论(0编辑  收藏  举报