Jump to content
  • 0

How to add ov5640 MIPI driver in kernel cofiguration using petalinux 2017.4



Hello folks,

I am building Pcam-5c petalinux project. For this we are using Zybo z7-20 board and referring following github link:


  Software versions:
  Vivado ver.    = 2017.4
  petalinux ver. = 2017.4

        While building linux kernel we came to know that it's not initializes OV5640 camera drivers. Hence, we are trying to add drivers manually. But We are getting following building errors.

   If anybody has worked related to this please provide information on How to build Linux kernel for Mipi camera Pcam 5C.

 Error Log as follows :
* Camera sensor devices
| *
| Sony IMX274 sensor support (VIDEO_IMX274) [N/m/y/?] n
| OmniVision OV2659 sensor support (VIDEO_OV2659) [N/m/y/?] n
| OmniVision OV5640 sensor support (VIDEO_OV5640) [N/m/y/?] (NEW) aborted!
| Console input/output is redirected. Run 'make oldconfig' to update configuration.
| ERROR: oe_runmake failed
| make[4]: *** [/home/sqm/Documents/petalinux17/cam/build/tmp/work-shared/plnx_arm/kernel-source/scripts/kconfig/Makefile:39: silentoldconfig] Error 1
| make[3]: *** [/home/sqm/Documents/petalinux17/cam/build/tmp/work-shared/plnx_arm/kernel-source/Makefile:546: silentoldconfig] Error 2
| make[2]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'.  Stop.
| make[1]: *** [Makefile:150: sub-make] Error 2
| make: *** [Makefile:24: __sub-make] Error 2
| WARNING: /home/sqm/Documents/petalinux17/cam/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/linux-xlnx/4.9-xilinx-v2017.4+gitAUTOINC+b450e900fd-r0/temp/run.do_compile.38499:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/sqm/Documents/petalinux17/cam/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/linux-xlnx/4.9-xilinx-v2017.4+gitAUTOINC+b450e900fd-r0/temp/log.do_compile.38499)
ERROR: Task (/home/sqm/Documents/petalinux17/components/yocto/source/arm/layers/meta-xilinx/recipes-kernel/linux/linux-xlnx_4.9.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2460 tasks of which 1925 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
Summary: There were 2 ERRO
R messages shown, returning a non-zero exit code.
ERROR: Failed to build project


Thanks in advance

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

You linked to the Vivado project the Petalinux project uses as a hardware platform. The Petalinux repo that has OV5640 support is https://github.com/Digilent/Petalinux-Zybo-Z7-20.

Commits https://github.com/Digilent/Petalinux-Zybo-Z7-20/commit/9dea683ef76fa7e3cc22dc0d6038e2a4c9bf3cb7 and https://github.com/Digilent/Petalinux-Zybo-Z7-20/commit/9dea683ef76fa7e3cc22dc0d6038e2a4c9bf3cb7 introduce Pcam 5C support. Try following the build instructions in that repo and report back with your findings.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...