I built a custom kernel to enable bcm2835-unicam and ov5647 kernel module and add ov5647 dt overlay, try to capture camera image via V4L2 official interface. (Of course I bought a Raspberry Pi official camera module - OV5647 version.)
Kernel base version: 4.19.64
Raspberry Pi: 3 model B v1.2
Camera Module: Raspbery Pi (OV5647) Rev 1.3
The good news is, I can capture the image, but the bad news is that image is abnormal (overlay & distortion).
(I put the image below)
Is there have anyone know why the image will wrong? Or have any idea to solve this problem?
Thanks for the help.
My capture command:
v4l2-ctl --device /dev/video0 --stream-mmap --stream-to=frame.raw --stream-count=1
====================== Here is the complete story ====================
My finial goal is to connect my own camera sensor via V4L2 architecture on Raspberry Pi CSI-2.
So I plan to use bcm2835-unicam + write a subdev driver to control my camera sensor.
Before that, I want to study and make sure bcm2835-unicam driver is workable.
Therefore, I buy a official Raspberry Pi camera module (OV5647) and build a custom kernel to enable bcm2835-unicam & ov5647 kernel module.
Final step, reference to https://github.com/raspberrypi/firmware ... ays/README
, enable ov5647 dt overlay.
Then... I encounter this problem....