当前位置: 技术问答>linux和unix
交叉编译驱动问题
来源: 互联网 发布时间:2016-05-23
本文导语: 板子的系统是用arm-gcc4.1编译的,我用cross3.4编译的应用程序可以运行,编译的驱动模块可以加载,但插上设备后却不能正常工作,出错如下 Unable to handle kernel NULL pointer dereference at virtual address 00000118 pgd = c0004000 [0000...
板子的系统是用arm-gcc4.1编译的,我用cross3.4编译的应用程序可以运行,编译的驱动模块可以加载,但插上设备后却不能正常工作,出错如下
Unable to handle kernel NULL pointer dereference at virtual address 00000118
pgd = c0004000
[00000118] *pgd=00000000
Internal error: Oops: 17 [#1]
Modules linked in: pwc videodev compat_ioctl32 v4l2_common v4l1_compat rfcomm l2cap bluetooth pcmcia pxa2xx_cs pxa2xx_core pcmcia_core 8139too
CPU: 0
Not tainted (2.6.24-cm-x270 #2)
PC is at usb_pwc_probe+0x28/0x950 [pwc]
LR is at usb_probe_interface+0xc4/0x110
pc : []
lr : []
psr: a0000013
sp : c7cd1c90 ip : c7cd1ce0 fp : c7cd1cdc
r10: c031c65c r9 : ffffffa4 r8 : 00000000
r7 : bf062bf0 r6 : bf062c20 r5 : c7485a00 r4 : c7485a20
r3 : 00000174 r2 : 00000000 r1 : 00000000 r0 : c7485a00
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 0000397f Table: a7e10000 DAC: 00000017
请问是什么原因?!
Unable to handle kernel NULL pointer dereference at virtual address 00000118
pgd = c0004000
[00000118] *pgd=00000000
Internal error: Oops: 17 [#1]
Modules linked in: pwc videodev compat_ioctl32 v4l2_common v4l1_compat rfcomm l2cap bluetooth pcmcia pxa2xx_cs pxa2xx_core pcmcia_core 8139too
CPU: 0
Not tainted (2.6.24-cm-x270 #2)
PC is at usb_pwc_probe+0x28/0x950 [pwc]
LR is at usb_probe_interface+0xc4/0x110
pc : []
lr : []
psr: a0000013
sp : c7cd1c90 ip : c7cd1ce0 fp : c7cd1cdc
r10: c031c65c r9 : ffffffa4 r8 : 00000000
r7 : bf062bf0 r6 : bf062c20 r5 : c7485a00 r4 : c7485a20
r3 : 00000174 r2 : 00000000 r1 : 00000000 r0 : c7485a00
Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 0000397f Table: a7e10000 DAC: 00000017
请问是什么原因?!
|
up.