NFS mounting for Tiny_4412 and Tiny_4412NFS mounting
Device connection: Cross-network cable, serial cable, USB cable, power cord network settings: Laptop ubuntu: wifi, set IPv4 to "local connection only", do not automatically, at this time, wifi has disabled ifconfig to view the pc address inet/IP: 169.254.9.78 Mask/Mask; 255.255.0.0 broadcast address: 169.254.255.255 Development Board default: 192.168.1.230 set the two in the same CIDR Block: Modify the Development Board: /etc/eth0-setting to change its IP address to the IP address you want to set: 169.254.9.100Mask; 255.255.255.0.0gateway: 169.254.255.255DNS: 169.254.255.255MAC; do not change the hardware address restart the Development Board, use the ifconfig command, it. Ping each other to ping the network. Press ctrl + c to stop or ping-c 5 ip to specify the number of packets sent to build nfs:
Install: sudo apt-get install nfs-kernel-server nfs-common portmap
Configuration: vim/etc/exports
/Home/mrwang/nfs * (rw, sync, no_subtree_check)
1. sudo/etc/init. d/rpcbind restart Note: nfs is an RPC program. before using it, you need to map the port and set it through portmap. Here is rpcbind2. # sudo/etc/init. d/nfs-kernel-server restart <--- restart nfs service 3. # showmount-e <--- display shared directory local test: # sudo mount-t nfs localhost:/home/wang/nfs/mnt or: sudo mount 127.0.0.1: /home/wang/nfs/mntcm/mntls Note: localhost is the IP address of the local linux server. In this way, the shared directory is mounted to the/mnt directory. To unmount the directory, use: # sudo umount/mnt. Note: umount is displayed because it is currently operated in the mnt directory. nfs:/mnt: device is busy. You only need to exit the mnt directory and execute the umount command. Mount the Development Board: if it is used on an embedded device, add the-o nolock parameter to the mount command I used on the Development Board: mount-t nfs-o nolock 169.254.9.78: /home/wang/nfs/mnt has been mounted. You can view it on your own.
Cp file to/home
Open the rcS in etc/init. d.
Add path at the end:
/Home/hello
At this point, the application code written by the user is executed at startup.