The construction of embedded Linux development environment and some ideas of embedded introduction __linux

Source: Internet
Author: User

Recently began to learn embedded Linux development, for embedded I was completely novice, but I still want to write something, to the later people to make a reference, so that some people less take detours.


1. Install the basic development environment under the host Linux:

$ sudo apt-get install build-essential
$ sudo apt-get Install Bison flex
$ sudo apt-get install Manpages-dev

2. Install the cross-compilation tool chain

As a novice, I recommend using a tool chain that has already been made (because I have tried to compile it myself, among them encountered countless wonderful problems, delayed a lot of time, but for themselves is also a exercise, if there is time I will tidy up the problems of compiling and then write a blog post.


Download Address: http://download.csdn.net/detail/luoyhang003/7967663


Create a new directory:

$ mkdir work/tools
$ cd Work/tools

Extract:

$ sudo tar xjf arm-linux-gcc-3.4.5-glibc-2.3.6.tar.bz2

Set path:

$ sudo gedit/etc/envrionment

Add Path:work/tools/gcc-3.4.5-glibc-2.3.6/bin

Install ncurses:

Ncurses is a dynamic library that provides function key definitions, screen drawing, and graphical interactive functions based on text terminals.

Download Address: http://download.csdn.net/detail/luoyhang003/7967731

We can use it here.

$ sudo arm-linux-gcc-v

To check if the cross-compilation tool chain is configured successfully


In addition, I have some small ideas and suggestions for embedded Linux development:

1. The knowledge and skills needed to get started:

-------> will use Linux (this is the most basic)

-------> Understand some of the commands in the cross compiler (ARM-LINUX-GCC, etc.)

-------> Understand makefile (Rules, common functions, etc.)

-------> Understanding Arm Assembly Instructions

-------> will use VI

-------> will use Linux basic commands (Tar,grep,find, etc.)


2. Recommended:

Tools Recommended:

Code reading, editing tools: Kscope (Linux)

Telnet tool: C-kermit (Linux)


Recommend a book:

"Embedded Linux application Development"--Vedon



Related 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.