在uboot中设置bootargs

无法通过nfs挂载ubuntu18.04中的根文件系统

引导内核后通过nfs挂载网络根文件系统时出现所示错误。

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
random: nonblocking pool is initialized

经过各种试验发现是nfs服务的问题。

原因是:ubuntu18.04只支持nfs 3和nfs 4,而uboot默认使用nfs 2。

解决方法:

在ubuntu18.04的 “/etc/default/nfs-kernel-server” 文件末尾加一行,如图所示。

RPCNFSDOPTS="--nfs-version 2,3,4 --debug --syslog"

无法通过nfs挂载ubuntu18.04中的根文件系统

然后重启nfs服务即可。

sudo /etc/init.d/nfs-kernel-server restart

 

相关文章:

  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2021-09-21
  • 2021-09-12
  • 2021-12-21
  • 2021-10-21
  • 2021-12-31
猜你喜欢
  • 2021-09-23
  • 2022-12-23
  • 2021-04-13
  • 2022-12-23
  • 2021-07-13
  • 2021-09-20
  • 2021-11-01
相关资源
相似解决方案