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.

BeagleBoard-xM and LI-LBCM5M1 Camera Board

Other Parts Discussed in Thread: LINUXEZSDK-SITARA

I have BeagleBoard-xM Rev. C and  LI-LBCM5M1 Camera Board.


I downloaded LINUXEZSDK-BBXM: Linux EZ SDK for BeagleBoard-xM from here http://www.ti.com/tool/LINUXEZSDK-SITARA#supportandcommunity

For work with LI-LBCM5M1 I enable mt9p031 driver in Linux kernel. But I2C2 port doesn't work, and camera doesn't work.

How can I enable I2C2 port?

  • Hi Michael,

    I recommend you to read the procedure for initialization of the I2C in the Technical reference manual - section 17.5 HS I2C Basic Programming Model. The check all register values related to I2C2 are they correct.

    BR

    Tsvetolin Shulev

  • In the Linux source

    ~/ti-sdk-beagleboard-05.07.00.00/board-support/linux-3.3.7/arch/arm/mach-omap2

    no file board-omap3beagle-camera.c

    I think it file need to init Camera module? Am I right?

    What I need to do to add support LI-LBCM5M1 camera?

    Is there anybody who can help me?

  • I added board-omap3beagle-camera.c file and modifi board-omap3beagle.c

    But file /dev/media0 didn't create.

    and no output after command:

    dmesg |grep mt9p031

    Why camera didn't registration?


    https://dl.dropboxusercontent.com/u/4870311/board-omap3beagle-camera.c

    https://dl.dropboxusercontent.com/u/4870311/board-omap3beagle.c

  • Hi Michael,

    I found a patch adding camera support for Beagleboard-xM. Please note that the is written for kernel 2.6.32 and LI-5M03 camera but you should make necessary changes to adopt the patch for your environment.

    http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/537/0310.0001_2D00_ARM_2D00_OMAP_2D00_beagle_2D00_add_2D00_support_2D00_for_2D00_MT9P031_2D00_Aptina_2D00_image_2D00_sensor.patch

    If you see some I2C errors in kernel traces like the next one:

    i2c_omap i2c_omap.2: Arbitration lost
    mt9p031 2-0048: Unable to detect sensor

    You need to add proper I2C lines initialization (pullups) to the U-Boot. Normal traces should be as following:

    mt9p031 2-0048: mt9p031 chip ID 1801

    http://e2e.ti.com/cfs-file.ashx/__key/communityserver-discussions-components-files/537/5700.0001_2D00_i2c_5F00_lines_5F00_init.patch

    BR

    Tsvetolin Shulev