MTK8735自己写的字符型设备不能加载
时间:10-02
整理:3721RD
点击:
自己照着课本写了个字符型虚拟设备驱动,采用直接编译到内核的方法,编译成功,也生成了对应的.o文件,但是下载到板子上adb后,cat /proc/devices没有我写的设备驱动,/dev下也没有,但是/sys/module下面倒是有,不过就一个参数文件夹,配置如下:
模块路径:/kernel-3.18/drivers/hello/
hello文件夹中的文件:hello.c Makefile Kconfig
hello/Makefile内容:obj-y += hello.o
hello/Kconfig内容:config hello
tristate "Virtual Char Device"
default y
help
This is the virtual char device.
drivers/Makefilebj-y += hello/
drivers/Kconfig:source "drivers/hello/Kconfig"
/kernel-3.18/arch/ARM/Kconfig:source "drivers/hello/Kconfig"
配置如上,编译,未报错
查看如下路径:
out/....../obj/KERNEL_OBJ/drivers/hello/:built-in.o modules.order hello.o
自己顶下
求个大神啊
