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