This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to add support for OV5642 chip DM3730

Other Parts Discussed in Thread: DM3730

Hello I use a set of debug LOGITSPD based on DM3730. I need to add support for the chip OV5642 camera. Support to set the kernel config. I have in my possession the kernel version 3.0.4. There is support only OV2640. I will appreciate any help. Thank you.

  • Hi Alexey,

    You could make several steps to add support for the ov5642 camera sensor in your kernel:

    Make a copy of the gl860-ov2640.c file. Place it in the same folder and rename it to the gl860-ov5642.c. Change the configurations with the value suitable for the new camera sensor.

    Add the "gl860-ov5642.o \" row in the Makefile in the same folder.

    Add in the gl860.c and gl860.h files code for the ov5642 camera sensor similar to those for ov2640.

    BR

    Tsvetolin Shulev

  • Thanks for the response Cvetolin. The matter is that SOC camera ov5642 support is necessary to me. Here that made: I added in the "makefile" and "kconfig" files information on ov5642. I threw ov5642.c source code in the directory with remaining drivers. As a result in kernel menuconfig it appeared, but in case of compilation gives out an error. Probably to a source code it is necessary to apply any patch. What do you think?

  • Hi,

    May be there is some errors in the ov5642.c file. You can see an example of ov5642.c at the link below and try to fix your one:

    http://svn.dd-wrt.com:8000/browser/src/linux/universal/linux-3.3/drivers/media/video/ov5642.c?rev=18879

    If this doesn't fix the errors post the log and your file.

    BR

    Tsvetolin Shulev

  • Good afternoon Tsvetolin. Errors in case of compilation appeared because of mismatch of libraries entering into different versions of a kernel. Support of ov5642 in a kernel 3.3.8 is added by default. As a result I achieved compilation without errors. The kernel gathered, but now other problem. I don't know as to initialize soc the camera when loading. When I do media-ctl - p of the camera I don't see. As I understood it is necessary that the camera was defined as/dev/v4l2-subdev.