Subdev problem of OV5640 Mipi camera using IMX7D

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Subdev problem of OV5640 Mipi camera using IMX7D

2,406 Views
mayqueen
Contributor IV

As title, we have a bit order now, but stock this problem almost 2 months now, we're worry and feel bad, please help us  to fix this problem.

KERNEL: 3.14.52

Platform: IMX7 customer board

OS: Yocto 3.14.52

Camera: OV5640 mipi camera

it's initial success in kernel:

mxc_mipi-csi 30750000.mipi-csi: Registered sensor subdevice: ov5640_mipi 2-003c

camera ov5640_mipi is found

but when I issue this command:

root@imx7dsabresd:~# gst-launch-1.0 imxv4l2src device=/dev/video1 ! imxv4l2sink

====== IMXV4L2SRC: 4.0.8 build on Jan  5 2016 19:59:24. ======

====== IMXV4L2SINK: 4.0.8 build on Jan  5 2016 19:59:24. ======

Setting pipeline to PAUSED ...

display(/dev/fb0) resolution is (800x480).

Pipeline is live and does not need PREROLL ...

Setting pipeline to PLAYING ...

New clock: GstSystemClock

Chandling interrupt.

Interrupt: Stopping pipeline ...

Execution ended after 0:05:02.488665625

Setting pipeline to PAUSED ...

and stock here..... it  sometime works, anyway, very unstable.. (this camera works using IMX6 platform)

It works when I using videotestsrc.. Does anyboday has useful debug method??

I also trace the driver, why can't I dump CSICR3 register?

it always show 0x00, dma issue??

I don't want to missing this order, please help us, thank you!

Labels (2)
9 Replies

1,420 Views
vinodhulagabali
Contributor II

Hi,

      I want to bring up the ov5640 mipi camera using imx-warp7 So i have configured the configuration using imx reference guide in menuconfig but I am getting error while building image using bitbake core-image-minimal So is there any configuration has to be made in local.conf file the error logs and reference guide is attached So please find the attachments.

Your suggestions are apreciated Thank you

regards

Vinod

0 Kudos

1,420 Views
mayqueen
Contributor IV

Upgrade your BSP to 4.1.15 first, I stock on 3.14 for a long time, but 4.1.15 is very easy to porting, thanks.

1,420 Views
vinodhulagabali
Contributor II

Hi May Queen,

                     I have seen so many instruction for upgrading the BSP in community but i am not getting which i have to follow So can you please suggest me which are the steps to upgrade the BSP because i am new to the WARP7.

Thanks with regards

Vinod

0 Kudos

1,420 Views
mayqueen
Contributor IV

uh... ok! download the u-boot first.
git clone git://git.freescale.com/imx/uboot-imx.git

then switch to 2015.04 branch

then download the kernel.
git clone git://git.freescale.com/imx/linux-imx.git
switch to 4.1.15_2.0.0 branch

And you can start re-porting again!

0 Kudos

1,420 Views
mayqueen
Contributor IV

Maybe this log has some help to debug??

root@imx7dsabresd:~# v4l2-ctl -d /dev/video1 --all

Driver Info (not using l2):

        Driver name   : mx6s-csi

        Card type     : i.MX6S_CSI

        Bus info      : platform:30710000.csi

        Driver version: 3.14.52

        Capabilities  : 0x04000001

                Video Capture

                Streaming

Video input : 0 (Camera: ok)

Format Video Capture:

        Width/Height  : 640/480

        Pixel Format  : ''

        Field         : None

        Bytes per Line: 0

        Size Image    : 614400

        Colorspace    : Unknown (00000000)

Crop Capability Video Capture:

        Bunds      : Left 0, Top 0, Width 0, Height 0

        Default     : Left 0, Top 0, Width 0, Height 0

        Pixel Aspect: 0/0

Crop: Left 0, Top 0, Width 0, Height 0

Streaming Parameters Video Capture:

        Capabilities     : timeperframe

        Frames per second: 15.000 (15/1)

        Read buffers     : 0

0 Kudos

1,420 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello May,

     It is possible that there is something wrong with differential resistance of MIPI on PCB layout, So you can check it !

     In addtion , you can also try to reduce resoluton of preview , to see if preview is normal.

     If you have i.mx7d evaluation board, you can validate camera on evk at first, The method can help you confirm where the issue is from.

Regards,

Weidong

0 Kudos

1,420 Views
mayqueen
Contributor IV

Thank you weidong:

1. I also think the MIPI signal is unstable, but if it's a HW issue, how can I verify or measure it?

2. How to reduce resolution using gst-launch-1.0, I know default is 640x480 (VGA), the driver also need to modify?

3. I don't have evk board, but the customer board HW design is refer from evk board!

Thank you!

May

0 Kudos

1,420 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello May,

      for your questions:

1. I also think the MIPI signal is unstable, but if it's a HW issue, how can I verify or measure it?

[weidong] I feel the possibility HW issue is greater. Resistance of MIPI differential signals on PCB should be reviewed at first .

2. How to reduce resolution using gst-launch-1.0, I know default is 640x480 (VGA), the driver also need to modify?

[weidong] if 640x480 was tested and result was not good, don't try to reduce resolution again.

3. I don't have evk board, but the customer board HW design is refer from evk board!

[weidong] EVK board can help you find issue quickly, so i suggest you test the camera on it.

Best Regards,

Weidong

0 Kudos

1,420 Views
mayqueen
Contributor IV

I trace on OV5640_stream_on function in ov5640_mipi.c

it works but no response, so maybe mipi bus not stable? how to debug?

thank you

0 Kudos