Armand
Armand

Reputation: 774

Adding a driver to an Android tablet

I'm creating a camera driver for Android. I've got my mydriver.c file. Apparently I need to compile it into a .ko, is that right ?

And then to load it I should do a #insmod ./mymodule.ko, will it work ?

Do I need to be root ? And how I put the .ko file on my Android tablet ?

Upvotes: 2

Views: 2840

Answers (2)

Eddy Talvala
Eddy Talvala

Reputation: 18117

Are you trying to make this new camera work as a standard camera through Android's camera API?

In that case, unless your tablet has a particularly unusual configuration, simply installing a new kernel driver will do nothing. You still need an Android camera HAL module implementation that converts commands and data between your driver's kernel interface and Android's camera framework code.

Upvotes: 0

rakib_
rakib_

Reputation: 142665

Yes, you need to be root. And, insmod ./yourmodule.ko should work fine.

Upvotes: 3

Related Questions