Reprint Please specify source: http://blog.csdn.net/ruoyunliufeng/article/details/44994645
1. Install Vim
Vim is a commonly used editing tool in Linux, not much more introduced. Please refer to the installation method:
Http://jingyan.baidu.com/article/046a7b3efd165bf9c27fa915.html
2. Install NFS
The installation of NFS is for the Development Board to hang on the virtual machine's network File system method as follows:
Apt-get Install Nfs-kernel-server Portmap
Vim/etc/exports
Added this line:/work 192.168.6.* (Rw,sync,no_root_squash)
Simple description:/work is the directory you want to share, followed by the IP address you accept.
3. Install FTP
The purpose of the installation of FTP is mainly for the host and virtual machine transfer files, of course, but also for different purposes, the method is as follows:
Apt-get Install VSFTPD
Vim/etc/vsftpd.config
Remove #local_enable =yes, #write_enable The front of the =yes #
4. Network Settings
Because the virtual machine is installed by default NAT mode, we want to implement communication must be changed to bridge. First of all, I am the environment, I am a laptop, wireless network card Internet access, wired network card for connection routing, bridging. So the virtual machine has no network in bridge mode, so you need to switch to NAT mode when installing something. Let me introduce you to the following network settings:
Virtual Machine Network Settings ( Choose bridging mode ) virtual machine How to choose my previous article has introduced:
http://blog.csdn.net/ruoyunliufeng/article/details/20459483
Vim/etc/network/interfaces
Comment out (add # above):
Auto Lo
Iface Lo inet Loopback
Then write the following:
Auto Eth0
Iface eth0 inet Static
Address IP Addresses example:192.168.x.y
Gateway Gateways Example:192.168.x.1
netmask Subnet Mask Example:255.255.255.0
sudo/etc/init.d/networking Restart after exiting--Restart thenetwork card, make it configuration effective
Then restart the machine select the way to bridge, test the network, my settings are as follows
Virtual Machine 192.168.6.2
Computer host 192.168.6.3
Development Board 192.168.6.4
Go to the Development Board vim/etc/eth0-setting to modify the IP ( this time with the itop kernel, different development may be set differently )
All set up after three nets mutual Ping should be able to ping through
At this point can be tested, the previous FTP is built successfully, open Cuteftppro host try and virtual machine transfer files, if you can connect, but transfer failed, remember to change the permissions of the virtual machine folder. chmod 777/xxx
5. Cross-compilation tool
The meaning of the cross-compilation tool is that the tools you write on the virtual machine can run on the board as follows:
A. Use cuteftppro to copy "arm-2009q3.tar.bz2" from the Development Board CD-ROM to "usr"--"local" --"arm" ; compress the package to the current directory in Ubuntu system
B. Modifying the cross-compilation tool path
Join in vim/etc/environment
:/usr/local/arm/arm-2009q3/bin Directory Note The preceding: note there can be no spaces in the middle
source/etc/environment after the fix.
Then #arm tab to see if the environment variable is updated
Virtual machine software environment built by embedded environment