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.

TDA4VM: EDGEAI SK: enabling OV5640 camera

Part Number: TDA4VM

Hi,

I am struggling to enabling a Leopard OV5640 camera module connected to the CSI2 EXP port on the EdgeAI Starterkit.

After adding the right dtbo file to uenv.txt in boot partition,

root@j7-evm:/opt/edge_ai_apps# cat /run/media/mmcblk0p1/uenv.txt
psdk_setup_file=.psdk_setup
check_psdk_setup=load mmc 1:1 ${loadaddr} ${psdk_setup_file}

# Reset to the default environment
do_psdk_setup=env default -f -a; saveenv

# If not previously configured, then configure the environment and indicate this by writing a file
uenvcmd=if run check_psdk_setup; then echo "Already setup."; else run do_psdk_setup; mw.b ${loadaddr} 0 1; fatwrite mmc 1:1 ${loadaddr} .psdk_setup 1; reset;
fi

dorprocboot=1
name_overlays=k3-j721e-edgeai-apps.dtbo k3-j721e-eaik-csi2-ov5640.dtbo

the kernel boots up, but getting this error

root@j7-evm:/opt/edge_ai_apps# dmesg |grep -i ov5640
[ 8.011737] ov5640 8-003c: supply DOVDD not found, using dummy regulator
[ 8.550473] ov5640 8-003c: supply AVDD not found, using dummy regulator
[ 8.910556] ov5640 8-003c: supply DVDD not found, using dummy regulator
[ 9.197887] ov5640 8-003c: ov5640_read_reg: error: reg=300a
[ 9.212869] ov5640 8-003c: ov5640_check_chip_id: failed to read chip identifier
[ 9.317336] ov5640: probe of 8-003c failed with error -121

The module OV5640 https://www.leopardimaging.com/product/cmos-sensor-modules/mipi-camera-modules/li-am65x-csi2/

is connected to the CSI2 EXP connector, and is not external powered. Assuming it is powered through the CSI2 EXP connector.

Is there something I am missing?

Thanks,

--Gunter

  • Hi, 

    it was recommended that we connect the external 5V power supply to the OV5640 camera module. So I did that, but am still seeing the same issue.

    With 5V external connected:

    root@j7-evm:/opt/edge_ai_apps# dmesg |grep -i ov5640
    [ 8.303535] ov5640 8-003c: supply DOVDD not found, using dummy regulator
    [ 8.738359] ov5640 8-003c: supply AVDD not found, using dummy regulator
    [ 8.948980] ov5640 8-003c: supply DVDD not found, using dummy regulator
    [ 9.385588] ov5640 8-003c: ov5640_read_reg: error: reg=300a
    [ 9.501058] ov5640 8-003c: ov5640_check_chip_id: failed to read chip identifier
    [ 9.661238] ov5640: probe of 8-003c failed with error -121

    Is there something else missing?

    Thanks,

    --Gunter

  • Hi Gunter,

    Could you check under the rootfs partition's boot folder for k3-j721e-eaik-csi2-ov5640.dtbo? If the file does not exist, could you try unzipping the following file into that folder and rebooting again?

    k3-j721e-eaik-csi2-ov5640.zip

    Regards,

    Takuma

  • Hi Takuma,

    yes, the boot directory has the k3-j721e-eaik-csi2-ov5640.dtbo

    (base) gunter@gunter-Latitude-E7450:/media/gunter/rootfs/boot$ ls
    Image k3-j721e-eaik-csi2-ov5640.dtbo k3-j721e-proc-board-tps65917.dtb
    Image-5.10.41-g4c2eade9f7 k3-j721e-eaik.dtb k3-j721e-vision-apps.dtbo
    k3-j721e-common-proc-board.dtb k3-j721e-eaik-rpi-cam-imx219.dtbo vmlinux.gz
    k3-j721e-common-proc-board-infotainment.dtbo k3-j721e-edgeai-apps.dtbo vmlinux.gz-5.10.41-g4c2eade9f7

    Regards,

    --Gunter

  • Hi Takuma,

    I also used your dtbo file from the zip file, instead of the one I had on my system. But the result is unfortunately the same, the OV5640 still does not probe correctly.

    Regards,

    --Gunter

  • Hi Gunter,

    Personally, I have not worked with the CSI interface on the SK board, so my knowledge and tools are limited. Could you give me a week to track down somebody that can help, and also to gather information and tools to test it on my side?

    Regards,

    Takuma

  • Hi Gunter,

    I heard that the cause of the issue was connecting the wrong connector of the LI OV5640 to the SK board. Could you confirm that the CSI camera is functional now?

    Regards,

    Takuma

  • Hi Takuma,

    the problem was in my side, not connecting to the right connector on the LI OV5640 module. It works now!

    To be clear

    [] On LI OV5640 connect with J1

    [] On TDA4VM SK connect to J24

    [] No external 5V power applied

    This works, the camera driver gets probed correctly here on /dev/video1, the edge_ai apps run correctly after changing the input configuration to /dev/video1 and format = auto (letting gstreamer determine the format).

    Regards,

    --Gunter