<span style= "font-family:arial, Helvetica, Sans-serif; Background-color:rgb (255, 255, 255); " > recently began to learn embedded Linux development, for embedded I am completely novice, but I still want to write something, to the later people to make a reference, let some people less go some detours. </span>
1. Install the basic development environment under host Linux:
$ sudo apt-get install build-essential$ sudo apt-get install bison flex$ sudo apt-get install Manpages-dev
2. Installing the cross-compilation tool chain
As a novice, I suggest that the use of a good tool chain has been made (because I have tried to compile their own, which met with countless wonderful questions, delayed a lot of time, but also a workout for themselves, if there is time I will tidy up the problems of the compilation and then write an article blog)
: 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 functional key definitions, screen drawing, and graphical interactive functions based on text terminals.
: http://download.csdn.net/detail/luoyhang003/7967731
We can use it here.
$ sudo arm-linux-gcc-v
To check if the cross-compilation toolchain is configured successfully
In addition, I have some small ideas and suggestions for embedded Linux development:
1. Getting started requires knowledge and skills that are progressively understood:
-------> will use Linux (this is the most basic)
-------> Understanding some of the commands in the cross compiler (ARM-LINUX-GCC, etc.)
-------> Understanding Makefile (Rules, common functions, etc.)
-------> Understanding Arm Assembly Instructions
-------> will use VI
-------> will use Linux basic commands (Tar,grep,find, etc.)
2. Recommended:
Tool Class Recommendation:
Code reading, editing tools: Kscope (Linux)
Telnet tool: C-kermit (Linux)
Recommend a book:
"Embedded Linux application Development"--Vedon
Embedded Linux development environment and some ideas for embedded entry