Segmentation fault on camera module


Segmentation fault on camera module

Contributor I


I have installed mt9v022 camera module on the IMX-53 QSB-LOCO and after modprobe I have this:

Unable to handle kernel paging request at virtual address 4e454796

pgd = df720000

[4e454796] *pgd=00000000

Internal error: Oops: 5 [#1] PREEMPT

last sysfs file: /sys/devices/virtual/input/input3/capabilities/sw

Modules linked in: mt9v022(+)

CPU: 0    Not tainted  ( #25)

PC is at dev_get_drvdata+0x10/0x20

LR is at mt9v022_probe+0x12c/0x46c [mt9v022]

pc : [<8024000c>]    lr : [<7f000fa0>]    psr: 20000013

sp : df72fe70  ip : 0000ffff  fp : 0000002e

r10: df702580  r9 : df72e000  r8 : 00000001

r7 : df144220  r6 : df702580  r5 : 80865fc8  r4 : df144200

r3 : 4e454756  r2 : 00000048  r1 : 00000001  r0 : 807b01a4

Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user

Control: 10c5387d  Table: cf720019  DAC: 00000015

Process insmod (pid: 2321, stack limit = 0xdf72e2e8)

Stack: (0xdf72fe70 to 0xdf730000)

fe60:                                     df144200 7f0013d8 00000000 df144220

fe80: 7f0013d8 df144200 7f000e74 df144204 df72e000 00004000 00000000 802d222c

fea0: df144220 df144254 7f001838 7f001838 80034104 80240418 df144220 df144254

fec0: 7f001838 00000000 80034104 80240534 7f001838 df72fee0 802404d4 8023fc28

fee0: df031838 df082570 7f001838 7f001838 df6d6120 8088f560 00000000 8023f564

ff00: 7f0017ce 7f0017ce 00000000 7f001838 00000000 7f001810 8088f560 80034104

ff20: 00004000 80240824 8088f53c 00000000 7f001810 8088f560 80034104 802d2f68

ff40: 7f004000 00000000 00000000 00003a49 80034104 80033380 7f004000 00000000

ff60: 00000001 00000000 7f001970 00000000 00012008 80034104 df72e000 00004000

ff80: 00000000 8008e788 00012018 00003a49 00012008 00000002 7ee42ec9 00012018

ffa0: 00000080 80033f80 00000002 7ee42ec9 00012018 00003a49 00012008 0000002d

ffc0: 00000002 7ee42ec9 00012018 00000080 00000003 00000000 00004000 00000000

ffe0: 00012008 7ee42c5c 0000892c 2ab94fc4 60000010 00012018 76dfdabf 8db85ff6

[<8024000c>] (dev_get_drvdata+0x10/0x20) from [<7f000fa0>] (mt9v022_probe+0x12c/0x46c [mt9v022])

[<7f000fa0>] (mt9v022_probe+0x12c/0x46c [mt9v022]) from [<802d222c>] (i2c_device_probe+0xa4/0xd8)

[<802d222c>] (i2c_device_probe+0xa4/0xd8) from [<80240418>] (driver_probe_device+0xc8/0x184)

[<80240418>] (driver_probe_device+0xc8/0x184) from [<80240534>] (__driver_attach+0x60/0x84)

[<80240534>] (__driver_attach+0x60/0x84) from [<8023fc28>] (bus_for_each_dev+0x48/0x84)

[<8023fc28>] (bus_for_each_dev+0x48/0x84) from [<8023f564>] (bus_add_driver+0x98/0x214)

[<8023f564>] (bus_add_driver+0x98/0x214) from [<80240824>] (driver_register+0xac/0x13c)

[<80240824>] (driver_register+0xac/0x13c) from [<802d2f68>] (i2c_register_driver+0x40/0x8c)

[<802d2f68>] (i2c_register_driver+0x40/0x8c) from [<80033380>] (do_one_initcall+0x58/0x1b0)

[<80033380>] (do_one_initcall+0x58/0x1b0) from [<8008e788>] (sys_init_module+0x90/0x1ac)

[<8008e788>] (sys_init_module+0x90/0x1ac) from [<80033f80>] (ret_fast_syscall+0x0/0x30)

Code: e3500000 0a000003 e5903004 e3530000 (15930040)

---[ end trace 878551c919f71e5a ]---

Segmentation fault

Can someone help on this?

Thanks in advance

0 件の賞賛
1 解決策
NXP TechSupport
NXP TechSupport

Please try to read the CSI document to make it work.


0 件の賞賛
2 返答(返信)
NXP TechSupport
NXP TechSupport

Please try to read the CSI document to make it work.

0 件の賞賛
Contributor I

Thanks Jimmy for Your answer,

But test for camera is write for EVK and I want to port it for LOCO board. So I've allredy did modifs on LOCO.c (QSB) to have my camera up but i have had the error You've seen in the first mesg. I will do somme work to try to adapt the camera tests for the QSB_LOCO.

Thanks again.

0 件の賞賛