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.

Need to add mt9t112 sensor as part of kernel

Hi,

I have VirtualBox on Windows 7  with Ubuntu 12.04.  Downloaded ti-sdk-beagle-05.05.01.00-Linux-x86-Install  and installed and build uImage

by following Dave's instructions.

 

 1.export <SDK PATH>/linux-devkit/bin:$PATH  

2.cd <SDK PATH>/board-support/linux-3.3.7-r115  

3.make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- mrproper

 4.make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- tisdk_beagleboard_defconfig

 5.make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- uImage  

I was able to run this successfully.

But I need to add support to Aptinal sensor mt9t112 as part of uImage. 

I tried to find it via "make menuconfig" under Device Drivers->multimedia support->video captures adapters->Encoders, decoders, sensors and other helper chips

but I did not see one for mt9t112

Any help and suggestion would be very much appreciated.

Thanks,

Asha

  • Hello,  Asha!

    For integrate your driver in Linux you should use follow steps:
    1. write driver
    2. modify Kconfig in selected section
    3. modify Makefile in selected section
    You can use http://www.micrel.com/_PDF/Ethernet/sw_designkit/Switch_Products/KSZ8863/Device_Drivers/KSZ8873%20PHY%20Driver%20Porting%20Guide%20v1.1.pdf as example.

    Or you can build your driver separately.

  • Hi,

    Thanks and I verified that the driver is already part of ti-sdk-beagleboard-05.05.01.00 -- file mt9t112.c is there (media/video) and the Kconfig file already has SOC_CAMERA_MT9T112 in it and the Makefile also has CONFIG_SOC_CAMERA_MT9T112 corresponding to  mt9t112.c but I do not see the  mt9t112.o file which indicates it has not been compiled. Also, I cannot find it when I go search for it via "make menuconfig"

     

    Thank,

    Asha

     

  • Hello, Asha!

    May be it depend on another component and you not use it, you can read depends for CONFIG_SOC_CAMERA_MT9T112 in KConfig.

  • Hi,

    Thanks and I verified that the driver is already part of ti-sdk-beagleboard-05.05.01.00 -- file mt9t112.c is there (media/video) and the Kconfig file already has SOC_CAMERA_MT9T112 in it and the Makefile also has CONFIG_SOC_CAMERA_MT9T112 corresponding to  mt9t112.c but I do not see the  mt9t112.o file which indicates it has not been compiled. Also, I cannot find it when I go search for it via "make menuconfig"

    When you do a menuconfig, traverse down

    ------>>>Device Drivers

        -------->>> Multimedia Support (Select it if its unselected)

                    ----------->>> Camera/Video grabbers support (Select it if its unselected)

                    ----------->>> V4L platform devices  (Select it if its unselected)

                                    --------->>> SoC Camera Support (Select it if its unselected)

                                     ---------->>> Select MT9T112 Sensor

    and you are ready to build now.

    Note: if you dont find MT9T112 sensor here post the code of Kconfig for MT9T112 which you have.


    Regards,

    --Prabhakar Lad

  • Hi Prabhakar,

    Thanks and I looked at the menuconfig and I noted  that Multimedia Support is selected but under it I do not see option for Camera/Video grabbers support and so I cannot select V4L platform devices.  I am attaching 4 files.  Kconfig_media and Makefile_media are from drivers/media  and Kconfig_video and Makefile_video are from drivers/media/video.  I appreciate help here.  Thanks, Asha

  • Hi,

    You missed out to attach the files.

    Regards,

    --Prabhakar

  • Hi Prabhakar,

    I am trying to attach -- I guess the file extentions were not the correct ones.  And so I am attaching the 4 files in a zipped file, MyWork.zip

    Thanks very much,

    Asha4186.MyWork.zip

  • Hi,  I found the way to enable the mt9t112 sensor via menuconfig:  device drivers->multimedia support->video captures->v4l paltform devices.  I am also attaching my top level config file named topConfig.txt1256.topConfig.txt

    I added a "printk(KERN INFO "mt9t112.c\n") in file mt9t112.c in the "probe" function. I rebuilt the uImage and ran it on the target. I never see my print -- just to see if I am running my version

     I see  the mt9t112 driver when I do lsmod but I never see my printk.  I can  run mplayer and can capture screenshot.  I am trying to capture video with mencoder but it is not in the ti-sdk-beagleboard-05.05.01.00-Linux-x86-Install package.  How can I get the mencoder and build it with this package?  Thanks very much. Asha

  • Hi,

    This means that, the 'beagleboard' there isnt code for mt9t112.(Can you

    check the machine files), Looks like you need add support for it in the machine code.

    Regards,

    --Prabhakar Lad

  • Hi Prabhaker,

    I am sorry but I am  not that familiar and so I do not know the associated machine files. Which machine files?

    Thanks very much.

    Asha