IMX6 Linux Adding Driver Module

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX6 Linux Adding Driver Module

1,744 Views
janr_
Contributor I

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

ltib/rpm/BUILD/linux/drivers/media/video/mxc/campture

=> 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

    select MXC_CAMERA_SENSOR_CLK

    ---help---

      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

Error:

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,

0 Kudos
Reply
3 Replies

820 Views
raymondwang
Senior Contributor I

ar0330-objs := ar0330.o

obj-$(CONFIG_MXC_AR0330) += ar0330_camera_mipi.o

--->

ar0330_camera_mipi-objs := ar0330.o

obj-$(CONFIG_MXC_AR0330) += ar0330_camera_mipi.o

0 Kudos
Reply

820 Views
kevin_chan
Contributor III

把 ar0330-objs := ar0330.o 这句删掉. 把 ov6540_mipi.c 改为 ar0330_camera_mipi.c.

0 Kudos
Reply

820 Views
igorpadykov
NXP Employee
NXP Employee

Hi Jan,

suggest to look at

pdk2009_12_imx25_Linux_HelloWorld_AN.pdf included in

IMX25_0912_SDK_LINUXDOCS_BUNDLE

i.MX25 SDK 2009.12 Linux Documentation Bundle

Best regards

chip

0 Kudos
Reply