Installing Ubuntu16.04lts in virtual machine WMWare12.5 and establishing an embedded Linux development environment

Source: Internet
Author: User
Tags gz file server installation and configuration

1, install VMWare12.5 in WIN10;

2, install 32-bit Ubuntu 16.04 LTS in VMWare12.5;3. Installation of VMware Tools;after the guest OS Ubuntu installation is complete, click Vm->install VMware Tools under VMware, and then Ubuntu will load the ISO files of VMware tools into the virtual CD-ROM and copy the tar files to the ~ /tmp directory, unzip it, and run: sudo./vmware-install.pl, then go all the way to the carriage. After you install VMware Tools, you can copy files from the host operating system to the guest operating system, and the resolution is automatically delivered when the virtual machine is full-screen.  4, after the installation is complete, enter Ubuntu, install g++;Press Ctrl+alt+t, the terminal appears, enter: #sudo apt-get install g++, you can mount g++.

5. Installing QT Creator
search for Qt Creator in the Software center of Ubuntu 14.04 Lts and install it;    Note the point:
? It is best not to upgrade Ubuntu, sometimes the system crashes;
? This QT creator is only used to organize, browse, UI design, encode, and not compile the entire project;
Compiling a compiler version of embedded Linux from a NDT project; 6. Install Sogou Input Methodfrom the Sogou Input method website Download x64 Sogou Input Method Deb installation package, double-click, you can install the Sogou input method in Ubuntu;This input method is not available in Qt creator because Qt creator uses the FCITX IME framework, and Ubuntu installs the IBUs IME framework by default, so you need to run the following command:#sudo apt-get Install fcitx-frontend-qt5after installation can be used in Qt creator based on the Fcitx Input method framework of Sogou input method; 7, copy of the root file system has been donein other systems, a well-established root file system can be copied to other Linux for use. However, the Rootfs cannot be copied directly, some of which have device nodes, and the direct copy cannot succeed. pack with tar first:$ tar-czvf rootfs.tar.gz ~/rootfsthen, in the operating system that you want to copy to, go to the/home/administrator directory:$ cd/home/administratorfirst, elevate the permissions to the root user:$ sudo suthen unzip:$ TAR-XZVF rootfs.tar.gzThis allows the rootfs of other system systems to be copied to the system.  7. NFS Server Installation and configuration
(1) Ubuntu does not install Ubuntu NFS server by default, so first install Ubuntu NFS Server side:#sudo apt-get Install Nfs-kernel-server
(2) Ubuntu NFS allows mount directories and permissions to be defined in file/etc/exports.
For example, we want to share the Rootfs directory under the root directory, then we need to add the following line at the end of the/etc/exports file:/home/administrator/rootfs * (rw,sync,no_root_squ ASH).
Where:/home/administrator/rootfs is the directory to be shared, and also the shared directory we will use as the root file system for s5pv210. * Delegates allow all network segments to be accessed,RW is a read-write permission,Sync is data synchronously written to memory and hard disk,No_root_squash is the permission of the Ubuntu NFS client to share directory users,If the client is using the root user, the client has root privileges for that shared directory. Note that there are no spaces between * and behind ()(3) Restart the NFS server after the configuration is complete.
$sudo/etc/init.d/nfs-kernel-server Restart
(4) Test the NFS service. For example, mount the/rootfs under/mnt:
$ sudo mount-t NFS localhost:/home/administrator/rootfs/mntyou can run the DF command to see if the mount succeeds. After viewing, you can uninstall using the following command:
$ sudo umount/mnt 
8. Installing TFTP
(1) #sudo apt-get install TFTP-HPA TFTPD-HPA The former client program, the latter as the service program.
(2) #sudo mkdir ~/tftp
#sudo chmod 777 ~/tftp
(3) #cd ~/tftp
(4) #gedit Test1.txt
enter data to save and exit
(5) #cd ~
(6) #gedit test2.txt
enter data to save and exit
(7) #sudo GEDIT/ETC/DEFAULT/TFTPD-HPA
tftp_username= "TFTP"
tftp_directory= "/home/administrator/tftp"//This is your TFTPD-HPA's service directory, which you want to build anywhere.
tftp_address= "0.0.0.0:69"
Tftp_options= "-l-c-S"
Here is the option,-C is the parameter that can upload the file,-S is the specified TFTPD-HPA service directory, the above has been specified
(8) #sudo service TFTPD-HPA Restart start-up services
(9) test
#tftp localhost
Tftp>get Test1.txt
Tftp>put Test2.txt
Tftp>quit #ls
will see Test1.txt#cd tftp
#ls
Test1.txt,test2.txt are present.
If it succeeds, there is no hint, and basically no delay is visible. Attention strictly in accordance with the above operation, do not move the xinetd configuration. You only need to modify the/ETC/DEFAULT/TFTPD-HPA.  9. Install cross-compilation tool chain
(1) method selection
we use arm-linux-gcc-4.5.1 (the same as Mini6410), which automatically takes the armv7 instruction set when compiling the kernel, supports hard floating-point operations, and the detailed steps to install it.
Copy the following files from the friendly CD to the virtual machine:arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz
(4) Installation permissions and installation directory
              ? Use the files downloaded above to install, the installation requires the use of root permissions.
              ? The default is installed in the/OPT directory, the general Ubuntu after the installation will be in the root directory has an opt directory, if not created a new directory: # mkdir-p/opt
(5) Extracting source files
refer to the installation of TI, the installation path is/opt directory, unzip the source file into the/opt directory.
#sudo tar xvzf arm-linux-gcc-4.5.1-v6-vfp-20120301.tgz–c/ (6) Setting environment variables
# sudo gedit ~/.bashrc
add an environment variable by adding a row at the end of the. bashrc file
export path= $PATH:/opt/friendlyarm/toolschain/4.5.1/bin
(7) Make the setting effective
# source ~/.BASHRC
(8) View the Linux environment variables
#echo $PATH
or
# printenv
(9) test the installation results
input
# ARM-LINUX-GCC
prompts no input file to indicate that the installation was successful.  10. Installing the Mktools tool chainin order to write the target file system to the Development Board, it is usually necessary to make the target file system directory into a single image file for burning or copying, and the Linux kernel usually hangs in different formats according to the command line parameters such as YAFFS2, Ubifs, ext2, etc. You need to use both the mkyaffs2image-128m and mkyaffs2image-mlc2 tools here. The mkyaffs2image-128m tool is suitable for SLC NAND flash, while the MKYAFFS2IMAGE-MLC2 tool is suitable for MLC NAND flash, which are used to suppress YAF An image file in the FS2 format. Copy the mktools-yyyymmdd.tar.gz file from the CD to the home directory, and install the Mktools toolchain by executing the following command: #tar xvzf mktools-20120518.tar.gz – C/ (note: YYYYMMDD is replaced with the actual date) will be created in the/usr/sbin directory to generate the appropriate toolset. Note: c is uppercase, C is followed by a space, C is to change the decompression installation directory meaning: If you have previously installed mini2440 or mini6410 used Mkyaffs2image series tools, they will be overwritten, do not worry, they function is the same.  10, install the necessary tool software Tmake
the software is: http://www.embeddedlinux.org.cn/emblinuxappdev/80.html
(1) #cd Linuxtools
(2) #tar-VXJF tmake-2.12.tar.bz2
(3) #sudo gedit ~/.BASHRC Modify the ~/.BASHRC file, add the following after
export tmakepath= "/home/administrator/linuxtools/tmake/lib/linux-g++"export path= "$PATH:/home/administrator/linuxtools/tmake/bin"here Tmake according to the individual extract the name of the package, mine is tmake-2.12, so the top of the
~/.BASHRC is added after the content is
export tmakepath= "/home/administrator/linuxtools/tmake-2.12/lib/linux-g++"export path= "$PATH:/home/administrator/linuxtools/tmake-2.12/bin"  11, installation jpeg-6b
(1) #cd linuxtools/jpeg-6b
(2) #./configure
(3) #make
(4) #make test

12, installation zlib
(1) #cd linuxtools/zlib-1.2.3
(2) #./configure
(3) #make
(4) #sudo make install

13, installation libpng-1.2.14
(1) #cd linuxtools/libpng-1.2.14
(2) #./configure–prefix=/home/administrator/linuxtools/armqt(3) #make
(4) #sudo make install 14, installation qt-embedded-linux-opensource-4.5.3
(1) #cd Linuxtools
(2) #tar-XZVF qt-embedded-linux-opensource-src-4.5.3.tar.gz
(3) #cd qt-embedded-linux-opensource-4.5.3/mkspecs/qws/linux-arm-g++
(4) #cd ~/linuxtools/qt-embedded-opensource-4.5.3
(5) #./configure--prefix=/home/administrator/linuxtools/armqt-opensource-fast-no-largefile-qt-sql-sqlite- No-libtiff-no-libmng-qt-libjpeg-qt-zlib-qt-libpng-qt-freetype-no-openssl-nomake examples-nomake Demos-nomake Tool S-optimized-qmake-no-phonon-no-nis-no-opengl-no-cups-no-xcursor-no-xfixes-no-xrandr-no-xrender-no-xkb-no-sm-no -xinerama-no-xshape-no-separate-debug-info-xplatform qws/linux-arm-g++-embedded Arm-no-armfpa-little-endian- Host-little-endian-nomake demo-nomake examples-nomake tools-nomake docs-depths 8,16,18,24-no-glib-qt-kbd-usb-qt-kb D-usb-qt-kbd-tty-qt-mouse-pc-no-glibNote:
     ? --PREFIX=/HOME/ADMINISTRATOR/LINUXTOOLS/ARMQT Specifies the installation path for this embedded version of QT     ? If you want to clear the above configuration, you need #make Confclean
(7) #make
(8) #sudo make install  15. Compiling NDT Project
(1) Copy the NDT project to the ~/ndt/catalogue and unzip;
(2) Enter the directory
#cd ~/ndt/ndt_app
(3) first allow Qmake to generate the required makefile for embedded version compilation
#~/linuxtools/armqt/bin/qmake Ndt.pro
~/linuxtools/armqt/bin/qmake is the absolute path for the embedded version of Qt Qmake, this qmake handles NDT project files Ndt.pro, generating makefile
(4) Compiling NDT project
#make
after compiling, the NDT executable will be produced, which will be copied to the ~/ROOTFS path as NFS mounted on the arm board for running, debugging. #cp./ndt ~/rootfs  16, in Win7 host system installed SECURECRT, as a super terminal, display the debugging information of the serial port.

Installing Ubuntu16.04lts in virtual machine WMWare12.5 and establishing an embedded Linux development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.