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.

AM62A7: Question related to the imx219 driver

Part Number: AM62A7

Dear TI staff,

We recently found that the imx219.ko built from processor sdk version 8.6 seems to have some problem: sometimes the imx219 camera failed to be probed, and in other cases the gstreamer pipeline utilizing imx219 would stuck after printing 'New clock: GstSystemClock'. On the contrary, when we use the imx219.ko from prebuilt image, everthing works fine.

We haven't modify anything in the driver code yet, so we want to ask if you could comfirm the availability of the code?

Another issue is about the patchwork mentioned in this link(https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-edgeai/AM62AX/08_06_00/exports/docs/devices/AM62AX/linux/getting_started.html#rpiv2-imx219-raw-sensor). It provides 1920x1080@60fps mode which we would like to try out, but it seems the patch is not for the current version of the driver code. If possible, would you also provide us with a feasible imx219 driver code that can produce 1920x1080@60fps stream?

Thank you for your support in advance.

Regards,

Huang Jingjie

  • Hi Jingjie,

    We haven't modify anything in the driver code yet, so we want to ask if you could comfirm the availability of the code?

    The code in your installed SDK should be what's built into the SDK image. Would you mind sharing how you rebuilt the code?

    You can also get the code from https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/media/i2c/imx219.c?h=ti-linux-5.10.y.

    Another thing you can try is to get the 9.0 release and rebuild it.

    If possible, would you also provide us with a feasible imx219 driver code that can produce 1920x1080@60fps stream?

    We don't actively develop the IMX219 driver code. You can try this patch and let us know if you run into any problems.

    Regards,

    Jianzhong

  • Hi Jianzhong,

    We followed the instruction in this link(https://software-dl.ti.com/processor-sdk-linux/esd/AM62AX/08_06_00_45/exports/docs/linux/Foundational_Components_Kernel_Users_Guide.html). Specifically, for building the imx219.ko we used

    make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- modules

    , and installed these modules using the module_install option.

    The trouble we encountered when applying the patch is that it was not for the current version of the driver code, i.e. the code snippets to be removed don't exist in the first place. I manually modified the code according to the patch and made it compilable, but apparently there are contents missing, making the ko not functioning correctly.

    The reason for a 60fps driver is that we want to test some use case demos similiar to our need and evaluate the performance. Our target sensor is not ready yet so we figure utilizing what we already have at hand could help picking up the pace. But if enabling imx219 to output 60fps stream requires so much effort, I would rather wait for my colleagues to finish the target sensor driver.

    Anyway thank you very much for the reply. I will compare the code we have with the one in your link. Maybe someone happened to modify something?

    Regards,

    Huang Jingjie

  • Hi Jingjie,

    Your build procedure looks good. I'll try to rebuild the SDK when I have a chance this week and see if I have the same problems.

    Thanks for sharing about your situation. I understand but unfortunately we don't have the IMX219 driver code for 60fps.

    Regards,

    Jianzhong

  • Hi Jingjie,

    I've tested rebuilding 9.0 SDK and the rebuilt IMX219 driver worked fine for me. Please give it a try when you have a chance. There are a few changes in 9.0 SDK:

    • tool chain is in <sdk installation folder>/external-toolchain-dir/arm-gnu-toolchain-11.3.rel1-x86_64-aarch64-none-linux-gnu/bin
    • default configuration is built as: make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig ti_arm64_prune.config
    • the rest of the build and install process remains the same
    • device tree overlay is located at /boot/dtb/ti
    • uEnv.txt is located at: /run/media/BOOT-mmcblk1p1/uEnv.txt
    • name_overlays should be set to ti/k3-am62a7-sk-csi2-imx219.dtbo

    Regards,

    Jianzhong

  • Hi Jianzhong,

    Thanks very much for the tips, I'll give it a try.

    Regards,

    Huang Jingjie