Fifth chapter Android Transplant and drive reading notes

Source: Internet
Author: User

In this chapter we mainly learn about Android porting and driving relationships, device driver module, Linux core with Android Drive, and Android drive Helloword these content! The operation of any computer system is the result of hardware and software collaboration, no hardware is in the castle, and the hardware without software is just a pile of scrap metal. Hardware is the underlying foundation, is the platform for all software to run, the code will eventually be implemented as a combination of hardware logic and timing logic, the software to achieve a specific application, it is designed according to a variety of business needs, to meet the needs of users. Hardware is fixed, software is flexible, can adapt to a variety of complex and changeable applications. It can be said that the computer system hardware and software to each other to achieve each other. However, there is also a paradox between hardware and software, which is that hardware should not penetrate each other's territory. In order to complete the design as quickly as possible, the application software engineer does not want or care about the hardware, and the hardware engineer is also difficult to have enough leisure and ability to account for the software. For example, application software engineers do not have to care about interrupts on the NIC, registers, storage space, I/O ports, slices, and any other hardware vocabulary when calling sockets to send and receive packets, and when using the printf () function to output information, do not know what the underlying is The corresponding information is output to the screen or the serial port. In other words, application engineers need to see a purely software world without hardware, and hardware must be presented transparently to them. Who can realize the invisibility of hardware to application software engineers? This arduous task falls on the driver engineer. The most popular explanation for device drivers is "driving hardware devices to action." Device driver and the underlying hardware directly, in accordance with the specific work of the hardware device read/write device registers, the completion of the device polling, interrupt processing, DMA communication, physical memory to virtual memory mapping, and ultimately enable the communication equipment to send and receive data, so that the display device can display text and screen, so that the storage device can record Files and data. As a result, device drivers act as a link between hardware and application software, making it possible for the application software to invoke the Application programming interface (API) of the system software to enable the hardware to do the required work. In the absence of operating system in the system, the engineer can define the interface according to the characteristics of the hardware device, such as the definition of Serialsend (), Serialrecv (), the definition of Lighton (), Lightoff (), and the definition of Flash Flashwrite (), Flashread () and so on. In the case of an operating system, the device-driven architecture is defined by the corresponding operating system, and the driver engineer must be driven by the corresponding architecture design device so that the device driver can be well integrated into the operating system's kernel. The driver communicates the hardware and application software,The driver engineer communicates with the hardware engineer and the application software engineer.

Fifth Android transplant and drive reading notes

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.