Thanks for the hard work, we finally finished the NFS network.
First, the computer and the Development Board need to be connected to the router to form a LAN (I ignored this ...)
PC: Ubuntu 12.04
Development Board: Linux 2.6.32.2 click to view Ubuntu to burn Linux TO THE DEVELOPMENT BOARD
1st PC end
1. Install NFS
#Sudo apt-Get install nfs-kernel-server Portmap
2. Configure the exports sharing path
#Mkdir/nfsroot// Create the nfsroot directory
#Chown lianghuiyong/nfsroot// Lianghuiyong is a common user of mine (chown in Ubuntu and chmod in others)
#Sudo Vim/etc/exports// Configure the shared path
Added:
/NFSboot 192.168.1.102(insecure,rw,sync,no_root_squash)
/Nfsboot is a shared folder on the PC. to mount a file to the Development Board, you only need to copy the file to/nfsboot, and the development board can access the file through NFS.
3. PC-side IP settings
The default IP address of the Development Board System is 192.168.1.230.
On the PC end, I set it to a static IP address.
4. Restart NFS
#Sudo/etc/init. d/Portmap restart
#Sudo/etc/init. d/nfs-kernel-server restart
5. I don't know if the firewall has any influence, but I disabled it before.
#UFW disable
6. I encountered some problems before, and I didn't have to make these changes.
#Vim/etc/hosts. Deny
Add the last six rows, as shown in figure
#Vim/etc/hosts. Allow
Modify the image as shown in the following figure:
This is the PC end.
Ii. Development Board 1. Open minicom // view Ubuntu to install minicom
2. The Development Board nandflash is powered on (ensure that the Development Board, computer and router form a LAN)
3. Input [email protected]/] In minicom on the NFS network file Development Board. #
Mount-T nfs-O nolock 192.168.1.102:/nfsboot/mnt
(I added several files to nfsboot for verification.) There should be no errors. If there are any errors, let's look at the typical quote of the class teacher: Haha...
Note:-O nolock cannot be less, but I cannot mount it if I miss it. The command is to mount the/nfsboot directory of 192.168.1.102 (PC end) to the/mnt directory under the Development Board to access the/mnt directory of the Development Board to access the/nfsboot directory on the PC end.
Detach an NFS network file #
Umount 192.168.1.102:/nfsboot/mnt
3. It's too late to run the hello example on the sample development board tomorrow.
Download the execution file to the Development Board through network file system NFS in Ubuntu