写安卓驱动?
我需要开发一些适用于 Android4SAM 评估板的 Android 驱动程序。 我开始在 Linux 内核中将驱动程序编写为普通的字符驱动程序,并且它们按计划工作。下一步是什么?我没有找到任何有关将设备驱动程序移植到 android 以及为这些驱动程序扩展 android API 的信息。 任何人都有这方面的经验,也许是一个小教程或指南?
I need to develop few drivers for android that should work on Android4SAM eval board.
I started writing the drivers as a normal char drivers in linux kernel, and they work as planned. whats the next step?, I didn't find any information regarding device driver porting to android, and extending the android API for those drivers.
anyone has experience with that, maybe a small tutorial or guide ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的经验(4.0 之前),您需要查看制造商安装在设备上的内核(可以在他们的网站上找到它 - 通常他们提供源代码)。然后,您可以将您的模块(驱动程序)编译到此中并用它刷新手机,或者在首次运行时安装该模块,这将需要 root 权限才能完成。
From my experience with this (pre 4.0) you need to look at the kernel the manufacturer is putting on the device (can find it on their site - usually they provide the source). Then you can either compile your module (driver) into this and flash the phone with it or install the module on first run, this will require root privileges to do.