nfs挂在内核出错 T T *** ERROR: Cannot umount

今天在U-boot挂载nfs内核是出现如下错误,网上查了解决方案。

SOCFPGA_CYCLONE5 # nfs 20000 192.168.0.75:/work/nfs_root/uImage
Waiting for PHY auto negotiation to complete. done
ENET Speed is 100 Mbps - FULL duplex connection
Using mii0 device
File transfer via NFS from server 192.168.0.75; our IP address is 192.168.0.17
Filename '/work/nfs_root/uImage'.
Load address: 0x20000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########################################T T *** ERROR: Cannot umount
SOCFPGA_CYCLONE5 #

解决办法:

在用UBOOT的NFS命令下载文件的时候出现
** ERROR: Cannot umount ”

则要在主机的/etc/hosts文件中加入

你的开发板ip     nfs目录(我的nfs目录是/work/nfs_root)。
比如:
192.168.0.17  /work/nfs_root/

 添加后如下:

127.0.0.1 localhost
127.0.1.1 book

192.168.0.17 /work/nfs_root/
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

原文地址:https://www.cnblogs.com/mouou/p/3824003.html