![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux驱动
bcg448251593
这个作者很懒,什么都没留下…
展开
-
Linux内核增加自己的配置项 错误
Kconfig:1:missing end statement for this entryKconfig 的语法需要注意比如:menu "test1 driver here"//这里一定要有一个行空格config TEST1bool "xiaobai test driver"//这里前面是一个tabhelp//这里前面是一个tab this is test d原创 2015-09-23 15:31:13 · 1343 阅读 · 0 评论 -
内核配置make menuconfig 找不到arm选项
问题搞了2天 做个笔记.需要修改内核根目录下的Makefile 196行 #ARCH ?= $(SUBARCH)#CROSS_COMPILE ?= $(CONFIG_CROSS_COMPILE:"%"=%)ARCH ?= armCROSS_COMPILE ?= arm-hisiv100ntpl-linux-把原来的注释掉然后改成arm就行了.原创 2015-09-23 15:36:14 · 1454 阅读 · 0 评论 -
字符驱动自动创建节点
//包含了很多装载模块需要的符号和函数的定义//用于指定初始化函数和清除函数#include #include #include #include #include #include struct class *char_dvr_class;unsigned int major = 0;unsigned int minor = 0;de原创 2015-09-24 14:35:29 · 383 阅读 · 0 评论 -
Linux 内核list使用
源码:#ifndef LIST_H#define LIST_H 1struct list_head {struct list_head *next, *prev;};#define LIST_HEAD_INIT(name) { &(name), &(name) }#define LIST_HEAD(name) \struct list_he原创 2015-12-24 10:42:53 · 496 阅读 · 0 评论