参考链接
http://blog.csdn.net/myarrow/article/details/7175204
Android硬件抽象层(HAL)概要介绍和学习计划
http://blog.csdn.net/luoshengyang/article/details/6567257
二. 在Android系统中增加C可执行程序来访问硬件驱动程序。
三. 在Android硬件抽象层增加接口模块访问硬件驱动程序。
四. 在Android系统中编写JNI方法在应用程序框架层提供Java接口访问硬件。
五. 在Android系统的应用程序框架层增加硬件服务接口。
六. 在Android系统中编写APP通过应用程序框架层访问硬件服务。
在Ubuntu上为Android增加硬件抽象层(HAL)模块访问Linux内核驱动程序
http://blog.csdn.net/luoshengyang/article/details/6573809
在Ubuntu上为Android系统编写Linux内核驱动程序
http://blog.csdn.net/luoshengyang/article/details/6568411
一、Linuxkernel添加HelloDrv
Ø 1.1 code
release-o1-one/kernel-4.4/drivers/hello/hello.c
release-o1-one/kernel-4.4/drivers/hello/hello.h
Ø 1.2 build
1.2.1 release-o1-one/kernel-4.4/drivers/hello/Kconfig内容
config HELLO
tristate "First Android Driver"
default n
help
This is the first android driver.
1.2.2 release-o1-one/kernel-4.4/drivers/hello/Makefile内容
obj-$(CONFIG_HELLO) += hello.o
release-o1-one/kernel-4.4/dri