Want to develop new HAL and device driver for Android

1,439 views
Skip to the first unread message

Chirag Shah

unread,
24 Apr 2012, 23:34:3124/04/2012
to Android Linux Kernel Development
Hi All,
I have compiled and loaded android ICS into pandaboard ES. I also
downloaded android linux kernel source and modified to put few printks
and it is also working with ICS. So i am ready for development.
I want to create new device driver and want to add support into
Android framework as well.
As of now i can see following different level of development for this
(pls correct me if i miss anything) :
Linux device driver -> HAL -> JNI files to support in Application FW -
> Java application.

My question is, where can i get information and documents / code
reference for
(1) HAL development and
(2) android specific changes in linux driver

Also which device HAL will be good reference as a start point to
understand android specific HAL?

Thanks,
Chirag Shah

William W.-Y. Liang

unread,
24 Apr 2012, 23:59:4424/04/2012
to android...@googlegroups.com
Hi Chirag, 

I would recommend that you start with LightService, which contains a relatively simple HAL implementation in AOSP.

Best Regards,
William Liang
http://www.ntut.edu.tw/~wyliang



2012/4/25 Chirag Shah <chirag...@gmail.com>

Nikko Torcita

unread,
25 Apr 2012, 00:36:1425/04/2012
to android...@googlegroups.com
Chirag,


That's my main reference when i ported a USB camera to an android tablet. Both HAL and and android driver codes have been shared by the OP.

Regards,
Nikko Torcita

Chirag Shah

unread,
25 Apr 2012, 20:46:1325/04/2012
to Android Linux Kernel Development
Hi All,

Thanks for the reply. It will be great help if you can refer some link
for documentation/ presentation explaining architecture od Android HAL
and how it communicates with linux device driver.

Thanks,
Chirag Shah

William W.-Y. Liang

unread,
25 Apr 2012, 22:42:4225/04/2012
to android...@googlegroups.com

Hi,

I have some introductory slides at the following link, for your reference.

http://www.ntut.edu.tw/~wyliang/#Download

BRs,
William W.-Y. Liang
http://www.ntut.edu.tw/~wyliang
--- this mail was sent from my phone ---

ranchu

unread,
24 Dec 2016, 16:23:2924/12/2016
to Android Linux Kernel Development
Hello,

Do we need to download all Android stack in order to build a single HAL library ?

Thank you,
Ran
Reply all
Reply to author
Forward
0 new messages