Adding a driver to an Android tablet

天大地大妈咪最大 提交于 2019-12-24 03:18:46

问题


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 ?


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/17347430/adding-a-driver-to-an-android-tablet

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!