AnsweredAssumed Answered

How to run ov5642 camera?

Question asked by Hanseung Lee on Feb 22, 2016
Latest reply on Feb 22, 2016 by jimmychan

Hello !

 

board  : I.mx6q sabere-sd

kernel : 3.0.35

os : Ubuntu 12.04

 

 

I want to run ov5642 camera use CSI(camera sensor interface) .

 

In my case , set below.

 

1. imx-test install

2. mxc_v4l2_capture.out  run

----------------------------------------------------------------------------------------------------------

root@freescale /unit_tests$ ./mxc_v4l2_capture.out
in_width = 176, in_height = 144Unable to handle kernel NULL pointer dereference at virtual address 00000030

out_width = 176, out_height = 1pgd = bfc58000
44
top = 0, left = 0
[00000030] *pgd=4f80b831, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] PREEMPT SMP
Modules linked in: mxc_v4l2_capture ipu_csi_enc ipu_fg_overlay_sdc ipu_still ipu_bg_overlay_sdc ipu_prp_enc ov5642_camera camera_sensor_clock
CPU: 2    Not tainted  (3.0.35-2666-gbdde708 #22)
PC is at v4l2_int_ioctl_1+0x4/0x64
LR is at mxc_v4l_open+0x15c/0x344 [mxc_v4l2_capture]
pc : [<8037f01c>]    lr : [<7f031b98>]    psr: a0000013
sp : bfb61cc8  ip : bfcbf034  fp : 00000000
r10: 00000000  r9 : 00000000  r8 : bfe6d8c0
r7 : 00000000  r6 : ba11a000  r5 : bfcbf008  r4 : bfcbf000
r3 : bfcbf03c  r2 : bfb61db4  r1 : 000003ec  r0 : 00000000
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c53c7d  Table: 4fc5804a  DAC: 00000015
Process mxc_v4l2_captur (pid: 3492, stack limit = 0xbfb602f0)
Stack: (0xbfb61cc8 to 0xbfb62000)
Segmentation fault1cc0:                   bfcbf03c bfcbf000 bfcbf008 7f031b98 bf8a2400 bc0d8b20
1ce0: 00000001 80b21960 00000041 80b21960 80ad3a70 60000113 8c01c1cc 00000000
1d00: bfb60000 80ad3cc0 bfb60000 000200da 00000000 80b22444 00000003 00000000
1d20: 00000000 00000002 60000013 60000113 00000001 ffffffff 00000000 80b21960
1d40: bfb60000 00000002 80b22440 00000000 80ad3b38 bc0d8c00 bc0d8c00 800be1c4
1d60: bc0d8b20 bfca45a0 bff14630 800c06e8 80b21960 00000002 bfb60000 80ad3cc0
1d80: ba16fa00 00000000 00000000 80b22be0 8003de34 ffffffff 00000000 00000000
1da0: 00000002 80096d74 80b227cc ffffffff bffb2000 00000002 00000000 80096df4
1dc0: 00000000 8c018f90 bfc92a40 80233afc 7f035d80 800f7844 bff8eb80 80096e18
1de0: bc0d8d38 05100005 bfb60000 800f7884 ba11a000 7f031a3c ba11a008 bfe6d8c0
1e00: bfc92a40 00000000 80537a50 80372f44 80372e70 bf8e89d0 00000000 bfe6d8c0
1e20: bfc92a40 800f7ff4 bc027198 00000000 bfe6d8c0 bc2b3770 bfe6da00 bf8e89d0
1e40: 800f7ee8 800f2c88 00000000 bfb61ef8 00000002 bf8e89d0 00000026 00000000
1e60: 00000000 80100de8 bc027198 ffffff9c bfb60000 ba29c070 00000000 bf8e89d0
1e80: bfb61ef8 bfb61f78 ba2ec000 bfb61eb4 bfb60000 bfb60000 00000000 8010133c
1ea0: bfb61ec4 80b22be0 ba32e000 8005087c 00000261 bfe6da00 bc2b3770 bfb61ee4
1ec0: bfb60000 00000000 ba320000 00000001 bfb61f78 ba2ec000 ffffff9c ffffff9c
1ee0: bfb60000 00000000 00000000 80101704 00000041 8006b2b0 bfe6da00 bc2b3770
1f00: d9d3cd40 00000006 ba2ec005 00000000 bc051110 bf8e89d0 00000101 00000004
1f20: 00000000 00000000 802899dc 00011960 80ad3d14 000085c4 bffd27e0 ba239a40
1f40: 00000000 bffd2820 00000002 00000003 00000000 00000000 000085c4 ba2ec000
1f60: 00000002 00000003 00000001 800f3bc4 00000000 00000000 00000002 00000000
1f80: 00000026 00000100 00000008 7ed39dc4 00000001 000085c4 00000005 80043144
1fa0: 00000000 80042fc0 7ed39dc4 00000001 00011960 00000002 00000000 00008590
1fc0: 7ed39dc4 00000001 000085c4 00000005 00000000 00000000 2abb4000 00000000
1fe0: 00000000 7ed399d8 00008844 2ab1712c 60000010 00011960 00000000 00000000
[<8037f01c>] (v4l2_int_ioctl_1+0x4/0x64) from [<7f031b98>] (mxc_v4l_open+0x15c/0x344 [mxc_v4l2_capture])
[<7f031b98>] (mxc_v4l_open+0x15c/0x344 [mxc_v4l2_capture]) from [<80372f44>] (v4l2_open+0xd4/0x100)
[<80372f44>] (v4l2_open+0xd4/0x100) from [<800f7ff4>] (chrdev_open+0x10c/0x1d0)
[<800f7ff4>] (chrdev_open+0x10c/0x1d0) from [<800f2c88>] (__dentry_open.isra.14+0x16c/0x2b4)
[<800f2c88>] (__dentry_open.isra.14+0x16c/0x2b4) from [<80100de8>] (do_last.isra.34+0x308/0x684)
[<80100de8>] (do_last.isra.34+0x308/0x684) from [<8010133c>] (path_openat+0xb8/0x3a4)
[<8010133c>] (path_openat+0xb8/0x3a4) from [<80101704>] (do_filp_open+0x2c/0x80)
[<80101704>] (do_filp_open+0x2c/0x80) from [<800f3bc4>] (do_sys_open+0xdc/0x174)
[<800f3bc4>] (do_sys_open+0xdc/0x174) from [<80042fc0>] (ret_fast_syscall+0x0/0x30)
Code: e30f0dfd e34f0fff e12fff1e e92d4038 (e590c030)
---[ end trace e8f4a65e695d7ae2 ]---

 

 

How to slove error? I can not solve. OTL..

Outcomes