Android Driver Development Chapter II Caprice

Source: Internet
Author: User

This chapter focuses on the relationship between traditional embedded development and Android systems.
First introduced is the embedded system, according to the IEEE definition, the embedded system is used to control, monitor live auxiliary operation machine, device, plant large-scale system equipment. The general definition is the expression: embedded refers to the application as the center, computer technology as the basis, software and hardware can be cut to adapt to the application system to function, reliability, cost, volume, power consumption requirements of the dedicated computer. Because the embedded system has the following characteristics: (1) dedicated, hardware and software can be trimmed configuration. (2) Low power consumption, high reliability and high stability. (3) The software code is short and concise. (4) Code curable (5) Real-time (6) weak interactivity (7) embedded system software development typically requires specialized development tools and development environments. (8) Require development, designers have high skills. So the development of embedded system in recent years is also more and more rapid.

Embedded system is composed of three parts, application software, embedded operating system and hardware equipment, these three parts can be divided into smaller parts.

The embedded development steps that are typically based on Linux systems are as follows:

1), the development of the target hardware system:

Select microprocessors, flash and other peripherals, etc.

2), establish a cross-development environment:

Install cross-compilation toolchain, configure serial communication tools, configure network communication tools, etc.

3), Development bootloader: Transplant bootloader, such as Vivi

4), porting the Linux kernel: such as linux2.4.18 kernel porting

5), develop the root file system: such as the production of Cramfs file system

6), the development of related hardware drivers: such as LCD, network card, GPIO, etc.

7), development of upper-level applications: such as network, QT GUI development

5, cross-compilation chain introduction

1), local compilation:

Compiled in the current platform, the compiled program is also executed locally, the compiler used is called the local compiler

2), cross-compiling:

Compile a program on one platform that can run on a different architecture, such as compiling a program on the X86 platform that can run on an arm platform, when the compiler used is called a cross-compiler

3), before compiling the Linux kernel and application, because the general embedded development system storage size is limited, usually in the performance of the PC to build a cross-compilation tool for the target machine chain, with the cross-compilation tool chain on the PC to compile the target machine to run the program

4), cross-compiler tool chain mainly consists of binutils, GCC, glibc 3 parts

5), compile the cross-compiler tool chain is a very complex process, but the general web has a compiled tool chain can be downloaded

Common cross-compiler versions are as follows:

2.95.3, 3.3.2, 3.4.1, 4.3.2, etc.

Android Driver Development Chapter II Caprice

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.