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.

AM5728: New Camera Module not working

Part Number: AM5728
Other Parts Discussed in Thread: TMDSCM572X

Hi,

We have bought a new AM571X Evaluation Module and a camera module TMDSCM572x. I have powered on the board with the given SD card. It is booting fine and matrix browser came up. But in multimedia demos only decode demos are working. Live Video + Encode demos are not working. When I tied to run OpenCV + OpenCL+ OpenGL Demo in Video Analytics, a error is shown that camera is not connected

I have connected the camera properly. Tried removing screws and connecting again. Still same issue. I think Camera module is not detected.

Only available video devices are /dev/video0, /dev/video10. No change in this list even if camera is inserted or removed.

Checked dmesg log.

root@am57xx-evm:~# dmesg | grep mt9t
[    4.533285] mt9t11x 4-003c: input-clock-freq: 32000000
[    4.539264] mt9t11x 4-003c: pixel-clock-freq: 96000000
[    4.632618] mt9t11x 4-003c: GPIO lookup for consumer reset
[    4.632631] mt9t11x 4-003c: using device tree for GPIO lookup
[    4.632704] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
[    4.632767] mt9t11x 4-003c: GPIO lookup for consumer powerdown
[    4.632777] mt9t11x 4-003c: using device tree for GPIO lookup
[    4.632799] of_get_named_gpiod_flags: parsed 'powerdown-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
[    4.632820] mt9t11x 4-003c: GPIO lookup for consumer oscen
[    4.632827] mt9t11x 4-003c: using device tree for GPIO lookup
[    4.632846] of_get_named_gpiod_flags: parsed 'oscen-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
[    4.632861] mt9t11x 4-003c: GPIO lookup for consumer bufen
[    4.632867] mt9t11x 4-003c: using device tree for GPIO lookup
[    4.632886] of_get_named_gpiod_flags: parsed 'bufen-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
[    4.632906] mt9t11x 4-003c: GPIO lookup for consumer camen
[    4.632912] mt9t11x 4-003c: using device tree for GPIO lookup
[    4.632932] of_get_named_gpiod_flags: parsed 'camen-gpios' property of node '/ocp/i2c@4807c000/mt9t11x@3C[0]' - status (0)
[    4.658426] mt9t11x 4-003c: Product ID error ffffff87

Then I have downloaded new Processor SDK ti-processor-sdk-linux-am57xx-evm-05.01.00.11. Tried prebuilt images from this SDK. Still same problem.

What could be the issue ?

Regards,

Pranay kumar K

  • Hello,

    I am sorry for the issues you are facing.
    This line mt9t11x 4-003c: Product ID error ffffff87 indicates that your sensor board has either gone bad or the sensor has turned loose.
    You could try snapping the sensor on the sensor board tightly and see all the pins are secure well.
    Please, try reconnect the module and use the screws to fix the camera module.

    Please refer these threads also:
    e2e.ti.com/.../722388
    e2e.ti.com/.../723412

    BR
    Margarita
  • Hi Margarita,

    On what Processor SDK should we work. In the sd card came with EVM ti-processor-sdk-linux-am57xx-evm-02.00.01.07-es2.0 SDK is present. Whereas new SDK is ti-processor-sdk-linux-am57xx-evm-05.01.00.11. From which SDK we should take am57xx-evm-reva3-cam-ov10635.dtb file and put it in rootfs/boot folder.

    In ti-processor-sdk-linux-am57xx-evm-02.00.01.07-es2.0 SDK there is no am57xx-evm-reva3-cam-ov10635.dtb file present in /arch/arm/boot/dts/ folder. I took the required dtb file from 05.01.00.11 SDK and put in the roofs/boot folder. Still camera did not work.

    Regards,
    Pranay
  • Hello,

    kashetty pranay kumar said:
    m57xx-evm-reva3-cam-ov10635.dtb

    No, this is for sensor board - ov10635 based. From what I see it seem that your camera module is mt9t11x based.

    In PSDK  5.x you must load the correct dtb file if you do not do this when you execute dmesg | grep mt9t there will be not prints.

    There is prebuild dtb file. You could load the correct dtb by editing the uEnv.txt file or the other way is to copy am57xx-evm-reva3-cam-mt9t111.dtb as am57xx-evm-reva3.dtb in the /boot folder of target board filesystem.
    Here you could find more information with steps and explanations(Manisha's answer) https://e2e.ti.com/support/processors/f/791/p/723367/2676189#2676189

    If you execute ls /dev/video* and there is not /dev/video1 execute again dmesg | grep mt9.

    If the error is still the same refer this(also there is a picture of the camera module, compare if it is the same as yours) https://e2e.ti.com/support/processors/f/791/t/723412

    Note: PSDK 2.x is very old release, please move to PSDK 5.x or 4.x.

    Hope this helps.

    BR
    Margarita