天嵌 ARM开发社区

 找回密码
 注册
查看: 2527|回复: 2

驱动模块插入时出现Oops :17 怎么解决

[复制链接]
ch81 发表于 2013-4-16 12:26:37 | 显示全部楼层 |阅读模式
编译tq2416_leds.c 插入模块时 出现:
unable to handle kernel NULL dereference at virtual address 000000c
Internal error : Ooops :17[#1]

怎么处理啊,求解
哥们是个新手 麻烦各位了
TQ-ZQL 发表于 2013-4-16 13:57:32 | 显示全部楼层
驱动有问题,看哪里访问了空指针
回复

使用道具 举报

 楼主| ch81 发表于 2013-4-18 02:52:02 | 显示全部楼层
本帖最后由 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");

还是不对,帮忙给看看

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号-2 )

GMT+8, 2025-6-18 04:56 , Processed in 2.032716 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表