驱动模块插入时出现Oops :17 怎么解决
编译tq2416_leds.c 插入模块时 出现:unable to handle kernel NULL dereference at virtual address 000000c
Internal error : Ooops :17[#1]
怎么处理啊,求解
哥们是个新手 麻烦各位了 驱动有问题,看哪里访问了空指针 本帖最后由 ch81 于 2013-4-18 02:52 编辑
不会弄啊,我精简了所有的代码,只剩下
#include <linux/init.h>
#include <linux/module.h>
static int __init hello_init(void)
{
printk("hello world \n");
return 0;
}
static void __exit hello_exit(void)
{
printk("Goodbye,cruel world \n");
}
module_init(hello_init);
module_exit(hello_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("chang hao");
MODULE_DESCRIPTION("test module");
还是不对,帮忙给看看
页:
[1]