Embedded Linux Tour--the basic development environment of environment construction

Source: Internet
Author: User
Tags posix

Before we learn to develop Linux , we have to build a good environment for compiling and developing. But because of the environment and the choice of tools, everyone's habits and hobbies are different, so this article I will post some necessary software installation, if the individual has some software needs to install the configuration, you can use the Internet to search or find the book configuration.

Before installing the specific software, it is necessary to introduce the environment and tools I use. First of all, I use two computers, one is Win7the system,The other is Ubuntu 14.04the system, of course, is primarily developed inUbuntuthe next completed. If we don't have the conditions,You can install the virtual machine or install it directlyLinuxThe system is also a must. Besides, I've got a set in my hand.2440the Development Board, as an embeddedLinuxThe experimental board is suitable for two reasons: first, the hardware is simple. Samsung's2440is common on the market to be able to runLinuxThe system is relatively simpleCPUone of them. Secondly, the information is huge. Because 2440 out of the early, on the internet can quickly find the answer we want, which is more conducive to learning new technology. I'mUse Openjtag to download and debug the program, there is no relationship, you can useJlinkor the same port download, as long as the download goodUboot, you can get rid of the tools below.

1, the installation of common software

A) You first need to execute the following command to update and upgrade the software source:

    sudo apt-get update && sudo apt-get upgrade

b) Install some of the required environments and software:

    sudo apt-get install-y build-essential Bison Flex Curl Tree Valgrind Unrar

c) install the man Manual, you can later see the use of the function by a similar "man read" :

    sudo apt-get install-y manpages-posix Manpages-posix-dev

2. Installing and configuring the serial port tool ckermit:

A) install ckermit:

    sudo apt-get install Ckermit

b) create a new ". KERMRC" file in your home directory and configure it as follows:

     Setline/dev/ttyUSB1SetSpeed115200Setcarrier-Watch offSetHandshake NoneSetflow-Control None RobustSetFile Type binSetfile name litSetRec Pack +SetSend Pack +SetWindow5C

The ttyUSB1 in "set LINE/DEV/TTYUSB1" above should be set according to the actual situation.

  c) run the following command to add your own user name to the dialout Group, and you will not need to use super privileges or use the Kermit command directly:

    sudo usermod-ag dialout Richard

Sign out or restart it to take effect. So we can use the serial terminal and the Development Board interaction, of course, this is built on your experimental board has uboot and system based on.

The next section will show you how to burn a bare-metal program.

Embedded Linux Tour--the environment constructs the basic development environment of the construction article

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.