环境:开发板中只有uboot,通过nfs去下载服务器中的zImage文件
问题描述:在启动内核,加载根文件系统的过程中反复重启,问题在这里,截图如下
问题原因:内核中nfs设置不对
解决方法:回到内核源码树下,重新make menuconfig,在图形界面中做如下设置,使得内核支持nfs方式启动
1、配置网络部分,主要是使能CONFIG_IP_PNP以在2中能够看到Root file system on NFS选项
Networking support
Networking options
TCP/IP networking
[*]IP: kernel level autoconfiguration
[*] IP: DHCP support
[*] IP: BOOTP support
2、配置开启nfs服务
File systems --->
Network File Systems --->
<*> NFS client support
[*] NFS client support for NFS version 3
[*] NFS client support for the NFSv3 ACL protocol extension
[*] NFS client support for NFS version 4 (EXPERIMENTAL)
[*] NFS client support for NFSv4.1 (DEVELOPER ONLY)
[*] Root file system on NFS
开发板关系,重新启动,发现可以正常启动内核,直接加载根文件了。