分类: 嵌入式
2015-11-19 20:34:49
实现步骤:
1.PC端sudo apt-get install portmap
2.PC端:sudo apt-get install nfs-kernel-server
3.PC端:sudo gedit /etc/exports
添加:/home/share 192.168.1.*(rw,sync,no_root_squash)
4.PC启动:sudo /etc/init.d/portmap restart
5.PC端启动:sudo /etc/init.d/nfs-kernel-server restart
6.DM8168连接时:PC:sudo ifconfig eth0 192.168.1.101 netmask 255.255.255.0
DM8168板:ifconfig eth0 192.168.1.102 netmask 255.255.255.0
7.DM8168板上mount: busybox mount -t nfs -o nolock 192.168.1.101:/home/share /mnt/hosts