The first chapter of Android Deep Exploration is an overview of Android system porting and Driver development. This section will be a general introduction to Android and Linux drivers.
Android is a very good embedded operating system. After several years of development and evolution, Android has formed a very complete system architecture. Android's system architecture is divided into four layers, such as
Android migration can be divided into two parts: application porting and system porting.
Android system porting refers to having the Android operating system run on a particular hardware platform. One of the first conditions in which an operating system runs on a particular hardware platform is that the operating system supports the CPU architecture of the hardware platform.
Android porting in addition to porting the CPU architecture, the most important thing is to migrate Linux drivers.
Android porting is largely a migration of the Linux kernel. Linux kernel porting is primarily a porting driver.
/proc is not an ordinary file system, but an image of the system kernel, which means that the files in that directory are stored in the system memory.
I learned from this chapter that, regardless of which version of the Linux kernel, the methods and procedures for developing Linux drivers are basically the same, As long as you have mastered the driver development of a Linux kernel version (recommended using the Linux2.6 or linux3.x kernel version), other Linux kernel versions are easy to master.
GUN C is also a must-know technology for learning Linux drivers. GUN c is an extension to standard C. Is the most commonly used C language compilation environment under Linux/unix.
Reducing the coupling between software and hardware becomes the most important problem to solve at present.
Linux drivers are only relevant to the Linux kernel, regardless of the Linux system used by the user. In other words, no matter which Linux system, as long as the use of the same Linux kernel, the driver can be common.
Android Deep Exploration Volume One chapter I overview of Android system porting and driver development.