How to enable the drivers of camera module in imx-warp7

cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable the drivers of camera module in imx-warp7

1,819 Views
Contributor II

Hi,

      I have problem with enabling the drivers of the camera module. I have configured the menuconfig according to the attached document what they have explained and I have enabled the MXC_CAMERA_OV5640_MIPI but it is throwing some errors while building using bitbake core-image-minimal, The error logs are attached along with the configuration document So please help me.

 

Thanks with regards

Vinod Hulagabli

Original Attachment has been moved to: error_logs.zip

6 Replies

156 Views
Contributor IV

I had the same problem. I resolved it by changing this line in my defconfig to this:

CONFIG_MXC_IPU_DEVICE_QUEUE_SDC=y

Regards, Clay

156 Views
NXP TechSupport
NXP TechSupport

Hi vinod

one can try to add "ok" to csi is dts file imx7s-warp.dts :

linux-fslc/imx7s-warp.dts at 4.1-1.0.x-imx · WaRP7/linux-fslc · GitHub 

as it is done for example in arch/arm/boot/dts/imx7d-sdb.dts  :
&csi1 {
    csi-mux-mipi = <&gpr 0x14 4>;
    status = "okay";

linux-imx.git - i.MX Linux Kernel 

note that documentation is released for nxp official bsps described on

i.MX 6 / i.MX 7 Series Software and Development Tool|NXP 

and may be not fully applicable to linux-fslc as it may have differencies, please check

https://community.freescale.com/message/402940#402940

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

156 Views
Contributor II

Hi,

     I have made "ok" into csi is dts file imx7s-warp.dts : linux-fslc/imx7s-warp.dts at 4.1-1.0.x-imx · WaRP7/linux-fslc · GitHub 

but still it is giving undefined errors while building the error logs are as below while building image and the dts file path is yocto/build/tmp/work-shared/imx7s-warp/kernel-source/arch/arm/boot/dts/imx7s-warp.dts. So can you please help me. The error logs are as below.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

ERROR: linux-warp7-4.1-r0 do_compile: oe_runmake failed
ERROR: linux-warp7-4.1-r0 do_compile: Function failed: do_compile (log file is located at /u/ee209785/yocto1/build/tmp/work/imx7s_warp-poky-linux-gnueabi/linux-warp7/4.1-r0/temp/log.do_compile.2684)
ERROR: Logfile of failure stored in: /u/ee209785/yocto1/build/tmp/work/imx7s_warp-poky-linux-gnueabi/linux-warp7/4.1-r0/temp/log.do_compile.2684
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 2 zImage CC=arm-poky-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd LD=arm-poky-linux-gnueabi-ld.bfd   LOADADDR=0x80008000
|   CHK     include/config/kernel.release
|   GEN     ./Makefile
|   CHK     include/generated/uapi/linux/version.h
|   CHK     include/generated/utsrelease.h
|   Using /u/ee209785/yocto1/build/tmp/work-shared/imx7s-warp/kernel-source as source for kernel
| make[3]: `include/generated/mach-types.h' is up to date.
|   CHK     include/generated/bounds.h
|   CHK     include/generated/asm-offsets.h
|   CALL    /u/ee209785/yocto1/build/tmp/work-shared/imx7s-warp/kernel-source/scripts/checksyscalls.sh
|   CHK     include/generated/compile.h
|   CHK     kernel/config_data.h
|   LINK    vmlinux
|   LD      vmlinux.o
|   MODPOST vmlinux.o
|   GEN     .version
|   CHK     include/generated/compile.h
|   UPD     include/generated/compile.h
|   CC      init/version.o
|   LD      init/built-in.o
| drivers/built-in.o: In function `start_preview':
| vf610_adc.c:(.text+0x1ebf14): undefined reference to `foreground_sdc_select'
| vf610_adc.c:(.text+0x1ebf34): undefined reference to `bg_overlay_sdc_select'
| drivers/built-in.o: In function `stop_preview':
| vf610_adc.c:(.text+0x1ec18c): undefined reference to `bg_overlay_sdc_deselect'
| vf610_adc.c:(.text+0x1ec198): undefined reference to `foreground_sdc_deselect'
| drivers/built-in.o: In function `ioctl_dev_exit':
| vf610_adc.c:(.text+0x1f26bc): undefined reference to `mipi_csi2_get_info'
| vf610_adc.c:(.text+0x1f26c8): undefined reference to `mipi_csi2_get_status'
| vf610_adc.c:(.text+0x1f26e0): undefined reference to `mipi_csi2_disable'
| drivers/built-in.o: In function `ov5640_init_mode':
| vf610_adc.c:(.text+0x1f2ab8): undefined reference to `mipi_csi2_get_info'
| vf610_adc.c:(.text+0x1f2ac4): undefined reference to `mipi_csi2_get_status'
| vf610_adc.c:(.text+0x1f2ad4): undefined reference to `mipi_csi2_get_status'
| vf610_adc.c:(.text+0x1f2ae4): undefined reference to `mipi_csi2_set_lanes'
| vf610_adc.c:(.text+0x1f2b24): undefined reference to `mipi_csi2_set_datatype'
| vf610_adc.c:(.text+0x1f2fb4): undefined reference to `mipi_csi2_dphy_status'
| vf610_adc.c:(.text+0x1f2fcc): undefined reference to `mipi_csi2_dphy_status'
| vf610_adc.c:(.text+0x1f2ff4): undefined reference to `mipi_csi2_get_error1'
| vf610_adc.c:(.text+0x1f300c): undefined reference to `mipi_csi2_get_error1'
| vf610_adc.c:(.text+0x1f3054): undefined reference to `mipi_csi2_enable'
| vf610_adc.c:(.text+0x1f315c): undefined reference to `mipi_csi2_reset'
| vf610_adc.c:(.text+0x1f316c): undefined reference to `mipi_csi2_set_datatype'
| drivers/built-in.o: In function `ioctl_dev_init':
| vf610_adc.c:(.text+0x1f3960): undefined reference to `mipi_csi2_get_info'
| vf610_adc.c:(.text+0x1f396c): undefined reference to `mipi_csi2_enable'
| make[2]: *** [vmlinux] Error 1
| make[1]: *** [sub-make] Error 2
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /u/ee209785/yocto1/build/tmp/work/imx7s_warp-poky-linux-gnueabi/linux-warp7/4.1-r0/temp/log.do_compile.2684)
ERROR: Task 52 (/u/ee209785/yocto1/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-warp7_4.1.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2582 tasks of which 2581 didn't need to be rerun and 1 failed.
No currently running tasks (1305 of 2602)

Summary: 1 task failed:
  /u/ee209785/yocto1/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-warp7_4.1.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Thanks with regards

Vinod Hulagabali

0 Kudos

156 Views
Contributor II

Hi Vinod,

May I know How you resolved this issue?

Thanks

Venkatesh

0 Kudos

156 Views
Contributor II

Hi,

     Is there any recipes we need to configure in local.conf file for camara and display drivers if anything needed can you please help me.

Thanks with regards

Vinod Hulagabali

0 Kudos

156 Views
NXP TechSupport
NXP TechSupport

please post this to dedicated warp7 forum

https://www.element14.com/community/docs/DOC-79058/l/warp-7-the-next-generation-wearable-reference-p...

or meta-fsl-arm mailing list, so that someone familiar with it could try to assist you:
https://lists.yoctoproject.org/listinfo/meta-freescale

Best regards
igor

0 Kudos