nfs 安装错误,nfs:未知参数 'ip'

nfs mounting error, nfs: Unknown parameter 'ip'

我是按照bootlin的文档尝试挂载nfs的。我将参数设置如下;

setenv bootargs 'console=ttyS0,115200 root=/dev/nfs rw
nfsroot=192.168.0.1:/nfs,nfsvers=3,
ip=192.168.0.100:::::usb0 g_ether.dev_addr=f8:dc:7a:00:00:02
g_ether.host_addr=f8:dc:7a:00:00:01'

setenv bootcmd 'mmc dev 0; devnum=${mmcdev}; setenv devtype mmc;
mmc rescan; run loadimage; run findfdt; run mmcloados'
saveenv

它没有用,我得到以下信息;

[    8.007915] nfs: Unknown parameter 'ip'
[   18.407811] nfs: Unknown parameter 'ip'
[   38.887802] nfs: Unknown parameter 'ip'
[   68.967793] nfs: Unknown parameter 'ip'
[   99.047785] nfs: Unknown parameter 'ip'
[   99.051674] VFS: Unable to mount root fs via NFS.

有什么建议可以解决吗?

正在读取 ip 作为 nfsroot 的参数:

setenv bootargs 'console=ttyS0,115200 root=/dev/nfs rw
nfsroot=192.168.0.1:/nfs,nfsvers=3,
                                  ^
                                  |
----------------------------------

ip=192.168.0.100:::::usb0 g_ether.dev_addr=f8:dc:7a:00:00:02
g_ether.host_addr=f8:dc:7a:00:00:01'

ip应该是一个单独的选项:

setenv bootargs 'console=ttyS0,115200 root=/dev/nfs rw ip=192.168.0.100:::::usb0 g_ether.dev_addr=f8:dc:7a:00:00:02
g_ether.host_addr=f8:dc:7a:00:00:01 nfsroot=192.168.0.1:/nfs,v3'