![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux驱动
文章平均质量分 79
Leo_Walker
知而不行,是为不知;行而不知,可以致知
展开
-
最简单的驱动hello.c与Makefile模板
一、hello.c文件分析#include#includeMODULE_LICENSE("Dual BSD/GPL");static int hello_init(void){ printk(KERN_ALERT "Hello,init the module!"); return 0;}static void hello_exit(void){转载 2016-06-27 21:01:33 · 2129 阅读 · 0 评论 -
ARM Linux 3.x 的设备树(Device Tree)之DTB、DTS
1、ARM Device Tree起源Linus Torvalds在2011年3月17日的ARM Linux邮件列表宣称“this whole ARM thing is a f*cking pain in the ass”,引发ARM Linux社区的地震,随后ARM社区进行了一系列的重大修正。在过去的ARM Linux中,arch/arm/plat-xxx和arch/arm/mach-x转载 2016-07-05 11:25:08 · 2280 阅读 · 0 评论 -
Linux驱动开发学习的一些必要步骤
1. 学会写简单的makefile2. 编一应用程序,可以用makefile跑起来3. 学会写驱动的makefile4. 写一简单char驱动,makefile编译通过,可以insmod, lsmod, rmmod. 在驱动的init函数里打印hello world, insmod后应该能够通过dmesg看到输出。5. 写一完整驱动, 加上read, write,转载 2016-07-06 13:58:34 · 10744 阅读 · 3 评论