The most popular blog | the construction of Linux embedded system development environment under Windows system

The installation process described in this paper is applicable to Windows system. When we need to develop and run programs on some development boards on the PC side, we need to build a cross compilation and development environment on the PC side. The following describes the method and steps of setting up the environment. Before the environment is ready to install, please download the software package: download the vmware-workstation-10 version of the virtual machine installation package. The vm10 version supports 32-bit and 64 bit operating systems, and the vm11 and above version only supports 64 bit operating systems The following description is an example of installing vmware-workstation-full-10.0.4-2249910 on a 32-bit XP system.

Download the Ubuntu 12.04 32-bit system image from the Ubuntu official website. Other versions of the system may have problems during development. To install VMware, double-click vmware-workstation-full-10.0.4-2249910.exe and follow the prompts. Install the virtual machine to run VMware, enter the following interface: select create new virtual machine, enter the wizard

       

By default, next & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;


Choose to install the operating system later. Create an empty virtual machine first, and then install Ubuntu system. Next step.

&Nbsp; & nbsp; & nbsp; & nbsp; & nbsp; select the operating system and version. Next, define the name of the virtual machine and select the path to save the virtual machine. Next, set the disk size of the virtual machine. If the hard disk space of the PC is large enough, increase the disk size. In addition, choose to store the virtual disk as a single file. next step. virtual machine creation completed. &Nbsp; & nbsp; & nbsp; & nbsp; & the Ubuntu 4 you just created appears in the left column of VMware.


 


Next, install Ubuntu 12.04 operating system. In the created virtual machine, stand-alone CD / DVD, pop up the virtual machine setting window, select the Ubuntu 12.04 system image we downloaded, set “connect at startup”, and confirm.

   


Turn on this virtual machine
Select the language: Chinese (Simplified), and start installing Ubuntu to save time, do not select “download updates during installation” and “install third-party software”. These software can be updated after the system is installed. Continue. &Nbsp; & nbsp; & nbsp;
Continue with default settings
Set time zone, continue

Select keyboard to continue
Customize user name and login password, continue

After a long wait, the final installation is complete.          

In case of splash screen, please turn off the virtual machine (virtual machine power off) and remove the “accelerated 3D graphics” set by the virtual machine.
    
When you start the system, you will need to log in the user and password. If you enter the user name and password entered during the virtual machine installation, the system will start successfully. In development, we often need to use some commands, which can only be executed with root permission. When installing the virtual machine, the virtual machine does not let us set the password of root, so we cannot log in the system with root user. If we want to use these commands with root permission, we need to use sudo command, but add SUD every time we enter some commands O it’s troublesome, so if we can log in as root, we can get rid of these troubles. The way to set the root password is as follows: enter the console and enter sudo passwd root command. At this time, you can set the root password . After the root password is set successfully, you can use the suroot command to switch to root. At this time, you need to enter root The user’s password can be entered according to the password entered previously. After each system restart, you can choose root permission to log in. Note: when you use the above command to enter the password, the interface will not respond. You will be misunderstood as you have not entered it. In fact, the Linux system is designed as such. In fact, your input is effective

If installing a 64 system, pay attention to installing a 32-bit compatible package. Use the following name 1: sudo apt get install update to update the software source. 2: sudo apt get install lib32zl lib32ncurses5 lib32stdc + + 6-4.8-dbg, install the three packages. To create a shared folder, we usually want to share data between the virtual machine and the windows host when using the virtual machine. For example, windows and the virtual machine share folders, so that the files in windows can be accessed by the virtual machine through the shared directory. In the same way, some files in the virtual machine can be shared to windows through the shared folder. In addition, with this enhanced function, we can also In order to copy the content pasted on the windos side to the pasted on the Linux side, many convenient installation methods are provided for the development as follows: first, install the VMware Tools Tool for the virtual machine & nbsp; & nbsp; & nbsp; & nbsp;

Pop up the following dialog box, click “yes”

Extract the VMware tools.tar.gz in the launched vmware tools to the home directory.

            

Press Ctrl + Alt + T to open the terminal, enter the extracted VMware Tools distrib directory, and run VMware install.pl: & nbsp; sudo. / VMware install.pl & nbsp;



After entering the login password, press enter all the time, and finally see the installation of “ejecting device / dev / sr0…”. Now let’s set the shared folder to open the virtual machine settings: virtual machine – settings add the shared folder as follows & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp;

Select the folder path the host wants to share & nbsp; & nbsp; & nbsp; & nbsp; done, OK.          


Open the Ubuntu terminal, enter the / MNT / HGFs directory, and see the shared folder WM? Share.    

        


At this point, you can copy the content to the shared directory in windows, and you can view these files in the directory / MNT / HGFs / wm_share in the virtual machine. Similarly, if you copy the content to the directory / MNT / HGFs / wm_share in the virtual machine, you can also see these files in the shared directory in windows.


You can copy content in windows or paste it into the editing software or command line in Linux.


★ the above contents are provided by individuals and have nothing to do with the platform. If there is any violation or infringement, please contact us.


Click to read the original text, unlock the Internet of things, cars, power 900 + solution, and 700 + technology Daniel online.


Leave a Reply

Your email address will not be published. Required fields are marked *