码迷,mamicode.com
首页 > 其他好文 > 详细

fl2440 2.6.35移植触摸屏驱动错误

时间:2016-05-12 11:49:27      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

bootload出错提示如下:

------------[ cut here ]------------

WARNING: at lib/kref.c:34 kref_get+0x1c/0x40()
Modules linked in:
[<c0031364>] (unwind_backtrace+0x0/0xf0) from [<c004aee4>] (warn_slowpath_common+0x48/0x60)
[<c004aee4>] (warn_slowpath_common+0x48/0x60) from [<c004af14>] (warn_slowpath_null+0x18/0x1c)
[<c004af14>] (warn_slowpath_null+0x18/0x1c) from [<c0172e14>] (kref_get+0x1c/0x40)
[<c0172e14>] (kref_get+0x1c/0x40) from [<c0171f44>] (kobject_get+0x10/0x18)
[<c0171f44>] (kobject_get+0x10/0x18) from [<c01b8cbc>] (get_device+0x14/0x1c)
[<c01b8cbc>] (get_device+0x14/0x1c) from [<c01b946c>] (device_add+0x74/0x580)
[<c01b946c>] (device_add+0x74/0x580) from [<c01bcc54>] (platform_device_add+0x104/0x15c)
[<c01bcc54>] (platform_device_add+0x104/0x15c) from [<c01bcf74>] (platform_add_devices+0x1c/0x60)
[<c01bcf74>] (platform_add_devices+0x1c/0x60) from [<c000d84c>] (smdk2440_machine_init+0x2c/0x38)
[<c000d84c>] (smdk2440_machine_init+0x2c/0x38) from [<c000b4d0>] (customize_machine+0x18/0x24)
[<c000b4d0>] (customize_machine+0x18/0x24) from [<c002b35c>] (do_one_initcall+0x5c/0x1bc)
[<c002b35c>] (do_one_initcall+0x5c/0x1bc) from [<c000857c>] (kernel_init+0xa0/0x14c)
[<c000857c>] (kernel_init+0xa0/0x14c) from [<c002ce2c>] (kernel_thread_exit+0x0/0x8)
---[ end trace 1b75b31a2719ed1c ]---
Unable to handle kernel NULL pointer dereference at virtual address 00000021
pgd = c0004000
[00000021] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file:
Modules linked in:
CPU: 0    Tainted: G        W    (2.6.35.4 #7)
PC is at sysfs_create_dir+0x24/0xe0
LR is at kobject_add_internal+0xb8/0x1bc
pc : [<c00e2b10>]    lr : [<c0172060>]    psr: a0000013
sp : c3c19ee8  ip : c3c19f34  fp : 00000000
r10: 00000000  r9 : 00000000  r8 : 00000000
r7 : 00000000  r6 : 00000000  r5 : c0426908  r4 : c0426908
r3 : c0426e18  r2 : c0427254  r1 : c042690c  r0 : c0426908
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: c000717f  Table: 30004000  DAC: 00000017
Process swapper (pid: 1, stack limit = 0xc3c18270)
Stack: (0xc3c19ee8 to 0xc3c1a000)
9ee0:                   c0426908 c042690c c0427254 c3c44ee0 c0426900 c0426908
9f00: c0426e18 c0172060 c0426900 c0426908 c0426e10 00000000 00000000 c01722dc
9f20: c0426908 c3c19f34 00000000 c01b94c4 00000000 c0426e18 00000021 00000000
9f40: 00000000 c0172208 c04268f8 00000008 00000000 c04268f8 00000002 00000038
9f60: 00000009 00000000 00000000 00000000 00000000 c01bcc54 c0025a84 00000008
9f80: 00000000 00000009 00000000 c01bcf74 c0025a44 c00235b4 00000000 00000013
9fa0: 00000000 c000d84c c000b4b8 c000b4d0 c000b4b8 c002b35c c000b4b8 c3c34718
9fc0: c044e3a0 c044e3a0 c0023120 c00235b4 c002ce2c 00000013 00000000 00000000
9fe0: 00000000 c000857c 00000000 c00084dc c002ce2c c002ce2c fc2effef b6a2fbec
[<c00e2b10>] (sysfs_create_dir+0x24/0xe0) from [<c0172060>] (kobject_add_internal+0xb8/0x1bc)
[<c0172060>] (kobject_add_internal+0xb8/0x1bc) from [<c01722dc>] (kobject_add+0x4c/0x5c)
[<c01722dc>] (kobject_add+0x4c/0x5c) from [<c01b94c4>] (device_add+0xcc/0x580)
[<c01b94c4>] (device_add+0xcc/0x580) from [<c01bcc54>] (platform_device_add+0x104/0x15c)
[<c01bcc54>] (platform_device_add+0x104/0x15c) from [<c01bcf74>] (platform_add_devices+0x1c/0x60)
[<c01bcf74>] (platform_add_devices+0x1c/0x60) from [<c000d84c>] (smdk2440_machine_init+0x2c/0x38)
[<c000d84c>] (smdk2440_machine_init+0x2c/0x38) from [<c000b4d0>] (customize_machine+0x18/0x24)
[<c000b4d0>] (customize_machine+0x18/0x24) from [<c002b35c>] (do_one_initcall+0x5c/0x1bc)
[<c002b35c>] (do_one_initcall+0x5c/0x1bc) from [<c000857c>] (kernel_init+0xa0/0x14c)
[<c000857c>] (kernel_init+0xa0/0x14c) from [<c002ce2c>] (kernel_thread_exit+0x0/0x8)
Code: e594300c e3530000 059f60b0 15936018 (e5d65021)
---[ end trace 1b75b31a2719ed1d ]---
Kernel panic - not syncing: Attempted to kill init!
[<c0031364>] (unwind_backtrace+0x0/0xf0) from [<c0317994>] (panic+0x54/0xd8)
[<c0317994>] (panic+0x54/0xd8) from [<c004de5c>] (do_exit+0x64/0x584)
[<c004de5c>] (do_exit+0x64/0x584) from [<c002f788>] (die+0x198/0x1c4)
[<c002f788>] (die+0x198/0x1c4) from [<c0032060>] (__do_kernel_fault+0x64/0x84)
[<c0032060>] (__do_kernel_fault+0x64/0x84) from [<c0032230>] (do_page_fault+0x1b0/0x1c4)
[<c0032230>] (do_page_fault+0x1b0/0x1c4) from [<c002b29c>] (do_DataAbort+0x34/0x94)
[<c002b29c>] (do_DataAbort+0x34/0x94) from [<c002b9e0>] (__dabt_svc+0x40/0x60)
Exception stack(0xc3c19ea0 to 0xc3c19ee8)
9ea0: c0426908 c042690c c0427254 c0426e18 c0426908 c0426908 00000000 00000000
9ec0: 00000000 00000000 00000000 00000000 c3c19f34 c3c19ee8 c0172060 c00e2b10
9ee0: a0000013 ffffffff
[<c002b9e0>] (__dabt_svc+0x40/0x60) from [<c00e2b10>] (sysfs_create_dir+0x24/0xe0)
[<c00e2b10>] (sysfs_create_dir+0x24/0xe0) from [<c0172060>] (kobject_add_internal+0xb8/0x1bc)
[<c0172060>] (kobject_add_internal+0xb8/0x1bc) from [<c01722dc>] (kobject_add+0x4c/0x5c)
[<c01722dc>] (kobject_add+0x4c/0x5c) from [<c01b94c4>] (device_add+0xcc/0x580)
[<c01b94c4>] (device_add+0xcc/0x580) from [<c01bcc54>] (platform_device_add+0x104/0x15c)
[<c01bcc54>] (platform_device_add+0x104/0x15c) from [<c01bcf74>] (platform_add_devices+0x1c/0x60)
[<c01bcf74>] (platform_add_devices+0x1c/0x60) from [<c000d84c>] (smdk2440_machine_init+0x2c/0x38)
[<c000d84c>] (smdk2440_machine_init+0x2c/0x38) from [<c000b4d0>] (customize_machine+0x18/0x24)
[<c000b4d0>] (customize_machine+0x18/0x24) from [<c002b35c>] (do_one_initcall+0x5c/0x1bc)
[<c002b35c>] (do_one_initcall+0x5c/0x1bc) from [<c000857c>] (kernel_init+0xa0/0x14c)
[<c000857c>] (kernel_init+0xa0/0x14c) from [<c002ce2c>] (kernel_thread_exit+0x0/0x8)


错误原因是我移植时没有加个ADC驱动。在平台设备中添加  &s3c_device_adc


fl2440 2.6.35移植触摸屏驱动错误

标签:

原文地址:http://blog.csdn.net/flfihpv259/article/details/51350808

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!