Android设备驱动开发-入口点
我将参与 Android 设备驱动程序的开发。在准备过程中,我想掌握基础知识并提高我的技能。
过去两年我一直在使用VB和JAVA,所以我对我的C编程没有信心。 Linux 设备驱动程序对我来说也是一个新世界。
目前,根据我在不同论坛中找到的提示,以下资源是一个很好的起点。
Q1:我可以听听您对此的建议吗?
Q2:您知道专门针对 android 的教程吗?
另外,这里是我应该学习的 android 的具体驱动程序。
- USB
- 蓝牙
- Wifi
- 摄像头
感谢您的宝贵时间!
I will be part of the development of device driver for android. In preparation, I want to grasp the basics and advance my skill for this.
I was on VB and JAVA for this past 2 years, so I don't have confident with my C programming. Linux device driver is a new world for me too.
Currently, according to tips I found in different forums, the below resource was good starting point.
Q1: May I hear your suggestions for this.
Q2: Do you know tutorials specific for android?
And also, here are the specific drivers of android I should learn.
- USB
- Bluetooth
- Wifi
- Camera
Thank you for your time!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我必须将 Android 内核和驱动程序移植到自定义平台。 Android 内核基本上是一个 Linux 内核 (2.6.x),但做了一些修改。内核和驱动程序主要是用 C 语言编写的,您必须了解它。如果您已经有其他语言的经验,那么您也可以通过该语言。网上有大量关于这方面的书籍和教程。不要忘记熟悉所有“指针”的东西。这是 C 语言的主要内容。linux 内核充满了指向数据结构的指针,甚至更多的是指向封装在数据结构中的函数的指针。
这是我获取所需信息和知识的方式。对于 Linux 内核,O'Reilly 的书很棒。我一直提到的设备驱动程序是:
“了解 Linux 内核”
“Linux 设备驱动程序”
至于专门用于编写 Android 内核内容的资源,我已经找了好几个月了,最终我总是使用 Linux 资源,并且完成了工作。
祝你好运,玩得开心,不要忘记获得新技能总是有好处的
I had to port an Android Kernel and the drivers to a custom platform. Android Kernel is basically a Linux Kernel (2.6.x) with a few modifications. The kernel and the drivers are mainly written in C and you will have to get into it. If you already have experience in other languages, you'll get through that one too. There are tons of books about that and tutorials on the WEB. Don't forget to get comfortable with all that "pointer" stuff. This is the main thing in C. The linux Kernel if full of pointer to data structures and even more, pointer to functions packed in data structures.
Here is how I got the informations and knowledge I needed. For Linux Kernel, the O'Reilly's books are great. The one I refer to all the time for device drivers are:
"Understanding The Linux Kernel"
"Linux Device Drivers"
As for resources very specific to writing Android Kernel stuff, I've been looking for that for months and I always end up using Linux resources and I got the job done.
Good luck, have fun and don't forget it's always good for you to gain new skills
你提到的第一本书非常好(那里描述了USB和网络)。
我建议的其他书籍位于:kernel source /Documentation/kernel-docs.txt
(也可以在这里:https://www.kernel.org/doc/Documentation/内核文档.txt)
The first book you mentioned is very good (USB and network is described there).
Other books I would suggest are in: kernel source /Documentation/kernel-docs.txt
(also available here: https://www.kernel.org/doc/Documentation/kernel-docs.txt)