|
1、下载安装NFS服务程序
#sudo apt-get install nfs-kernel-server
2、在虚拟机linux配置nfs服务,编辑nfs配置文件/etc/exports,设置共享目录
如:vim /etc/exports
添加:/home/bw-lpc1788/rootfs *(rw,sync,no_root_squash)
3、在虚拟机linux启动NFS服务:(修改配置文件后就需要重新启动nfs服务)
#/etc/init.d/nfs-kernel-server restart
4、配置IP地址,使开发板和linux系统处于同一个IP地址段
5、U-BOOT启动参数设置
set bootargs noinitrd init=/linuxrc root=/dev/nfs nfsroot=192.168.1.200:/home/bw-1788/rootfs lpc178x_platform=ea-lpc1788 console=ttyS0,115200 panic=10 ip=192.168.1.10:192.168.1.200:192.168.1.1:255.255.255.0:ea-lpc1788:eth0:off
6、配置内核支持NFS启动
Networking Support --->
[*] Networking support
Networking options --->
[*] TCP/IP networking
[*] IP: kernel level autoconfiguration ## 必选
File systems --->
Network File Systems --->
<*> NFS client support ## 必选
[*] Provide NFSv3 client support ## 可选
[*] Root file system on NFS ## 必选 |
|