AnsweredAssumed Answered

IMX6 Linux Adding Driver Module

Question asked by Jan R. on Jun 6, 2014
Latest reply on Jun 8, 2014 by raymond wang

Hello Community,


I try to add a driver for ar0330 aptina image sensor in linux.


Here are my steps:


1. Adding a new entry on the ltib Catalog


=> Editing the Kconfig file


I added this part.


config MXC_AR0330

    tristate "Ar0330"

    depends on !VIDEO_MXC_EMMA_CAMERA

    depends on ARCH_MX6Q

    select MXC_MIPI_CSI2 if ARCH_MX6Q



      If you plan to use the ar0330 Camera with mipi interface in your MXC system, say Y here.




2. Editing the Makefile

I added this part:

ar0330-objs := ar0330.o

obj-$(CONFIG_MXC_AR0330) += ar0330_camera_mipi.o


3. I copied the file ov6540_mipi.c and renamed it to ar0330.c


4. Tried to build linux



make[4]: *** No rule to make target `drivers/media/video/mxc/capture/ar0330_camera_mipi.c', needed by `drivers/media/video/mxc/capture/ar0330_camera_mipi.o'. Stop.



I can't find any camera_mipi.c file for other sensors, however they dont cause errors.


Do you know how to solve the problem?



King regards,