解决uboot用NFS下载程序出现:Loading: *** ERROR: File lookup fail

在这里插入图片描述
原因:ubuntu中的NFS版本高于uboot中的版本,需将ubuntu中的版本改为兼容与uboot中的版本(V2)
解决办法:

0、确保虚拟机ip与主机ip地址不一致,否则会出现下面情况

在这里插入图片描述
可设置手动ip,且自定义特定虚拟网络
在这里插入图片描述
在这里插入图片描述

1、重启虚拟机ip,然后ifconfig查看配置的ip是否为自己设置的

sudo ifconfig ens33 down
sudo ifconfig ens33 up

在这里插入图片描述

2、配置ubuntu中的NFS(非常重要

1)sudo vim /etc/default/nfs-kernel-server进入文件,点击a进入插入模式
2)修改文件如下
# Number of servers to start up
# RPCNFSDCOUNT=8
RPCNFSDCOUNT="-V 2 8"
# Runtime priority of server (see nice(1))
RPCNFSDPRIORITY=0

# Options for rpc.mountd.
# If you have a port-based firewall, you might want to set up
# a fixed port here using the --port option. For more information, 
# see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
# To disable NFSv4 on the server, specify '--no-nfs-version 4' here
# RPCMOUNTDOPTS="--manage-gids"
RPCMOUNTDOPTS="-V 2 --manage-gids"

# Do you want to start the svcgssd daemon? It is only required for Kerberos
# exports. Valid alternatives are "yes" and "no"; the default is "no".
NEED_SVCGSSD=""

# Options for rpc.svcgssd.
# RPCSVCGSSDOPTS=""
RPCSVCGSSDOPTS="--nfs-version 2,3,4 --debug --syslog"
3)esc退出,然后 :wq退出,再在终端输入sudo service nfs-kernel-server restart即可

3、最后在串口调试助手输入命令即可

在这里插入图片描述
NFS配置转载自:https://blog.csdn.net/polaris_zgx/article/details/103571725

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐