nfs挂在文件系统出错: *** ERROR: Cannot umount

在U-boot中从PC机中下载内核用tfp,PC机必须用tftp软件搭建一个服务器。

在U-boot中从虚拟机中下载内核用nfs来下载,出现如下错误,解决办法如下

在uboot中通过nfs挂在内核到内存中出错:

#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################

         #####################################T *T ERROR: Cannot umount



解决办法:
在主机的/etc/hosts文件中增加一行名称解析內容:
目标板IP 根文件系统文件名
比如:我的/etc/hosts增加后变为:

127.0.0.1 localhost 127.0.1.1 zhu

#增加下面这句:开发板IP, nfs共享文件夹 192.168.0.111 /home/zac/nfsboot/ # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts

在u-boot中挂在根文件系统启动开发板。

启动NFS服务:通过(vim /etc/exports)建立相应的配置文件,然后输入(/opt/EmbedSky/root-2.6.1 * (rw,syns,no_root_squash);启动NFS服务器(/etc/init.d/nfs restart)。

setenv bootargs console=ttySAC0,115200 noinitrd root=/dev/nfs rw nfsroot=172.16.150.110:/work/nfs_root/root_fs ip=172.16.150.157:172.16.150.110:172.16.150.1:255.255.255.0::eth0:off  

你可能感兴趣的:(BUG)