I just set up the cross-compilation environment and take notes, so I am afraid I will forget it. 1. Install the nfs service software on the host, Because Ubuntu is not installed by default $ sudoapt-getinstallnfs-kernel-server or install and modify the nfs configuration file/etc/exports using the Package Manager, add the following line/home/yourname/nvidir192.168.0.35 (rw, sync, no_roo
I just set up the cross-compilation environment and take notes, so I am afraid I will forget it.
1. Install the nfs service software on the host Because Ubuntu is not installed by default.
$ Sudo apt-get install nfs-kernel-server
Or use the new lide Package Manager to install
Modify the nfs configuration file/etc/exports and add the following line
/Home/yourname/1_dir 192.168.0.35 (rw, sync, no_root_squash)
The first parameter is the directory you want the client to access, the second parameter is the IP address of the host you allow, and the last () parameter is the access control method.
Note: The Host IP address above cannot be configured with *. Otherwise, access is denied on the client. What if we want to set LAN access? What should I do? Use a subnet mask, for example, 10.1.60.0/255.255.254.0 to allow access from 10.1.60. * And 10.1.61. *. You can also use the 10.1.60/23 Method to Determine the subnet.
Generally, you do not need to restrict ip addresses if you build an environment for your own platform, as shown below:
/Home/yourname/export dir * (rw, sync, no_root_squash)
This will be very convenient.
Start the NFS service on the host
Test Configuration File
$ Sudo exportfs-r
$ Sudo/etc/init. d/portmap start
$ Sudo/etc/init. d/nfs-kernel-server start
Run the showmount-e command to check whether the directory is shared.
Then, you can use the following command to share the directory shared on the pc:
Mount-t nfs-o nolock localhost:/home/xgc/mnt
Note: localhost is the IP address of the pc.
In this way, the shared directory is mounted to the/mnt directory of the board, and the Mount is canceled:
# Umount/mnt
If it is mounted on an embedded device, the-o nolock parameter must be added.
2, the following is the Arm-linux-gcc-4.3.2 Installation Steps
Download arm-linux-gcc-4.3.2.tgz (84 MB) See http://www.linuxidc.com/Linux/2011-04/34049.htm
Install the cross-compilation tool chain:
1. First, log on as the root user.
2. Copy the arm-linux-gcc-4.3.2.tgz to the tmp folder under the root directory
3. Unzip the tar xvzf arm-linux-gcc-4.3.2-C/
Note that the preceding command must have-C and uppercase letters followed by a space.
4. Configure the compiling environment path and enter gedit/root/. bashrc in the console. After a text editor is released, add the following code at the end of the file (the last line ).
Export PATH =/usr/local/arm/4.3.2/bin: $ PATH
After saving and disabling, log out of the current user and use the root account
Run the source/root/. bashrc command to make the newly added environment variable take effect ).
In this case, you can enter arm-linux-gcc-v on the console. If the installation is successful, the version number of arm-linux-gcc will be output.
If you want it to be used by a non-Super User. First, log in as a user
1. Enter the command: vi ~ /. Bashrc edit the. bashrc file and add the above content to the end of the file
Export PATH =/usr/local/arm/4.3.2/bin: $ PATH
2. Enter the command gedit/etc/profile.
Add at the end of the file
PATH =/usr/local/arm/4.3.2/bin: $ PATH
After saving the changes to the profile, execute source/etc/profile, after logging out of the current user, log on to the console and run arm-linux-gcc-v to check whether the execution is successful.