天嵌 ARM开发社区

 找回密码
 注册
查看: 1792|回复: 1

(led驱动出错

[复制链接]
7700006 发表于 2010-2-22 20:01:47 | 显示全部楼层 |阅读模式
[root@x /sbin]# insmod ../lib/leds.ko
S3C2440 LEDS,(c)2010
Ledsinitialized
[root@x /sbin]# ledc 1 1
Unable to handle kernel NULL pointer dereference at virtual address 0000000d
pgd = c3ad0000
[0000000d] *pgd=339f5031, *pte=00000000, *ppte=00000000
Internal error: Oops: 13 [#6]
Modules linked in: leds [last unloaded: leds]
CPU: 0    Tainted: G      D     (2.6.31.5 #23)
PC is at do_sys_open+0x74/0x10c
LR is at mntput_no_expire+0x18/0x94
pc : [<c008bf48>]    lr : [<c00a17e0>]    psr: 00000013
sp : c3a9ff80  ip : 20000013  fp : beacbd34
r10: 00000003  r9 : c3a40000  r8 : 00000001
r7 : 00000000  r6 : ffffff9c  r5 : 00000000  r4 : 00000000
r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000001
Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: c000717f  Table: 33ad0000  DAC: 00000015
Process ledc (pid: 1016, stack limit = 0xc3a9e270)
Stack: (0xc3a9ff80 to 0xc3aa0000)
ff80: 00000000 000086fc 0000865c 00000000 00008498 00000005 c0024f48 c3a9e000
ffa0: 00000000 c0024da0 0000865c 00000000 000086fc 00000000 00000000 00000001
ffc0: 0000865c 00000000 00008498 00000005 00000000 00000000 40025000 beacbd34
ffe0: 00000000 beacbd18 000085f0 400efd8c 60000010 000086fc 00000b01 00001b02
[<c008bf48>] (do_sys_open+0x74/0x10c) from [<c0024da0>] (ret_fast_syscall+0x0/0x2c)
Code: e1a0000a ebffff64 e1a0a008 ea00001e (e590400c)
---[ end trace d37a738d9c092063 ]---
Segmentation fault

我的驱动设备名称是:Leds
驱动模块是:leds.ko(已加载)
应用程序是:ledc
亚瑟王 发表于 2010-3-2 15:09:18 | 显示全部楼层
问题是你的驱动和程序是怎么写的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-10-6 16:27 , Processed in 1.018594 second(s), 18 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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