当前位置: 技术问答>linux和unix
编译驱动到内核,测试出现的问题,多谢帮忙?
来源: 互联网 发布时间:2016-06-21
本文导语: 驱动程序编译到内核中的,然后进行测试,每次启动系统后,第一次执行测试函数读i2c设备总线,成功。 第2次读,失败,内核跑飞,信息如下: 请大家帮忙查查是为什么,在网上找了好多,都不太清楚,谢谢。 Una...
驱动程序编译到内核中的,然后进行测试,每次启动系统后,第一次执行测试函数读i2c设备总线,成功。
第2次读,失败,内核跑飞,信息如下:
请大家帮忙查查是为什么,在网上找了好多,都不太清楚,谢谢。
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
pgd = c57d4000
[0000000c] *pgd=c57dc031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in: rt73 lirc_edb9307A lcd nt7534_gpio
CPU: 0
PC is at i2c_smbus_xfer+0x14/0x4cc
LR is at i2c_smbus_read_byte_data+0x4c/0x60
pc : [] lr : [] Not tainted
sp : c57d3db4 ip : c57d3e50 fp : c57d3e4c
r10: 00000000 r9 : bef10d90 r8 : c050d800
r7 : 00000036 r6 : c57d3ee3 r5 : 00000000 r4 : c57d3e5c
r3 : 00000001 r2 : 0000457f r1 : 00000101 r0 : 00000000
Flags: nzCv IRQs on FIQs on Mode SVC_32 Segment user
Control: C000717F
Table: C57D4000 DAC: 00000015
Process 2-test (pid: 323, stack limit = 0xc57d2250)
Stack: (0xc57d3db4 to 0xc57d4000)
3da0: c57d3dc0 c0025a18 c00268bc
3dc0: c038d114 60000013 00000000 ffffe4ed 00000000 c57d3e88 c03661a8 c03bd547
3de0: c050d800 c57d2000 0000001b c57d3e6c 60000093 00000000 c57d3e6c c57d3e08
3e00: c0044544 c02ee3e8 c57d3e14 60000013 c0049980 c03ca1a4 c57d3e3c c57d3e28
3e20: c00268f8 c57d3e5c 00000000 c57d3ee3 00000036 c050d800 bef10d90 40143f60
3e40: c57d3e90 c57d3e50 c01ff424 c01fee0c 000000c7 00000002 c57d3e5c 40143f60
3e60: c57d3e80 c57d3e70 c004461c c00441e0 c57d3e88 c57d3f3c c57d3e94 c0202c58
3e80: 8004530c c57d3f3c c57d3e94 c0202c64 c01ff3e8 c57d3ea0 c002c938 c007a52c
3ea0: 400ea000 c001a2f0 00000100 00000000 00000000 c06a2f64 000000cb 000000cb
3ec0: 00000000 c06fb05f c06a2f50 c57d2000 00000000 c5667e9c 00000000 c57d3f40
3ee0: 007d3eec 00000000 00000000 00000000 00000000 00000000 00000000 400ea000
3f00: c5a11060 c57d3f54 00000000 00000000 00000000 c56707a0 bef10d90 8004530c
3f20: 00000036 c0026044 c57d2000 40143f60 c57d3f58 c57d3f40 c00a07ac c020222c
3f40: c56707a0 00000003 bef10d90 c57d3f84 c57d3f5c c00a082c c00a0730 bef10df4
3f60: 0000887c c56707a0 fffffff7 8004530c 00000036 c0026044 c57d3fa4 c57d3f88
3f80: c00a0b14 c00a07cc 00000000 4001e31c bef10df4 0000887c 00000000 c57d3fa8
3fa0: c0025ea0 c00a0ae4 4001e31c bef10df4 00000003 8004530c bef10d90 bef10d90
3fc0: 4001e31c bef10df4 0000887c 00000001 40147840 00008850 40143f60 bef10dac
3fe0: 400ea160 bef10d90 00008678 400ea164 60000010 00000003 00000018 00000000
Backtrace:
[] (i2c_smbus_xfer+0x0/0x4cc) from [] (i2c_smbus_read_byte_data+0x4c/0x60)
[] (i2c_smbus_read_byte_data+0x0/0x60) from [] (si4731_ioctl+0xa48/0xbf0)
r4 = 8004530C
[] (si4731_ioctl+0x0/0xbf0) from [] (do_ioctl+0x8c/0x9c)
[] (do_ioctl+0x0/0x9c) from [] (vfs_ioctl+0x70/0x318)
r6 = BEF10D90 r5 = 00000003 r4 = C56707A0
[] (vfs_ioctl+0x0/0x318) from [] (sys_ioctl+0x40/0x64)
r8 = C0026044 r7 = 00000036 r6 = 8004530C r5 = FFFFFFF7
r4 = C56707A0
[] (sys_ioctl+0x0/0x64) from [] (ret_fast_syscall+0x0/0x2c)
r6 = 0000887C r5 = BEF10DF4 r4 = 4001E31C
Code: e92ddff0 e24cb004 e24dd070 e1a0a000 (e590000c)
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 17 [#2]
Modules linked in: rt73 lirc_edb9307A lcd nt7534_gpio
CPU: 0
PC is at i2c_put_adapter+0xc/0x18
LR is at si4731_release+0x1c/0x30
pc : [] lr : [] Not tainted
sp : c57d3b84 ip : c57d3b94 fp : c57d3b90
r10: 0000000b r9 : c038e210 r8 : c04b41a0
r7 : c567a190 r6 : c5634078 r5 : c56707a0 r4 : c050d800
r3 : c0202028 r2 : 00000000 r1 : c56707a0 r0 : 00000000
Flags: NzCv IRQs on FIQs on Mode SVC_32 Segment user
Control: C000717F
Table: C5A1C000 DAC: 00000015
Process 2-test (pid: 323, stack limit = 0xc57d2250)
Stack: (0xc57d3b84 to 0xc57d4000)
3b80: c57d3ba8 c57d3b94 c0202044 c01ffa74 00000008 c56707a0 c57d3bd0
3ba0: c57d3bac c0093fe8 c0202038 00000000 c56707a0 c04f7540 00000000 c04f7540
3bc0: 0000000c c57d3be0 c57d3bd4 c00942a8 c0093f4c c57d3bfc c57d3be4 c0090cfc
3be0: c0094284 00000001 00000000 c04f7548 c57d3c20 c57d3c00 c0045bdc c0090ca0
3c00: c04f7540 c055c580 c57d4000 00000001 c57d2000 c57d3c48 c57d3c24 c0047060
3c20: c0045b18 c57d4000 c055c580 c57d2000 c57d3c60 c57d3ba4 00000000 c57d3c60
3c40: c57d3c4c c002a434 c0046f04 c57d3d6c bf000000 c57d3c80 c57d3c64 c002bf70
3c60: c002a18c c055c580 c5a11060 c5667b00 c5a11094 c57d3cc0 c57d3c84 c002c0b0
3c80: c002bf14 c57d3cc8 c57d3c94 c018c534 00000017 000000fe c038be04 00000017
3ca0: c038be74 0000000c c57d3d6c 20000013 00000000 c57d3d68 c57d3cc4 c002c334
3cc0: c002bf90 c003eac8 c003e60c c57d2000 c57d2000 c57d3d14 c57d3ce4 c003fbb0
3ce0: c57d2000 60000013 c03c1a00 c03c1a00 00000001 c57d2000 00000000 00000005
3d00: c03c349c c57d3d20 c57d3d14 c0093f34 c008eb2c c57d3d3c c57d3d24 c005860c
3d20: c0093f28 00000000 c03c1a24 c03c1a00 c57d3d4c c57d3d40 c0058844 c005857c
3d40: c57d3d68 c57d3d50 ffffffff c57d3da0 c57d3ee3 00000036 c050d800 c57d3e4c
3d60: c57d3d6c c00259c0 c002c308 00000000 00000101 0000457f 00000001 c57d3e5c
3d80: 00000000 c57d3ee3 00000036 c050d800 bef10d90 00000000 c57d3e4c c57d3e50
3da0: c57d3db4 c01ff424 c01fee10 20000013 ffffffff c57d3dc0 c0025a18 c00268bc
3dc0: c038d114 60000013 00000000 ffffe4ed 00000000 c57d3e88 c03661a8 c03bd547
3de0: c050d800 c57d2000 0000001b c57d3e6c 60000093 00000000 c57d3e6c c57d3e08
3e00: c0044544 c02ee3e8 c57d3e14 60000013 c0049980 c03ca1a4 c57d3e3c c57d3e28
3e20: c00268f8 c57d3e5c 00000000 c57d3ee3 00000036 c050d800 bef10d90 40143f60
3e40: c57d3e90 c57d3e50 c01ff424 c01fee0c 000000c7 00000002 c57d3e5c 40143f60
3e60: c57d3e80 c57d3e70 c004461c c00441e0 c57d3e88 c57d3f3c c57d3e94 c0202c58
3e80: 8004530c c57d3f3c c57d3e94 c0202c64 c01ff3e8 c57d3ea0 c002c938 c007a52c
3ea0: 400ea000 c001a2f0 00000100 00000000 00000000 c06a2f64 000000cb 000000cb
3ec0: 00000000 c06fb05f c06a2f50 c57d2000 00000000 c5667e9c 00000000 c57d3f40
3ee0: 007d3eec 00000000 00000000 00000000 00000000 00000000 00000000 400ea000
3f00: c5a11060 c57d3f54 00000000 00000000 00000000 c56707a0 bef10d90 8004530c
3f20: 00000036 c0026044 c57d2000 40143f60 c57d3f58 c57d3f40 c00a07ac c020222c
3f40: c56707a0 00000003 bef10d90 c57d3f84 c57d3f5c c00a082c c00a0730 bef10df4
3f60: 0000887c c56707a0 fffffff7 8004530c 00000036 c0026044 c57d3fa4 c57d3f88
3f80: c00a0b14 c00a07cc 00000000 4001e31c bef10df4 0000887c 00000000 c57d3fa8
3fa0: c0025ea0 c00a0ae4 4001e31c bef10df4 00000003 8004530c bef10d90 bef10d90
3fc0: 4001e31c bef10df4 0000887c 00000001 40147840 00008850 40143f60 bef10dac
3fe0: 400ea160 bef10d90 00008678 400ea164 60000010 00000003 00000018 00000000
Backtrace:
[] (i2c_put_adapter+0x0/0x18) from [] (si4731_release+0x1c/0x30)
[] (si4731_release+0x0/0x30) from [] (__fput+0xac/0x1b4)
r5 = C56707A0 r4 = 00000008
[] (__fput+0x0/0x1b4) from [] (fput+0x34/0x38)
r8 = 0000000C r7 = C04F7540 r6 = 00000000 r5 = C04F7540
r4 = C56707A0
[] (fput+0x0/0x38) from [] (filp_close+0x6c/0x88)
[] (filp_close+0x0/0x88) from [] (put_files_struct+0xd4/0xe0)
r6 = C04F7548 r5 = 00000000 r4 = 00000001
[] (put_files_struct+0x0/0xe0) from [] (do_exit+0x16c/0x948)
r8 = C57D2000 r7 = 00000001 r6 = C57D4000 r5 = C055C580
r4 = C04F7540
[] (do_exit+0x0/0x948) from [] (die+0x2b8/0x2fc)
[] (die+0x0/0x2fc) from [] (__do_kernel_fault+0x6c/0x7c)
[] (__do_kernel_fault+0x0/0x7c) from [] (do_page_fault+0x130/0x24c)
r7 = C5A11094 r6 = C5667B00 r5 = C5A11060 r4 = C055C580
[] (do_page_fault+0x0/0x24c) from [] (do_DataAbort+0x3c/0xa0)
[] (do_DataAbort+0x0/0xa0) from [] (__dabt_svc+0x40/0x60)
r8 = C050D800 r7 = 00000036 r6 = C57D3EE3 r5 = C57D3DA0
r4 = FFFFFFFF
[] (i2c_smbus_xfer+0x0/0x4cc) from [] (i2c_smbus_read_byte_data+0x4c/0x60)
[] (i2c_smbus_read_byte_data+0x0/0x60) from [] (si4731_ioctl+0xa48/0xbf0)
r4 = 8004530C
[] (si4731_ioctl+0x0/0xbf0) from [] (do_ioctl+0x8c/0x9c)
[] (do_ioctl+0x0/0x9c) from [] (vfs_ioctl+0x70/0x318)
r6 = BEF10D90 r5 = 00000003 r4 = C56707A0
[] (vfs_ioctl+0x0/0x318) from [] (sys_ioctl+0x40/0x64)
r8 = C0026044 r7 = 00000036 r6 = 8004530C r5 = FFFFFFF7
r4 = C56707A0
[] (sys_ioctl+0x0/0x64) from [] (ret_fast_syscall+0x0/0x2c)
r6 = 0000887C r5 = BEF10DF4 r4 = 4001E31C
Code: e89da830 e1a0c00d e92dd800 e24cb004 (e5900000)
Fixing recursive fault but reboot is needed!
第2次读,失败,内核跑飞,信息如下:
请大家帮忙查查是为什么,在网上找了好多,都不太清楚,谢谢。
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
pgd = c57d4000
[0000000c] *pgd=c57dc031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in: rt73 lirc_edb9307A lcd nt7534_gpio
CPU: 0
PC is at i2c_smbus_xfer+0x14/0x4cc
LR is at i2c_smbus_read_byte_data+0x4c/0x60
pc : [] lr : [] Not tainted
sp : c57d3db4 ip : c57d3e50 fp : c57d3e4c
r10: 00000000 r9 : bef10d90 r8 : c050d800
r7 : 00000036 r6 : c57d3ee3 r5 : 00000000 r4 : c57d3e5c
r3 : 00000001 r2 : 0000457f r1 : 00000101 r0 : 00000000
Flags: nzCv IRQs on FIQs on Mode SVC_32 Segment user
Control: C000717F
Table: C57D4000 DAC: 00000015
Process 2-test (pid: 323, stack limit = 0xc57d2250)
Stack: (0xc57d3db4 to 0xc57d4000)
3da0: c57d3dc0 c0025a18 c00268bc
3dc0: c038d114 60000013 00000000 ffffe4ed 00000000 c57d3e88 c03661a8 c03bd547
3de0: c050d800 c57d2000 0000001b c57d3e6c 60000093 00000000 c57d3e6c c57d3e08
3e00: c0044544 c02ee3e8 c57d3e14 60000013 c0049980 c03ca1a4 c57d3e3c c57d3e28
3e20: c00268f8 c57d3e5c 00000000 c57d3ee3 00000036 c050d800 bef10d90 40143f60
3e40: c57d3e90 c57d3e50 c01ff424 c01fee0c 000000c7 00000002 c57d3e5c 40143f60
3e60: c57d3e80 c57d3e70 c004461c c00441e0 c57d3e88 c57d3f3c c57d3e94 c0202c58
3e80: 8004530c c57d3f3c c57d3e94 c0202c64 c01ff3e8 c57d3ea0 c002c938 c007a52c
3ea0: 400ea000 c001a2f0 00000100 00000000 00000000 c06a2f64 000000cb 000000cb
3ec0: 00000000 c06fb05f c06a2f50 c57d2000 00000000 c5667e9c 00000000 c57d3f40
3ee0: 007d3eec 00000000 00000000 00000000 00000000 00000000 00000000 400ea000
3f00: c5a11060 c57d3f54 00000000 00000000 00000000 c56707a0 bef10d90 8004530c
3f20: 00000036 c0026044 c57d2000 40143f60 c57d3f58 c57d3f40 c00a07ac c020222c
3f40: c56707a0 00000003 bef10d90 c57d3f84 c57d3f5c c00a082c c00a0730 bef10df4
3f60: 0000887c c56707a0 fffffff7 8004530c 00000036 c0026044 c57d3fa4 c57d3f88
3f80: c00a0b14 c00a07cc 00000000 4001e31c bef10df4 0000887c 00000000 c57d3fa8
3fa0: c0025ea0 c00a0ae4 4001e31c bef10df4 00000003 8004530c bef10d90 bef10d90
3fc0: 4001e31c bef10df4 0000887c 00000001 40147840 00008850 40143f60 bef10dac
3fe0: 400ea160 bef10d90 00008678 400ea164 60000010 00000003 00000018 00000000
Backtrace:
[] (i2c_smbus_xfer+0x0/0x4cc) from [] (i2c_smbus_read_byte_data+0x4c/0x60)
[] (i2c_smbus_read_byte_data+0x0/0x60) from [] (si4731_ioctl+0xa48/0xbf0)
r4 = 8004530C
[] (si4731_ioctl+0x0/0xbf0) from [] (do_ioctl+0x8c/0x9c)
[] (do_ioctl+0x0/0x9c) from [] (vfs_ioctl+0x70/0x318)
r6 = BEF10D90 r5 = 00000003 r4 = C56707A0
[] (vfs_ioctl+0x0/0x318) from [] (sys_ioctl+0x40/0x64)
r8 = C0026044 r7 = 00000036 r6 = 8004530C r5 = FFFFFFF7
r4 = C56707A0
[] (sys_ioctl+0x0/0x64) from [] (ret_fast_syscall+0x0/0x2c)
r6 = 0000887C r5 = BEF10DF4 r4 = 4001E31C
Code: e92ddff0 e24cb004 e24dd070 e1a0a000 (e590000c)
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000
Internal error: Oops: 17 [#2]
Modules linked in: rt73 lirc_edb9307A lcd nt7534_gpio
CPU: 0
PC is at i2c_put_adapter+0xc/0x18
LR is at si4731_release+0x1c/0x30
pc : [] lr : [] Not tainted
sp : c57d3b84 ip : c57d3b94 fp : c57d3b90
r10: 0000000b r9 : c038e210 r8 : c04b41a0
r7 : c567a190 r6 : c5634078 r5 : c56707a0 r4 : c050d800
r3 : c0202028 r2 : 00000000 r1 : c56707a0 r0 : 00000000
Flags: NzCv IRQs on FIQs on Mode SVC_32 Segment user
Control: C000717F
Table: C5A1C000 DAC: 00000015
Process 2-test (pid: 323, stack limit = 0xc57d2250)
Stack: (0xc57d3b84 to 0xc57d4000)
3b80: c57d3ba8 c57d3b94 c0202044 c01ffa74 00000008 c56707a0 c57d3bd0
3ba0: c57d3bac c0093fe8 c0202038 00000000 c56707a0 c04f7540 00000000 c04f7540
3bc0: 0000000c c57d3be0 c57d3bd4 c00942a8 c0093f4c c57d3bfc c57d3be4 c0090cfc
3be0: c0094284 00000001 00000000 c04f7548 c57d3c20 c57d3c00 c0045bdc c0090ca0
3c00: c04f7540 c055c580 c57d4000 00000001 c57d2000 c57d3c48 c57d3c24 c0047060
3c20: c0045b18 c57d4000 c055c580 c57d2000 c57d3c60 c57d3ba4 00000000 c57d3c60
3c40: c57d3c4c c002a434 c0046f04 c57d3d6c bf000000 c57d3c80 c57d3c64 c002bf70
3c60: c002a18c c055c580 c5a11060 c5667b00 c5a11094 c57d3cc0 c57d3c84 c002c0b0
3c80: c002bf14 c57d3cc8 c57d3c94 c018c534 00000017 000000fe c038be04 00000017
3ca0: c038be74 0000000c c57d3d6c 20000013 00000000 c57d3d68 c57d3cc4 c002c334
3cc0: c002bf90 c003eac8 c003e60c c57d2000 c57d2000 c57d3d14 c57d3ce4 c003fbb0
3ce0: c57d2000 60000013 c03c1a00 c03c1a00 00000001 c57d2000 00000000 00000005
3d00: c03c349c c57d3d20 c57d3d14 c0093f34 c008eb2c c57d3d3c c57d3d24 c005860c
3d20: c0093f28 00000000 c03c1a24 c03c1a00 c57d3d4c c57d3d40 c0058844 c005857c
3d40: c57d3d68 c57d3d50 ffffffff c57d3da0 c57d3ee3 00000036 c050d800 c57d3e4c
3d60: c57d3d6c c00259c0 c002c308 00000000 00000101 0000457f 00000001 c57d3e5c
3d80: 00000000 c57d3ee3 00000036 c050d800 bef10d90 00000000 c57d3e4c c57d3e50
3da0: c57d3db4 c01ff424 c01fee10 20000013 ffffffff c57d3dc0 c0025a18 c00268bc
3dc0: c038d114 60000013 00000000 ffffe4ed 00000000 c57d3e88 c03661a8 c03bd547
3de0: c050d800 c57d2000 0000001b c57d3e6c 60000093 00000000 c57d3e6c c57d3e08
3e00: c0044544 c02ee3e8 c57d3e14 60000013 c0049980 c03ca1a4 c57d3e3c c57d3e28
3e20: c00268f8 c57d3e5c 00000000 c57d3ee3 00000036 c050d800 bef10d90 40143f60
3e40: c57d3e90 c57d3e50 c01ff424 c01fee0c 000000c7 00000002 c57d3e5c 40143f60
3e60: c57d3e80 c57d3e70 c004461c c00441e0 c57d3e88 c57d3f3c c57d3e94 c0202c58
3e80: 8004530c c57d3f3c c57d3e94 c0202c64 c01ff3e8 c57d3ea0 c002c938 c007a52c
3ea0: 400ea000 c001a2f0 00000100 00000000 00000000 c06a2f64 000000cb 000000cb
3ec0: 00000000 c06fb05f c06a2f50 c57d2000 00000000 c5667e9c 00000000 c57d3f40
3ee0: 007d3eec 00000000 00000000 00000000 00000000 00000000 00000000 400ea000
3f00: c5a11060 c57d3f54 00000000 00000000 00000000 c56707a0 bef10d90 8004530c
3f20: 00000036 c0026044 c57d2000 40143f60 c57d3f58 c57d3f40 c00a07ac c020222c
3f40: c56707a0 00000003 bef10d90 c57d3f84 c57d3f5c c00a082c c00a0730 bef10df4
3f60: 0000887c c56707a0 fffffff7 8004530c 00000036 c0026044 c57d3fa4 c57d3f88
3f80: c00a0b14 c00a07cc 00000000 4001e31c bef10df4 0000887c 00000000 c57d3fa8
3fa0: c0025ea0 c00a0ae4 4001e31c bef10df4 00000003 8004530c bef10d90 bef10d90
3fc0: 4001e31c bef10df4 0000887c 00000001 40147840 00008850 40143f60 bef10dac
3fe0: 400ea160 bef10d90 00008678 400ea164 60000010 00000003 00000018 00000000
Backtrace:
[] (i2c_put_adapter+0x0/0x18) from [] (si4731_release+0x1c/0x30)
[] (si4731_release+0x0/0x30) from [] (__fput+0xac/0x1b4)
r5 = C56707A0 r4 = 00000008
[] (__fput+0x0/0x1b4) from [] (fput+0x34/0x38)
r8 = 0000000C r7 = C04F7540 r6 = 00000000 r5 = C04F7540
r4 = C56707A0
[] (fput+0x0/0x38) from [] (filp_close+0x6c/0x88)
[] (filp_close+0x0/0x88) from [] (put_files_struct+0xd4/0xe0)
r6 = C04F7548 r5 = 00000000 r4 = 00000001
[] (put_files_struct+0x0/0xe0) from [] (do_exit+0x16c/0x948)
r8 = C57D2000 r7 = 00000001 r6 = C57D4000 r5 = C055C580
r4 = C04F7540
[] (do_exit+0x0/0x948) from [] (die+0x2b8/0x2fc)
[] (die+0x0/0x2fc) from [] (__do_kernel_fault+0x6c/0x7c)
[] (__do_kernel_fault+0x0/0x7c) from [] (do_page_fault+0x130/0x24c)
r7 = C5A11094 r6 = C5667B00 r5 = C5A11060 r4 = C055C580
[] (do_page_fault+0x0/0x24c) from [] (do_DataAbort+0x3c/0xa0)
[] (do_DataAbort+0x0/0xa0) from [] (__dabt_svc+0x40/0x60)
r8 = C050D800 r7 = 00000036 r6 = C57D3EE3 r5 = C57D3DA0
r4 = FFFFFFFF
[] (i2c_smbus_xfer+0x0/0x4cc) from [] (i2c_smbus_read_byte_data+0x4c/0x60)
[] (i2c_smbus_read_byte_data+0x0/0x60) from [] (si4731_ioctl+0xa48/0xbf0)
r4 = 8004530C
[] (si4731_ioctl+0x0/0xbf0) from [] (do_ioctl+0x8c/0x9c)
[] (do_ioctl+0x0/0x9c) from [] (vfs_ioctl+0x70/0x318)
r6 = BEF10D90 r5 = 00000003 r4 = C56707A0
[] (vfs_ioctl+0x0/0x318) from [] (sys_ioctl+0x40/0x64)
r8 = C0026044 r7 = 00000036 r6 = 8004530C r5 = FFFFFFF7
r4 = C56707A0
[] (sys_ioctl+0x0/0x64) from [] (ret_fast_syscall+0x0/0x2c)
r6 = 0000887C r5 = BEF10DF4 r4 = 4001E31C
Code: e89da830 e1a0c00d e92dd800 e24cb004 (e5900000)
Fixing recursive fault but reboot is needed!
|
在i2c_smbus_xfer中出现空指针,加些打印看看什么地方出现的
|
内核空指针异常,查询这个i2c_smbus_xfer函数的参数,有指为NULL
|
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
我也遇到过此类错误。明显是指针操作错误,但是有一段驱动级的,错误一直找不出来。
我也遇到过此类错误。明显是指针操作错误,但是有一段驱动级的,错误一直找不出来。
|
顶一楼和二楼的,肯定是那个函数里面某个指针为NULL了,很有可能在这个函数之前就已经隐含该错误了。楼主需要多加一些打印信息,仔细检查检查。