Hi, everyone.I use ov2659 camera sensor connects with my custom iMX6ULL board.I directly used driver/media/i2c/ov2659.c code on linux kernel.The image has been displayed.But the image has two problems:
1.It has a bar on left
2.the image been split
I use ov5640 to test the hardware bus.The ov5640's picture is correct.
The below picture is snapshot form ov2659.Is it timing wrong on ov2659 driver of other thing?
The
how about the result by using unit test? any log file to share?
I found it.I modify to only test camera on file autorun-v4l2.sh.The below is result.
==== v4l2 capture test: 640 X 480 @ 30 ====
==== save frame count: 5 ====
Running test case: ./mxc_v4l2_capture.out -640 -ih 480 -ow 640 -oh 480 -fr 30 -m 0 -c 5 test.yuv
in_width = 176, in_height = 480
out_width = 640, out_height = 480
top = 0, left = 0
VIDIOC_DBG_G_CHIP_IDENT failed.
get format failed
test-camera.sh: FAIL test case: ./mxc_v4l2_capture.out -640 -ih 480 -ow 640 -oh 480 -fr 30 -m 0 -c 5 test.yuv
==== save frame count: 10 ====
Running test case: ./mxc_v4l2_capture.out -640 -ih 480 -ow 640 -oh 480 -fr 30 -m 0 -c 10 test.yuv
in_width = 176, in_height = 480
out_width = 640, out_height = 480
top = 0, left = 0
VIDIOC_DBG_G_CHIP_IDENT failed.
get format failed
test-camera.sh: FAIL test case: ./mxc_v4l2_capture.out -640 -ih 480 -ow 640 -oh 480 -fr 30 -m 0 -c 10 test.yuv
we haven't tested this driver you use, I don't know if the driver has any issue or not, you can refer to the driver of ov5642, I post the topic about this camera, but the customer don't share the experience there, but you can refer to it.
Thanks again.And I also happened another problem on ov5640.I got a new ov5640 camera and connect it with my imx6ull board.I found only 800x600 resolution is correct.Other resolutions have difference issue, such as picture has spilled four picture, a bar on left of the picture.
Which unit test? I had test more resolutions by driver supported.The 800x600 is right and others are same issue on that.