[JZ2440]NFS挂载出现的问题及解决方法

问题描述:[jz2440]开发板在配置完成后,当时在Uboot上用NFS挂载uImage没有出现什么问题,最多提示出现坏块之类的,但放了一段时间没怎么用开发板后,再次用NFS挂载刚刚编译好的uImage时显示无法挂载,也无法卸载,具体如下(以下是复制别人的与我当时类似的情形,自己的当时忘了保存):

OpenJTAG> nfs 30000000 192.168.31.38:/work/nfs_root/uImage
dm9000 i/o: 0x20000000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:00:3e:26:0a:5b
could not establish link
File transfer via NFS from server 192.168.31.38; our IP address is 192.168.31.243
Filename '/work/nfs_root/uImage'.
Load address: 0x30000000
Loading:*** ERROR: Cannot mount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount
*** ERROR: Cannot umount

done

done

done

done

done

done

done

done

done

done

done

done

done

done

done

done

OpenJTAG> 

ip设置如下:             

主机ip:  192.168.31.245

虚拟机ip: 192.168.31.38

开发板ip: 192.168.31.243UBOOT

       192.168.31.233linux


解决方法:

尝试在虚拟机服务器端挂载自己,命令如下:

sudo mount -t nfs -o nolock,vers=2 192.168.31.38:/work/nfs_root

解决过程:

在百问网交流社区查阅了别人的问题并试探了各种方法之后,利用韦东山老师的方法成功解决了问题,解决方法如下(下图为韦东山老师的原话):

[JZ2440]NFS挂载出现的问题及解决方法

原因:服务器端对开发板的挂载出现了问题,需要重新挂载开发板。

总结:NFS的挂载继续要虚拟机服务器对开发板进行挂载,同时也要开发板对虚拟机进行挂载,出了问题后需要双向挂载测试。

以下附上韦东山老师回复上面问题的原话截图(感谢韦老师):

[JZ2440]NFS挂载出现的问题及解决方法

帖子连接:http://www.100ask.org/bbs/forum.php?mod=viewthread&tid=20391&highlight=nfs