210支持nfs方式掛載文件系統的內核配置

一、配置網絡部分,主要是使能CONFIG_IP_PNP以在2中可以看到Root file system on NFS選項linux

Networking support 網絡

Networking options ide

TCP/IP networkingspa

IP: kernel level autoconfigurationip

[*] IP: DHCP supportit

[*] IP: BOOTP supportio

二、配置開啓nfs服務console

File systems  ---> class

Network File Systems  --->cli

<*> 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  

三、在uboot中設置以下啓動參數(IP根據實際使用更改)

setenv bootargs root=/dev/nfs nfsroot=192.168.1.141:/root/porting_x210/rootfs ip=192.168.1.10:192.168.1.141:192.168.1.1:255.255.255.0::eth0:off  init=/linuxrc console=ttySAC2,115200 

相關文章
相關標籤/搜索