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.

SK-TDA4VM: enable arducam ptz camera on sk-tda4vm

Part Number: SK-TDA4VM

Tool/software:

Hello, I would like to enable the camera arducam ptz camera (https://github.com/ArduCAM/PTZ-Camera-Controller/tree/master?tab=readme-ov-file) on the sk-tda4vm. Where can i find the dtbo file relative to this camera ?

I am using the SD card image tisdk-edgeai-image-j721e-evm.wic (version 10.X)

Thanks a lot

  • Hi Mariem,

    Could you clarify whichArducam model ptz camera you are looking to enable? We have not tested or validated any ptz camera with our devices so this would not be supported out of box. For a list of sensors that are supported on SK-TDA4VM, reference the following: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-sk-tda4vm/10_00_00/exports/edgeai-docs/devices/TDA4VM/linux/getting_started.html#hardware-setup

    Thank you,

    Fabiana

  • Hello Fabiana,

    Thank you for your answer. I am using the camera PTZ Arducam 8 MP (here is the link: https://www.arducam.com/product/b01678mp-arducam-8mp-pan-tilt-zoom-ptz-camera-for-raspberry-pi/ ) 

    Isn't possible to integrate it and use it for a custom model that I am implementing. It is a model that detects the person's face and then keep tracking it. 

    If this is possible, could you please suggest me the right approach to follow?

    Thanks a lot,

    Mariem

  • Hi Mariem,

    The sensor linked is based on the 8MP IMX219 sensor which is supported on this device. The instructions to enable this sensor are outlined here: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-sk-tda4vm/10_00_00/exports/edgeai-docs/devices/TDA4VM/linux/getting_started.html#rpiv2-imx219-raw-sensor

    Once you have made the required changes, you should see the sensor information by either rebooting the device, running ./init_script.sh or ./scripts/setup_cameras.sh as seen here: https://software-dl.ti.com/jacinto7/esd/processor-sdk-linux-sk-tda4vm/10_00_00/exports/edgeai-docs/common/configuration_file.html#camera-sources-v4l2

    Use the sensor information provided as the input source in your custom model. Take a look through the demos and tutorials in SDK documentation to understand how this can be accomplished. Let me know if you have any further questions.

    Thank you,

    Fabiana

  • Hello Fabiana,

    Thank you very much :) I successfully connected the camera, I can see the sensor information when launching the script: setup_cameras.sh.

    However, when I tried to test it, I had some errors.

    On target side I run successfully the ros node: 

    ros2 launch gscam2 v4l_imx219_launch.py cam_id:=X subdev_id:=Y

    But from the PC side I cannot visualize the camera's output. I used the following command:
    ros2 launch ti_viz_nodes gscam_nv12_launch.py width:=1280 height:=720

    I got the following error:

    Do you have an idea?

    Thanks a lot,

    Mariem

  • Hello

    Our expert, Fabiana, who handles this thread, is out of the office until 25 September. Please expect a delay in responses.

    Thanks.

  • Hello,

    Thank you for the information.

  • Hi Mariem,

    Can you validate that you are able to run one of the IMX219 TI demo applications and view the results on your PC?

    See: https://software-dl.ti.com/jacinto7/esd/robotics-sdk/10_00_00/TDA4VM/docs/source/docker/setting_docker_ros2.html#run-demo-applications

    Thank you,

    Fabiana

  • Hello Fabiana,

    Unfortunately the examples are not working.

    When I launch the object detection example of IMX219 I have No image detected in RVIZ (on the PC)

    In the following screenshot you can see that my camera is detected:

    In the next screenshots the launch of the ros node on the target and the result on the PC:

    DO you have an idea why it is not working? I can see an error when I executed the example on the targe: [ERROR] [1727446820.197511301] [camera_calibration_parsers]: Unable to open camera calibration file [/opt/imaging/imx390/imx390_35244_equidistant_1280x720_rect.yaml]

    If it is the cause of the problem, how can I solve it? Because I could not find the yaml file.

    Thanks a lot,

    Mariem

  • Hi Mariem,

    Did you follow the robotics SDK setup instructions? If not, follow the steps outlined in the following pages and let me know if you have any questions.

    https://software-dl.ti.com/jacinto7/esd/robotics-sdk/10_00_00/TDA4VM/docs/source/docker/README.html

    https://software-dl.ti.com/jacinto7/esd/robotics-sdk/10_00_00/TDA4VM/docs/source/docker/setting_docker_ros2.html

    Thank you,

    Fabiana

  • Hello Fabiana,

    Yes I followed the robotics SDK instructions.

    When I run the example: ros2 launch ti_vision_cnn gscam_objdet_cnn_imx219_launch.py cam_id:=X subdev_id:=Y

    I get this error:  [FATAL] [1727859184.979048301] [camera.gscam_publisher]: Failed to pause stream, check gscam_config

    and from PC side I run: ros2 launch ti_viz_nodes rviz_objdet_cnn_launch.py. But I get the message: "No Image" in RVIZ.

    I tried to test the camera using the Edge AI gallery examples that appear on the screen when connecting the board. I used the option custom and I selected the camera as input. I was able to run the Edge AI models using the camera as input.

    I still ignore why it is not working when I try the ROS examples. DO you have an idea?

    Thanks a lot,

    Mariem

  • Hi Mariem,

    The gscam ROS nodes use GStreamer underneath. Therefore, let's first see if we can create a GStreamer pipeline directly without ROS.

    What do you see when running the following command after setting up the camera with setup_cameras_v3link.sh?

    • gst-launch-1.0 v4l2src device=/dev/video-imx219-cam0 io-mode=5 do-timestamp=true ! \
      video/x-bayer, width=1920, height=1080, format=rggb ! \
      tiovxisp sink_0::device=v4l-imx219-subdev0 dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_10b_1640x1232.bin \
      sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_10b_1640x1232.bin format-msb=7 sensor-name=SENSOR_SONY_IMX219_RPI ! \
      video/x-raw, format=NV12 ! \
      tiovxmultiscaler ! \
      tiovxdlcolorconvert target=1 out-pool-size=4 ! autovideosink

    Regards,

    Takuma

  • Hello Takuma,

    Thank you for your answer.

    Here is the output of the command:

    root@tda4vm-sk:/opt/edgeai-gst-apps/scripts# ./setup_cameras_v3link.sh
    Unable to setup formats: Invalid argument (22)
    IMX219 Camera 0 detected
        device = /dev/video-imx219-cam0
        name = imx219
        format = [fmt:SRGGB8_1X8/1920x1080 field: none]
        subdev_id = /dev/v4l-imx219-subdev0
        isp_required = yes
        ldc_required = yes
    Unable to setup routes: Invalid argument (22)
    Unable to setup formats: Invalid argument (22)
    Unable to setup routes: Invalid argument (22)
    Unable to setup formats: Invalid argument (22)
    Unable to setup routes: Invalid argument (22)
    Unable to setup formats: Invalid argument (22)
    root@tda4vm-sk:/opt/edgeai-gst-apps/scripts# gst-launch-1.0 v4l2src device=/dev/video-imx219-cam0 io-mode=5 do-timestamp=true ! \
    > video/x-bayer, width=1920, height=1080, format=rggb ! \
    > tiovxisp sink_0::device=v4l-imx219-subdev0 dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_10b_1640x1232.bin \
    > sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_10b_1640x1232.bin format-msb=7 sensor-name=SENSOR_SONY_IMX219_RPI ! \
    > video/x-raw, format=NV12 ! \
    > tiovxmultiscaler ! \
    > tiovxdlcolorconvert target=1 out-pool-size=4 ! autovideosink
    APP: Init ... !!!
       114.316295 s: MEM: Init ... !!!
       114.316331 s: MEM: Initialized DMA HEAP (fd=8) !!!
       114.316437 s: MEM: Init ... Done !!!
       114.316446 s: IPC: Init ... !!!
       114.378727 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
       114.386335 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       114.390541 s:  VX_ZONE_INIT:Enabled
       114.390569 s:  VX_ZONE_ERROR:Enabled
       114.390577 s:  VX_ZONE_WARNING:Enabled
       114.402203 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-0
       114.402409 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-1
       114.402491 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2
       114.402565 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3
       114.402576 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
       114.405448 s:  VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
    WARNING: erroneous pipeline: could not set property "target" in element "tiovxdlcolorconvert" to "1"

  • Hi Mariem,

    My apologies, could you remove target=1 from the script?

    Additionally, I might have confused the hardware setup with the Arducam V3Link Camera kit that is used in this FAQ: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1328512/faq-sk-am68-enabling-arducam-v3link-camera-kit-on-sk-am68-and-sk-am69

    Could you try the original setup_cameras.sh script you were using and share the logs?

    Regards,

    Takuma

  • Hello Takuma,

    sorry for the delay, I was on sick leave.

    Here are the logs:

    root@tda4vm-sk:/opt/edgeai-gst-apps/scripts# ./setup_cameras.sh
    IMX219 Camera 0 detected
        device = /dev/video-imx219-cam0
        name = imx219
        format = [fmt:SRGGB8_1X8/1920x1080]
        subdev_id = /dev/v4l-imx219-subdev0
        isp_required = yes
    root@tda4vm-sk:/opt/edgeai-gst-apps/scripts# gst-launch-1.0 v4l2src device=/dev/video-imx219-cam0 io-mode=5 do-timestamp=true ! \
    > video/x-bayer, width=1920, height=1080, format=rggb ! \
    > tiovxisp sink_0::device=v4l-imx219-subdev0 dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_10b_1640x1232.bin \
    > sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_10b_1640x1232.bin format-msb=7 sensor-name=SENSOR_SONY_IMX219_RPI ! \
    > video/x-raw, format=NV12 ! \
    > tiovxmultiscaler ! \
    > tiovxdlcolorconvert out-pool-size=4 ! autovideosink
    APP: Init ... !!!
       142.016677 s: MEM: Init ... !!!
       142.016722 s: MEM: Initialized DMA HEAP (fd=8) !!!
       142.016827 s: MEM: Init ... Done !!!
       142.016837 s: IPC: Init ... !!!
       142.075694 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
       142.084894 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       142.089222 s:  VX_ZONE_INIT:Enabled
       142.089254 s:  VX_ZONE_ERROR:Enabled
       142.089261 s:  VX_ZONE_WARNING:Enabled
       142.099711 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-0
       142.099856 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-1
       142.099935 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2
       142.100005 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3
       142.100015 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
       142.102948 s:  VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
    Setting pipeline to PAUSED ...
    [  134.866177] kauditd_printk_skb: 5 callbacks suppressed
    [  134.866184] audit: type=1006 audit(1728987872.910:23): pid=1622 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=4 res=1
    [  134.884537] audit: type=1300 audit(1728987872.910:23): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffd1904b98 a2=4 a3=1 items=0 ppid=1 pid=1622 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4 comm="(systemd)" exe="/usr/lib/
    systemd/systemd-executor" key=(null)
    [  134.911658] audit: type=1327 audit(1728987872.910:23): proctitle="(systemd)"
    [  135.151148] audit: type=1006 audit(1728987873.194:24): pid=1619 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=5 res=1
    [  135.163980] audit: type=1300 audit(1728987873.194:24): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffccbcd5b8 a2=4 a3=1 items=0 ppid=1 pid=1619 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=5 comm="(weston)" exe="/usr/lib/sys
    temd/systemd-executor" key=(null)
    [  135.190576] audit: type=1327 audit(1728987873.194:24): proctitle="(weston)"
    warning: queue 0xffff88000be0 destroyed while proxies still attached:
      xdg_wm_base@7 still attached
      wl_seat@6 still attached
      wl_subcompositor@5 still attached
      wl_compositor@4 still attached
      wl_registry@2 still attached
    Pipeline is live and does not need PREROLL ...
    Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayWayland\)\ gldisplaywayland0";
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    Tried to add event to destroyed queue
    [  143.087662] audit: type=1701 audit(1728987881.134:25): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1606 comm="gstglcontext" exe="/usr/bin/gst-launch-1.0" sig=6 res=1
    [  143.133636] audit: type=1334 audit(1728987881.178:26): prog-id=21 op=LOAD
    [  143.142632] audit: type=1334 audit(1728987881.186:27): prog-id=22 op=LOAD
    [  143.149559] audit: type=1334 audit(1728987881.186:28): prog-id=23 op=LOAD
    Aborted (core dumped)
    root@tda4vm-sk:/opt/edgeai-gst-apps/scripts# [  144.668191] audit: type=1334 audit(1728987882.714:29): prog-id=23 op=UNLOAD
    [  144.675161] audit: type=1334 audit(1728987882.714:30): prog-id=22 op=UNLOAD
    [  144.682121] audit: type=1334 audit(1728987882.714:31): prog-id=21 op=UNLOAD

  • Hi Mariem,

    Welcome back! I am sorry to hear about the sickness, but good to hear back from you.

    Now, as for the pipeline, could you change the two "...1640x1232.bin" to 1920x1080.bin and retry?

    If this works, then most likely the issue is the Robotics SDK examples have some hardcoded file names and since in this new case we are using a slightly different camera module, the resolution is different than what the examples expect.

    Regards,

    Takuma

  • Hello Takuma,

    Thank you very much.

    I tried to change the command as you suggested.

    I do not see the camera working, but there is a black window that appeared.

    Below the logs.

    Thanks again,

    Mariem

    root@tda4vm-sk:/opt/edgeai-gst-apps/scripts# ./setup_cameras.sh
    IMX219 Camera 0 detected
        device = /dev/video-imx219-cam0
        name = imx219
        format = [fmt:SRGGB8_1X8/1920x1080]
        subdev_id = /dev/v4l-imx219-subdev0
        isp_required = yes
    root@tda4vm-sk:/opt/edgeai-gst-apps/scripts# gst-launch-1.0 v4l2src device=/dev/video-imx219-cam0 io-mode=5 do-timestamp=true ! \
    > video/x-bayer, width=1920, height=1080, format=rggb ! \
    > tiovxisp sink_0::device=v4l-imx219-subdev0 dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_10b_1920x1080.bin \
    > sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_10b_1920x1080.bin format-msb=7 sensor-name=SENSOR_SONY_IMX219_RPI ! \
    > video/x-raw, format=NV12 ! \
    > tiovxmultiscaler ! \
    > tiovxdlcolorconvert out-pool-size=4 ! autovideosink
    APP: Init ... !!!
       264.455141 s: MEM: Init ... !!!
       264.455186 s: MEM: Initialized DMA HEAP (fd=8) !!!
       264.455292 s: MEM: Init ... Done !!!
       264.455301 s: IPC: Init ... !!!
       264.521745 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
       264.531648 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       264.535372 s:  VX_ZONE_INIT:Enabled
       264.535397 s:  VX_ZONE_ERROR:Enabled
       264.535403 s:  VX_ZONE_WARNING:Enabled
       264.545945 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-0
       264.546069 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-1
       264.546152 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2
       264.546222 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3
       264.546233 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
       264.548755 s:  VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
    Setting pipeline to PAUSED ...
    [  257.231774] audit: type=1006 audit(1729164022.147:23): pid=1734 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=4 res=1
    [  257.244677] audit: type=1300 audit(1729164022.147:23): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffd69fdec8 a2=4 a3=1 items=0 ppid=1 pid=1734 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4 comm="(systemd)" exe="/usr/lib/
    systemd/systemd-executor" key=(null)
    [  257.271723] audit: type=1327 audit(1729164022.147:23): proctitle="(systemd)"
    [  257.553047] audit: type=1006 audit(1729164022.467:24): pid=1731 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=5 res=1
    [  257.565713] audit: type=1300 audit(1729164022.467:24): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffe4b52d98 a2=4 a3=1 items=0 ppid=1 pid=1731 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=5 comm="(weston)" exe="/usr/lib/sys
    temd/systemd-executor" key=(null)
    [  257.592696] audit: type=1327 audit(1729164022.467:24): proctitle="(weston)"
    warning: queue 0xffff90000be0 destroyed while proxies still attached:
      xdg_wm_base@7 still attached
      wl_seat@6 still attached
      wl_subcompositor@5 still attached
      wl_compositor@4 still attached
      wl_registry@2 still attached
    Pipeline is live and does not need PREROLL ...
    Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayWayland\)\ gldisplaywayland0";
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock
    Redistribute latency...
       266.010709 s:  VX_ZONE_ERROR:[vxMapUserDataObject:457] No available user data object maps
       266.010765 s:  VX_ZONE_ERROR:[vxMapUserDataObject:458] May need to increase the value of TIVX_USER_DATA_OBJECT_MAX_MAPS in tiovx/include/TI/tivx_config.h
       266.010775 s:  VX_ZONE_ERROR:[vxMapUserDataObject:457] No available user data object maps
       266.010782 s:  VX_ZONE_ERROR:[vxMapUserDataObject:458] May need to increase the value of TIVX_USER_DATA_OBJECT_MAX_MAPS in tiovx/include/TI/tivx_config.h
    Caught SIGSEGV
    #0  0x0000ffffaa75906c in poll () from /usr/lib/libc.so.6
    #1  0x0000ffffaa91ac20 in ?? () from /usr/lib/libglib-2.0.so.0
    #2  0x0000ffffaa91b734 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
    #3  0x000000000040509c in ?? ()
    #4  0x0000ffffaa6a84b4 in ?? () from /usr/lib/libc.so.6
    #5  0x0000ffffaa6a858c in __libc_start_main () from /usr/lib/libc.so.6
    #6  0x0000000000403c30 in ?? ()
    Spinning.  Please run 'gdb gst-launch-1.0 1717' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
    Tried to add event to destroyed queue[  261.601011] audit: type=1701 audit(1729164026.515:25): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1717 comm="gstglcontext" exe="/usr/bin/gst-launch-1.0" sig=6 res=1

    [  261.630866] audit: type=1334 audit(1729164026.543:26): prog-id=21 op=LOAD
    [  261.638796] audit: type=1334 audit(1729164026.551:27): prog-id=22 op=LOAD
    [  261.645741] audit: type=1334 audit(1729164026.551:28): prog-id=23 op=LOAD
    Aborted (core dumped)
    root@tda4vm-sk:/opt/edgeai-gst-apps/scripts# [  263.335639] audit: type=1334 audit(1729164028.251:29): prog-id=23 op=UNLOAD
    [  263.342647] audit: type=1334 audit(1729164028.251:30): prog-id=22 op=UNLOAD
    [  263.349604] audit: type=1334 audit(1729164028.251:31): prog-id=21 op=UNLOAD

    CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.8 | VT102 | Offline | ttyUSB2                                                                                                                                                                                                

  • Hi Mariem,

    Good and bad to see. Good to see the pipeline is starting, and also good to be able to narrow down the issue by eliminating the ROS factor. Bad in the sense that the issue seems to be with camera sensor driver or camera hardware.

    My recommendations in order of easiness to check:

    • First, check if the camera has a lens cap. I have seen this happen to folks (myself included).
    • Next, check if the camera has some sort of focus mechanism. I have seen that sometimes there are cameras where you can twist the lens to focus using a lens adjuster like this:

      Sometimes, the lens is so out of focus that the screen just looks dark (although, usually not as dark as what you have screenshotted)
    • Check the device tree overlay with the overlay we have for RPi IMX219: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/arch/arm64/boot/dts/ti/k3-j721e-sk-csi2-rpi-imx219.dtso?h=ti-linux-6.1.y
      Specifically, check if I2C address, which by default is 0x10 for our overlays, matches the I2C address of your particular camera module.
      Also check if any signals are routed differently for your camera module compared to the RPi 219 camera, and see if the reset-gpio pin is correct: https://www.raspberrypi.com/products/camera-module-v2/
    • Check the "dmesg" logs to see if the camera module is probed and there are no errors. You may send the output of "dmesg" through this forum and I can take a look at it.

    Regards,

    Takuma

  • Hello Takuma,

    Thank you for your response.

    You were right !

    I removed the lens cap, now I can see a green shadow in the black box that appears when I run the command. I tried to put a white glass  in front of the camera and I can see a part of the glass but in green color. Is this the expected result?

    I also tried to use the camera with the custom examples that appear in the screen once I start the board. They are working perfectly with the camera.

    I attached the log of dmesg in this message.

    Thanks and have a nice weekend.

    Mariem

    root@tda4vm-sk:/opt/edgeai-gst-apps# dmesg
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd080]
    [    0.000000] Linux version 6.6.32-ti-gdb8871293143-dirty (oe-user@oe-host) (aarch64-oe-linux-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240620) #1 SMP PREEMPT Thu Aug  1 19:10:56 UTC 2024
    [    0.000000] KASLR disabled due to lack of seed
    [    0.000000] Machine model: Texas Instruments J721E SK
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] Reserved memory: created CMA memory pool at 0x00000008e0000000, size 512 MiB
    [    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000008e0000000..0x00000008ffffffff (524288 KiB) map reusable linux,cma
    [    0.000000] OF: reserved mem: 0x000000009e800000..0x000000009fffffff (24576 KiB) nomap non-reusable optee@9e800000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a0000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a0000000..0x00000000a00fffff (1024 KiB) nomap non-reusable vision-apps-r5f-dma-memory@a0000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a0100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a0100000..0x00000000a0ffffff (15360 KiB) nomap non-reusable vision-apps-r5f-memory@a0100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a1000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a1000000..0x00000000a10fffff (1024 KiB) nomap non-reusable vision-apps-r5f-dma-memory@a1000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a1100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a1100000..0x00000000a1ffffff (15360 KiB) nomap non-reusable vision-apps-r5f-memory@a1100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a2000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a2000000..0x00000000a20fffff (1024 KiB) nomap non-reusable vision-apps-r5f-dma-memory@a2000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a2100000, size 31 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a2100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a2100000..0x00000000a3ffffff (31744 KiB) nomap non-reusable vision-apps-r5f-memory@a2100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a4000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a4000000..0x00000000a40fffff (1024 KiB) nomap non-reusable vision-apps-r5f-dma-memory@a4000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a4100000, size 31 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a4100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a4100000..0x00000000a5ffffff (31744 KiB) nomap non-reusable vision-apps-r5f-memory@a4100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a6000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a6000000..0x00000000a60fffff (1024 KiB) nomap non-reusable vision-apps-r5f-dma-memory@a6000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a6100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a6100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a6100000..0x00000000a6ffffff (15360 KiB) nomap non-reusable vision-apps-r5f-memory@a6100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-dma-memory@a7000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a7000000..0x00000000a70fffff (1024 KiB) nomap non-reusable vision-apps-r5f-dma-memory@a7000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a7100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-memory@a7100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a7100000..0x00000000a7ffffff (15360 KiB) nomap non-reusable vision-apps-r5f-memory@a7100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-dma-memory@a8000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a8000000..0x00000000a80fffff (1024 KiB) nomap non-reusable vision-apps-c66-dma-memory@a8000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a8100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-memory@a8100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a8100000..0x00000000a8ffffff (15360 KiB) nomap non-reusable vision-apps-c66-memory@a8100000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a9000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-dma-memory@a9000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a9000000..0x00000000a90fffff (1024 KiB) nomap non-reusable vision-apps-c66-dma-memory@a9000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000a9100000, size 15 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c66-memory@a9100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000a9100000..0x00000000a9ffffff (15360 KiB) nomap non-reusable vision-apps-c66-memory@a9100000
    [    0.000000] OF: reserved mem: 0x00000000aa000000..0x00000000abffffff (32768 KiB) nomap non-reusable vision-apps-rtos-ipc-memory-region
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000ac000000, size 96 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-dma-memory@ac000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000ac000000..0x00000000b1ffffff (98304 KiB) nomap non-reusable vision-apps-dma-memory@ac000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000b2000000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c71-dma-memory@b2000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000b2000000..0x00000000b20fffff (1024 KiB) nomap non-reusable vision-apps-c71-dma-memory@b2000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000b2100000, size 95 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-c71-memory@b2100000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000b2100000..0x00000000b7ffffff (97280 KiB) nomap non-reusable vision-apps-c71-memory@b2100000
    [    0.000000] OF: reserved mem: initialized node vision_apps_shared-memories, compatible id dma-heap-carveout
    [    0.000000] OF: reserved mem: 0x00000000b8000000..0x00000000d7ffffff (524288 KiB) map non-reusable vision_apps_shared-memories
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000d8000000, size 192 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-lo@d8000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000d8000000..0x00000000e3ffffff (196608 KiB) nomap non-reusable vision-apps-core-heap-memory-lo@d8000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000e4000000, size 8 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-virtual-eth-queues@e4000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000e4000000..0x00000000e47fffff (8192 KiB) nomap non-reusable vision-apps-r5f-virtual-eth-queues@e4000000
    [    0.000000] Reserved memory: created DMA memory pool at 0x00000000e4800000, size 24 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-r5f-virtual-eth-buffers@e4800000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x00000000e4800000..0x00000000e5ffffff (24576 KiB) nomap non-reusable vision-apps-r5f-virtual-eth-buffers@e4800000
    [    0.000000] Reserved memory: created DMA memory pool at 0x0000000880000000, size 624 MiB
    [    0.000000] OF: reserved mem: initialized node vision-apps-core-heap-memory-hi@880000000, compatible id shared-dma-pool
    [    0.000000] OF: reserved mem: 0x0000000880000000..0x00000008a6ffffff (638976 KiB) nomap non-reusable vision-apps-core-heap-memory-hi@880000000
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000ffffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   [mem 0x0000000100000000-0x00000008ffffffff]
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009e7fffff]
    [    0.000000]   node   0: [mem 0x000000009e800000-0x00000000b7ffffff]
    [    0.000000]   node   0: [mem 0x00000000b8000000-0x00000000d7ffffff]
    [    0.000000]   node   0: [mem 0x00000000d8000000-0x00000000e5ffffff]
    [    0.000000]   node   0: [mem 0x00000000e6000000-0x00000000ffffffff]
    [    0.000000]   node   0: [mem 0x0000000880000000-0x00000008a6ffffff]
    [    0.000000]   node   0: [mem 0x00000008a7000000-0x00000008ffffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.4
    [    0.000000] percpu: Embedded 20 pages/cpu s43112 r8192 d30616 u81920
    [    0.000000] pcpu-alloc: s43112 r8192 d30616 u81920 alloc=20*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 
    [    0.000000] Detected PIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: Spectre-v3a
    [    0.000000] CPU features: detected: Spectre-BHB
    [    0.000000] CPU features: detected: ARM erratum 1742098
    [    0.000000] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 systemd.hostname=tda4vm-sk root=PARTUUID=076c4a2a-02 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
    [    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
    [    0.000000] software IO TLB: area num 2.
    [    0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
    [    0.000000] Memory: 1694440K/4194304K available (12160K kernel code, 1262K rwdata, 4064K rodata, 2432K init, 506K bss, 1975576K reserved, 524288K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU event tracing is enabled.
    [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
    [    0.000000]  Trampoline variant of Tasks RCU enabled.
    [    0.000000]  Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 960 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001900000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @8a7800000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x00000008a7040000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000008a7050000
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.008426] Console: colour dummy device 80x25
    [    0.012994] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.023667] pid_max: default: 32768 minimum: 301
    [    0.028426] LSM: initializing lsm=capability,integrity
    [    0.033736] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.041310] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.050270] RCU Tasks: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
    [    0.057534] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
    [    0.065391] rcu: Hierarchical SRCU implementation.
    [    0.070289] rcu:     Max phase no-delay instances is 1000.
    [    0.075830] Platform MSI: msi-controller@1820000 domain created
    [    0.082150] PCI/MSI: /bus@100000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.091587] EFI services will not be available.
    [    0.096342] smp: Bringing up secondary CPUs ...
    [    0.109587] Detected PIPT I-cache on CPU1
    [    0.109641] GICv3: CPU1: found redistributor 1 region 0:0x0000000001920000
    [    0.109653] GICv3: CPU1: using allocated LPI pending table @0x00000008a7060000
    [    0.109692] CPU1: Booted secondary processor 0x0000000001 [0x411fd080]
    [    0.109759] smp: Brought up 1 node, 2 CPUs
    [    0.139107] SMP: Total of 2 processors activated.
    [    0.143911] CPU features: detected: 32-bit EL0 Support
    [    0.149164] CPU features: detected: CRC32 instructions
    [    0.154446] CPU: All CPU(s) started at EL2
    [    0.158627] alternatives: applying system-wide alternatives
    [    0.165269] devtmpfs: initialized
    [    0.175957] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.185952] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
    [    0.201065] pinctrl core: initialized pinctrl subsystem
    [    0.206753] DMI not present or invalid.
    [    0.211169] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.217725] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
    [    0.225034] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.233035] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.241160] audit: initializing netlink subsys (disabled)
    [    0.246774] audit: type=2000 audit(0.160:1): state=initialized audit_enabled=0 res=1
    [    0.246998] thermal_sys: Registered thermal governor 'step_wise'
    [    0.254694] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.260849] cpuidle: using governor menu
    [    0.271595] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.278555] ASID allocator initialised with 65536 entries
    [    0.294700] platform a000000.dp-bridge: Fixed dependency cycle(s) with /bus@100000/dss@4a00000
    [    0.303752] platform a000000.dp-bridge: Fixed dependency cycle(s) with /bus@100000/dss@4a00000
    [    0.312609] platform 4a00000.dss: Fixed dependency cycle(s) with /bus@100000/dp-bridge@a000000
    [    0.323259] platform a000000.dp-bridge: Fixed dependency cycle(s) with /connector
    [    0.330956] platform connector: Fixed dependency cycle(s) with /bus@100000/dp-bridge@a000000
    [    0.339832] platform hdmi-connector: Fixed dependency cycle(s) with /dvi-bridge
    [    0.347330] platform 4a00000.dss: Fixed dependency cycle(s) with /dvi-bridge
    [    0.354558] platform dvi-bridge: Fixed dependency cycle(s) with /hdmi-connector
    [    0.362056] platform dvi-bridge: Fixed dependency cycle(s) with /bus@100000/dss@4a00000
    [    0.370517] Modules: 27616 pages in range for non-PLT usage
    [    0.370523] Modules: 519136 pages in range for PLT usage
    [    0.376732] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.389094] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.395496] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.402429] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.408831] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.415764] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.422165] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.429098] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.436311] k3-chipinfo 43000014.chipid: Family:J721E rev:SR1.1 JTAGID[0x1bb6402f] Detected
    [    0.445341] iommu: Default domain type: Translated
    [    0.450256] iommu: DMA domain TLB invalidation policy: strict mode
    [    0.456712] SCSI subsystem initialized
    [    0.460621] libata version 3.00 loaded.
    [    0.460705] usbcore: registered new interface driver usbfs
    [    0.466327] usbcore: registered new interface driver hub
    [    0.471772] usbcore: registered new device driver usb
    [    0.477198] pps_core: LinuxPPS API ver. 1 registered
    [    0.482270] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.491607] PTP clock support registered
    [    0.495716] EDAC MC: Ver: 3.0.0
    [    0.499188] scmi_core: SCMI protocol bus registered
    [    0.504323] FPGA manager framework
    [    0.507834] Advanced Linux Sound Architecture Driver Initialized.
    [    0.514485] vgaarb: loaded
    [    0.517421] clocksource: Switched to clocksource arch_sys_counter
    [    0.523788] VFS: Disk quotas dquot_6.6.0
    [    0.527819] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.538084] Carveout Heap: Exported 512 MiB at 0x00000000b8000000
    [    0.544387] NET: Registered PF_INET protocol family
    [    0.549543] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.558549] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
    [    0.567323] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.575247] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
    [    0.583452] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
    [    0.592155] TCP: Hash tables configured (established 32768 bind 32768)
    [    0.598952] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.605880] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
    [    0.613347] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.619513] RPC: Registered named UNIX socket transport module.
    [    0.625577] RPC: Registered udp transport module.
    [    0.630380] RPC: Registered tcp transport module.
    [    0.635183] RPC: Registered tcp-with-tls transport module.
    [    0.640784] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.647368] NET: Registered PF_XDP protocol family
    [    0.652274] PCI: CLS 0 bytes, default 64
    [    0.656941] Initialise system trusted keyrings
    [    0.661604] workingset: timestamp_bits=46 max_order=20 bucket_order=0
    [    0.668366] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.674470] NFS: Registering the id_resolver key type
    [    0.679643] Key type id_resolver registered
    [    0.683915] Key type id_legacy registered
    [    0.688016] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.694865] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.716064] Key type asymmetric registered
    [    0.720249] Asymmetric key parser 'x509' registered
    [    0.725268] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
    [    0.732907] io scheduler mq-deadline registered
    [    0.737543] io scheduler kyber registered
    [    0.741652] io scheduler bfq registered
    [    0.747702] pinctrl-single 4301c000.pinctrl: 94 pins, size 376
    [    0.754114] pinctrl-single 11c000.pinctrl: 173 pins, size 692
    [    0.760570] pinctrl-single 104200.pinctrl: 20 pins, size 80
    [    0.766331] pinctrl-single 104280.pinctrl: 8 pins, size 32
    [    0.775668] Serial: 8250/16550 driver, 12 ports, IRQ sharing enabled
    [    0.784704] arm-smmu-v3 36600000.iommu: ias 48-bit, oas 48-bit (features 0x00001faf)
    [    0.792938] arm-smmu-v3 36600000.iommu: allocated 65536 entries for cmdq
    [    0.800089] arm-smmu-v3 36600000.iommu: allocated 32768 entries for evtq
    [    0.808096] arm-smmu-v3 36600000.iommu: msi_domain absent - falling back to wired irqs
    [    0.819386] loop: module loaded
    [    0.823228] megasas: 07.725.01.00-rc1
    [    0.828833] tun: Universal TUN/TAP device driver, 1.6
    [    0.834615] VFIO - User Level meta-driver version: 0.3
    [    0.840527] usbcore: registered new interface driver usb-storage
    [    0.847023] i2c_dev: i2c /dev entries driver
    [    0.852053] sdhci: Secure Digital Host Controller Interface driver
    [    0.858376] sdhci: Copyright(c) Pierre Ossman
    [    0.862946] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.869064] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.875372] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.882375] usbcore: registered new interface driver usbhid
    [    0.888071] usbhid: USB HID core driver
    [    0.892793] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
    [    0.901430] optee: probing for conduit method.
    [    0.905983] optee: revision 4.2 (12d7c4ee)
    [    0.922413] optee: dynamic shared memory is enabled
    [    0.932039] random: crng init done
    [    0.935579] optee: initialized driver
    [    0.940802] Initializing XFRM netlink socket
    [    0.945199] NET: Registered PF_PACKET protocol family
    [    0.950394] Key type dns_resolver registered
    [    0.958152] registered taskstats version 1
    [    0.962408] Loading compiled-in X.509 certificates
    [    0.974648] ti-sci 44083000.system-controller: ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
    [    1.082564] omap_i2c 42120000.i2c: bus 0 rev0.12 at 400 kHz
    [    1.088932] pca954x 1-0071: supply vdd not found, using dummy regulator
    [    1.117588] i2c i2c-1: Added multiplexed i2c bus 2
    [    1.122576] i2c i2c-1: Added multiplexed i2c bus 3
    [    1.127475] pca954x 1-0071: registered 2 multiplexed busses for I2C switch pca9543
    [    1.135235] omap_i2c 2000000.i2c: bus 1 rev0.12 at 400 kHz
    [    1.141284] omap_i2c 2010000.i2c: bus 4 rev0.12 at 100 kHz
    [    1.147389] pca954x 5-0070: supply vdd not found, using dummy regulator
    [    1.177644] i2c 6-0010: Fixed dependency cycle(s) with /bus@100000/ticsi2rx@4500000/csi-bridge@4504000
    [    1.187213] i2c i2c-5: Added multiplexed i2c bus 6
    [    1.192252] i2c 7-0010: Fixed dependency cycle(s) with /bus@100000/ticsi2rx@4510000/csi-bridge@4514000
    [    1.201813] i2c i2c-5: Added multiplexed i2c bus 7
    [    1.206712] pca954x 5-0070: registered 2 multiplexed busses for I2C switch pca9543
    [    1.214470] omap_i2c 2030000.i2c: bus 5 rev0.12 at 400 kHz
    [    1.220515] omap_i2c 2050000.i2c: bus 8 rev0.12 at 400 kHz
    [    1.226264] ti-sci-intr 42200000.interrupt-controller: Interrupt Router 137 domain created
    [    1.234823] ti-sci-intr bus@100000:interrupt-controller@a00000: Interrupt Router 131 domain created
    [    1.244169] ti-sci-intr 310e0000.interrupt-controller: Interrupt Router 213 domain created
    [    1.252805] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 209 created
    [    1.270624] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,20] sci-dev-id:235
    [    1.280519] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: disabled
    [    1.287278] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    1.296961] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:1024, gp-rings[440,150] sci-dev-id:211
    [    1.307122] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: disabled
    [    1.313882] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66346100, num_proxies:64
    [    1.322054] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 206, base_baud = 6000000) is a 8250
    [    1.331685] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 207, base_baud = 3000000) is a 8250
    [    1.340557] printk: console [ttyS2] enabled
    [    1.349038] printk: bootconsole [ns16550a0] disabled
    [    1.359736] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 208, base_baud = 3000000) is a 8250
    [    1.369777] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    1.413425] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    1.423000] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
    [    1.431273] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    1.444089] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    1.451296] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    1.457641] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [    1.468132] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a010a, freq:200000000, add_val:4 pps:0
    [    1.476788] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc7100
    [    1.483631] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc7100
    [    1.490495] omap-mailbox 31f82000.mailbox: omap mailbox rev 0x66fc7100
    [    1.497328] omap-mailbox 31f83000.mailbox: omap mailbox rev 0x66fc7100
    [    1.504137] omap-mailbox 31f84000.mailbox: omap mailbox rev 0x66fc7100
    [    1.774437] tps6594-rtc tps6594-rtc.4.auto: registered as rtc0
    [    1.780406] tps6594-rtc tps6594-rtc.4.auto: hctosys: unable to read the hardware clock
    [    2.039527] j721e-pcie 2900000.pcie: host bridge /bus@100000/pcie@2900000 ranges:
    [    2.047036] j721e-pcie 2900000.pcie:       IO 0x0010001000..0x0010010fff -> 0x0010001000
    [    2.055125] j721e-pcie 2900000.pcie:      MEM 0x0010011000..0x0017ffffff -> 0x0010011000
    [    2.063203] j721e-pcie 2900000.pcie:   IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [    3.074115] j721e-pcie 2900000.pcie: PCI host bridge to bus 0000:00
    [    3.080402] pci_bus 0000:00: root bus resource [bus 00-ff]
    [    3.085892] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x10001000-0x10010fff])
    [    3.095352] pci_bus 0000:00: root bus resource [mem 0x10011000-0x17ffffff]
    [    3.102229] pci 0000:00:00.0: [104c:b00d] type 01 class 0x060400
    [    3.108224] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    3.117921] pci 0000:00:00.0: supports D1
    [    3.121921] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
    [    3.129536] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    3.137641] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
    [    3.144252] pci 0000:00:00.0: PCI bridge to [bus 01]
    [    3.149280] pcieport 0000:00:00.0: of_irq_parse_pci: failed with rc=-22
    [    3.156060] pcieport 0000:00:00.0: PME: Signaling with IRQ 659
    [    3.162076] pcieport 0000:00:00.0: AER: enabled with IRQ 659
    [    3.168085] j721e-pcie 2910000.pcie: host bridge /bus@100000/pcie@2910000 ranges:
    [    3.175575] j721e-pcie 2910000.pcie:       IO 0x0018001000..0x0018010fff -> 0x0018001000
    [    3.183656] j721e-pcie 2910000.pcie:      MEM 0x0018011000..0x001fffffff -> 0x0018011000
    [    3.191734] j721e-pcie 2910000.pcie:   IB MEM 0x0000000000..0xffffffffffff -> 0x0000000000
    [    4.201529] j721e-pcie 2910000.pcie: PCI host bridge to bus 0001:00
    [    4.207797] pci_bus 0001:00: root bus resource [bus 00-ff]
    [    4.213280] pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x18001000-0x18010fff])
    [    4.222912] pci_bus 0001:00: root bus resource [mem 0x18011000-0x1fffffff]
    [    4.229787] pci 0001:00:00.0: [104c:b00d] type 01 class 0x060400
    [    4.235780] pci_bus 0001:00: 2-byte config write to 0001:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
    [    4.245477] pci 0001:00:00.0: supports D1
    [    4.249475] pci 0001:00:00.0: PME# supported from D0 D1 D3hot
    [    4.257127] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
    [    4.265240] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
    [    4.271855] pci 0001:00:00.0: PCI bridge to [bus 01]
    [    4.276882] pcieport 0001:00:00.0: of_irq_parse_pci: failed with rc=-22
    [    4.283655] pcieport 0001:00:00.0: PME: Signaling with IRQ 661
    [    4.289654] pcieport 0001:00:00.0: AER: enabled with IRQ 661
    [    4.296224] ti-udma 285c0000.dma-controller: Channels: 26 (tchan: 13, rchan: 13, gp-rflow: 8)
    [    4.307433] ti-udma 31150000.dma-controller: Channels: 122 (tchan: 61, rchan: 61, gp-rflow: 16)
    [    4.322343] spi-nor spi0.0: s28hs512t (65536 Kbytes)
    [    4.327356] 8 fixed-partitions partitions found on MTD device 47040000.spi.0
    [    4.334396] Creating 8 MTD partitions on "47040000.spi.0":
    [    4.339871] 0x000000000000-0x000000080000 : "ospi.tiboot3"
    [    4.345969] 0x000000080000-0x000000280000 : "ospi.tispl"
    [    4.351866] 0x000000280000-0x000000680000 : "ospi.u-boot"
    [    4.357726] 0x000000680000-0x0000006c0000 : "ospi.env"
    [    4.363342] 0x0000006c0000-0x0000007c0000 : "ospi.sysfw"
    [    4.369099] 0x0000007c0000-0x000000800000 : "ospi.env.backup"
    [    4.375329] 0x000000800000-0x000003fc0000 : "ospi.rootfs"
    [    4.381195] 0x000003fc0000-0x000004000000 : "ospi.phypattern"
    [    4.391692] davinci_mdio 46000f00.mdio: Configuring MDIO in manual mode
    [    4.437423] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
    [    4.447006] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
    [    4.455279] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA00101, cpsw version 0x6BA80100 Ports: 2 quirks:00000000
    [    4.468097] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 1.4
    [    4.475304] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
    [    4.481577] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a010a, freq:500000000, add_val:1 pps:0
    [    4.499297] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
    [    4.511065] mmc1: CQHCI version 5.10
    [    4.518043] clk: Disabling unused clocks
    [    4.542168] ALSA device list:
    [    4.545129]   No soundcards found.
    [    4.552007] mmc1: SDHCI controller on 4fb0000.mmc [4fb0000.mmc] using ADMA 64-bit
    [    4.559591] Waiting for root device PARTUUID=076c4a2a-02...
    [    4.596045] tps6594 0-004c: Error IRQ trap overvoltage for LDO1
    [    4.606988] sdhci-am654 4fb0000.mmc: No passing ITAPDLY, return 0
    [    4.613097] mmc1: new ultra high speed DDR50 SDXC card at address 0001
    [    4.620056] mmcblk1: mmc1:0001 SD64G 58.2 GiB
    [    4.625891]  mmcblk1: p1 p2
    [    4.992927] EXT4-fs (mmcblk1p2): recovery complete
    [    5.001339] EXT4-fs (mmcblk1p2): mounted filesystem c6ea3b9b-e8de-4eb5-a040-fc5a3aa42a3d r/w with ordered data mode. Quota mode: none.
    [    5.013477] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    5.020400] devtmpfs: mounted
    [    5.024567] Freeing unused kernel memory: 2432K
    [    5.029168] Run /sbin/init as init process
    [    5.033255]   with arguments:
    [    5.033257]     /sbin/init
    [    5.033259]   with environment:
    [    5.033261]     HOME=/
    [    5.033263]     TERM=linux
    [    5.367379] systemd[1]: System time before build time, advancing clock.
    [    5.454873] NET: Registered PF_INET6 protocol family
    [    5.460430] Segment Routing with IPv6
    [    5.464111] In-situ OAM (IOAM) with IPv6
    [    5.527116] systemd[1]: systemd 255.4^ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -TPM2 -BZ
    IP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
    [    5.558933] systemd[1]: Detected architecture arm64.
    [    5.584473] systemd[1]: Hostname set to <tda4vm-sk>.
    [    5.695319] systemd-sysv-generator[96]: SysV service '/etc/init.d/edgeai-launcher.sh' lacks a native systemd unit file. ~ Automatically generating a unit file for compatibility. Please update package to include a native systemd unit file, in order to make it safe, rob
    ust and future-proof. ! This compatibility logic is deprecated, expect removal soon. !
    [    5.862749] systemd[1]: /usr/lib/systemd/system/bt-enable.service:9: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
    [    5.933735] systemd[1]: /etc/systemd/system/sync-clocks.service:11: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether.
    [    5.991855] systemd[1]: Queued start job for default target Graphical Interface.
    [    6.020505] systemd[1]: Created slice Slice /system/getty.
    [    6.042746] systemd[1]: Created slice Slice /system/modprobe.
    [    6.066623] systemd[1]: Created slice Slice /system/serial-getty.
    [    6.090333] systemd[1]: Created slice User and Session Slice.
    [    6.113665] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [    6.137577] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [    6.161507] systemd[1]: Expecting device /dev/ttyS2...
    [    6.177527] systemd[1]: Reached target Path Units.
    [    6.193482] systemd[1]: Reached target Remote File Systems.
    [    6.213473] systemd[1]: Reached target Slice Units.
    [    6.229478] systemd[1]: Reached target Swaps.
    [    6.272543] systemd[1]: Listening on RPCbind Server Activation Socket.
    [    6.293600] systemd[1]: Reached target RPC Port Mapper.
    [    6.316960] systemd[1]: Listening on Process Core Dump Socket.
    [    6.337723] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    6.362111] systemd[1]: Listening on Journal Audit Socket.
    [    6.385830] systemd[1]: Listening on Journal Socket (/dev/log).
    [    6.405814] systemd[1]: Listening on Journal Socket.
    [    6.425914] systemd[1]: Listening on Network Service Netlink Socket.
    [    6.451976] systemd[1]: Listening on udev Control Socket.
    [    6.473804] systemd[1]: Listening on udev Kernel Socket.
    [    6.493783] systemd[1]: Listening on User Database Manager Socket.
    [    6.533740] systemd[1]: Mounting Huge Pages File System...
    [    6.555723] systemd[1]: Mounting POSIX Message Queue File System...
    [    6.581867] systemd[1]: Mounting Kernel Debug File System...
    [    6.601784] systemd[1]: Kernel Trace File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/tracing).
    [    6.619400] systemd[1]: Mounting Temporary Directory /tmp...
    [    6.639235] systemd[1]: Starting Create List of Static Device Nodes...
    [    6.682150] systemd[1]: Starting Load Kernel Module configfs...
    [    6.710133] systemd[1]: Starting Load Kernel Module drm...
    [    6.730157] systemd[1]: Starting Load Kernel Module fuse...
    [    6.769984] systemd[1]: Starting Start psplash boot splash screen...
    [    6.791075] fuse: init (API version 7.39)
    [    6.822137] systemd[1]: Starting RPC Bind...
    [    6.837764] systemd[1]: File System Check on Root Device was skipped because of an unmet condition check (ConditionPathIsReadWrite=!/).
    [    6.858018] systemd[1]: Starting Journal Service...
    [    6.902007] systemd[1]: Starting Load Kernel Modules...
    [    6.929697] systemd[1]: Starting Generate network units from Kernel command line...
    [    6.946683] systemd-journald[113]: Collecting audit messages is enabled.
    [    6.960036] cryptodev: loading out-of-tree module taints kernel.
    [    6.967530] cryptodev: driver 1.13 loaded.
    [    6.978029] systemd[1]: Starting Remount Root and Kernel File Systems...
    [    7.006279] systemd[1]: Starting Coldplug All udev Devices...
    [    7.019069] EXT4-fs (mmcblk1p2): re-mounted c6ea3b9b-e8de-4eb5-a040-fc5a3aa42a3d r/w. Quota mode: none.
    [    7.039757] systemd[1]: Started RPC Bind.
    [    7.062163] systemd[1]: Started Journal Service.
    [    7.497093] systemd-journald[113]: Received client request to flush runtime journal.
    [    7.778965] audit: type=1334 audit(1709054766.408:2): prog-id=6 op=LOAD
    [    7.785962] audit: type=1334 audit(1709054766.416:3): prog-id=7 op=LOAD
    [    7.993654] audit: type=1334 audit(1709054766.620:4): prog-id=8 op=LOAD
    [    8.019877] audit: type=1334 audit(1709054766.648:5): prog-id=9 op=LOAD
    [    8.069514] audit: type=1334 audit(1709054766.696:6): prog-id=10 op=LOAD
    [    8.081543] audit: type=1334 audit(1709054766.712:7): prog-id=11 op=LOAD
    [    8.095794] audit: type=1334 audit(1709054766.724:8): prog-id=12 op=LOAD
    [    8.770140] audit: type=1334 audit(1729262753.728:9): prog-id=13 op=LOAD
    [    8.931991] dbus-broker-lau[324]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set
    [    9.109974] mc: Linux media interface: v0.10
    [    9.117691] CAN device driver interface
    [    9.199527] videodev: Linux video capture interface: v2.00
    [    9.229991] k3-dsp-rproc 4d80800000.dsp: assigned reserved memory node vision-apps-c66-dma-memory@a9000000
    [    9.258709] audit: type=1334 audit(1729262754.216:10): prog-id=14 op=LOAD
    [    9.276244] audit: type=1334 audit(1729262754.232:11): prog-id=15 op=LOAD
    [    9.294359] k3-dsp-rproc 4d80800000.dsp: configured DSP for IPC-only mode
    [    9.302833] remoteproc remoteproc0: 4d80800000.dsp is available
    [    9.302894] remoteproc remoteproc0: attaching to 4d80800000.dsp
    [    9.313521] k3-dsp-rproc 4d80800000.dsp: DSP initialized in IPC-only mode
    [    9.313550] rproc-virtio rproc-virtio.11.auto: assigned reserved memory node vision-apps-c66-dma-memory@a9000000
    [    9.327123] virtio_rpmsg_bus virtio0: rpmsg host is online
    [    9.348113] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0xd
    [    9.362662] omap_rng 4e10000.rng: Random Number Generator ver. 241b34c
    [    9.382214] rproc-virtio rproc-virtio.11.auto: registered virtio0 (type 7)
    [    9.389173] remoteproc remoteproc0: remote processor 4d80800000.dsp is now attached
    [    9.393580] k3-dsp-rproc 4d81800000.dsp: assigned reserved memory node vision-apps-c66-dma-memory@a8000000
    [    9.411769] k3-dsp-rproc 4d81800000.dsp: configured DSP for IPC-only mode
    [    9.437536] remoteproc remoteproc1: 4d81800000.dsp is available
    [    9.443675] remoteproc remoteproc1: attaching to 4d81800000.dsp
    [    9.451737] k3-dsp-rproc 4d81800000.dsp: DSP initialized in IPC-only mode
    [    9.493797] rproc-virtio rproc-virtio.12.auto: assigned reserved memory node vision-apps-c66-dma-memory@a8000000
    [    9.505125] imx219 6-0010: supply VANA not found, using dummy regulator
    [    9.519020] PVR_K:  163: Device: 4e20000000.gpu
    [    9.541412] imx219 6-0010: supply VDIG not found, using dummy regulator
    [    9.548954] imx219 6-0010: supply VDDL not found, using dummy regulator
    [    9.564033] virtio_rpmsg_bus virtio1: rpmsg host is online
    [    9.569655] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0xd
    [    9.595339] imx219 7-0010: supply VANA not found, using dummy regulator
    [    9.612456] PVR_K:  163: Read BVNC 22.104.208.318 from HW device registers
    [    9.621203] rproc-virtio rproc-virtio.12.auto: registered virtio1 (type 7)
    [    9.624830] PVR_K:  163: RGX Device registered with BVNC 22.104.208.318
    [    9.644243] imx219 7-0010: supply VDIG not found, using dummy regulator
    [    9.664010] imx219 7-0010: supply VDDL not found, using dummy regulator
    [    9.682685] remoteproc remoteproc1: remote processor 4d81800000.dsp is now attached
    [    9.691674] imx219 7-0010: Error reading reg 0x0000: -121
    [    9.697921] imx219 7-0010: failed to read chip id 219
    [    9.706844] imx219: probe of 7-0010 failed with error -121
    [    9.714008] [drm] Initialized pvr 24.1.6554834 20170530 for 4e20000000.gpu on minor 0
    [    9.715030] k3-dsp-rproc 64800000.dsp: assigned reserved memory node vision-apps-c71-dma-memory@b2000000
    [    9.779799] k3-dsp-rproc 64800000.dsp: configured DSP for IPC-only mode
    [    9.793617] remoteproc remoteproc2: 64800000.dsp is available
    [    9.807454] remoteproc remoteproc2: attaching to 64800000.dsp
    [    9.823948] at24 0-0051: supply vcc not found, using dummy regulator
    [    9.847523] cdns-mhdp8546 a000000.dp-bridge: invalid resource (null)
    [    9.848909] remoteproc remoteproc2: unsupported resource 65538
    [    9.860735] k3-dsp-rproc 64800000.dsp: DSP initialized in IPC-only mode
    [    9.869517] cdns-mhdp8546 a000000.dp-bridge: Failed to get SAPB memory resource, HDCP not supported
    [    9.886110] at24 0-0051: 65536 byte 24c512 EEPROM, writable, 1 bytes/write
    [    9.889647] img_enc 4200000.video-encoder: vxe_enc_probe: using heap 1 for internal alloc
    [    9.901503] rproc-virtio rproc-virtio.13.auto: assigned reserved memory node vision-apps-c71-dma-memory@b2000000
    [    9.923539] img_dec 4300000.video-decoder: decoder registered as /dev/video0
    [    9.943036] img_enc 4200000.video-encoder: encoder registered as /dev/video1
    [    9.945575] virtio_rpmsg_bus virtio2: rpmsg host is online
    [    9.950195] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0xd
    [    9.969452] rproc-virtio rproc-virtio.13.auto: registered virtio2 (type 7)
    [    9.979827] remoteproc remoteproc2: remote processor 64800000.dsp is now attached
    [   10.051228] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [   10.083856] Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [   10.093255] Loaded X.509 cert 'wens: 61c038651aabdcf94bd0ac7ff06c7248db18c600'
    [   10.173563] platform 41000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [   10.192153] m_can_platform 40528000.can: m_can device registered (irq=853, version=32)
    [   10.205001] platform 41000000.r5f: configured R5F for IPC-only mode
    [   10.219855] Bluetooth: Core ver 2.22
    [   10.223996] NET: Registered PF_BLUETOOTH protocol family
    [   10.232421] m_can_platform 2701000.can: m_can device registered (irq=857, version=32)
    [   10.243653] Bluetooth: HCI device and connection manager initialized
    [   10.247697] platform 41000000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
    [   10.254345] Bluetooth: HCI socket layer initialized
    [   10.264713] remoteproc remoteproc3: 41000000.r5f is available
    [   10.271882] Bluetooth: L2CAP socket layer initialized
    [   10.276059] remoteproc remoteproc3: attaching to 41000000.r5f
    [   10.290551] m_can_platform 2751000.can: m_can device registered (irq=826, version=32)
    [   10.294830] Bluetooth: SCO socket layer initialized
    [   10.302346] platform 41000000.r5f: R5F core initialized in IPC-only mode
    [   10.313923] m_can_platform 2791000.can: m_can device registered (irq=827, version=32)
    [   10.322661] rproc-virtio rproc-virtio.14.auto: assigned reserved memory node vision-apps-r5f-dma-memory@a0000000
    [   10.344304] virtio_rpmsg_bus virtio3: rpmsg host is online
    [   10.350160] rproc-virtio rproc-virtio.14.auto: registered virtio3 (type 7)
    [   10.358864] virtio_rpmsg_bus virtio3: creating channel ti.ipc4.ping-pong addr 0xd
    [   10.359376] remoteproc remoteproc3: remote processor 41000000.r5f is now attached
    [   10.366539] virtio_rpmsg_bus virtio3: creating channel rpmsg_chrdev addr 0xe
    [   10.416741] gpio-mux mux-controller: 2-way mux-controller registered
    [   10.422414] platform 5c00000.r5f: configured R5F for IPC-only mode
    [   10.451834] [drm] Initialized tidss 1.0.0 20180215 for 4a00000.dss on minor 1
    [   10.492232] platform 5c00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
    [   10.504179] remoteproc remoteproc4: 5c00000.r5f is available
    [   10.510750] remoteproc remoteproc4: attaching to 5c00000.r5f
    [   10.517147] platform 5c00000.r5f: R5F core initialized in IPC-only mode
    [   10.517168] rproc-virtio rproc-virtio.15.auto: assigned reserved memory node vision-apps-r5f-dma-memory@a2000000
    [   10.517703] virtio_rpmsg_bus virtio4: rpmsg host is online
    [   10.517720] rproc-virtio rproc-virtio.15.auto: registered virtio4 (type 7)
    [   10.517725] remoteproc remoteproc4: remote processor 5c00000.r5f is now attached
    [   10.522635] virtio_rpmsg_bus virtio4: creating channel rpmsg_chrdev addr 0xd
    [   10.523036] platform 5d00000.r5f: configured R5F for IPC-only mode
    [   10.523345] platform 5d00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a4000000
    [   10.528029] Console: switching to colour frame buffer device 210x65
    [   10.530311] remoteproc remoteproc5: 5d00000.r5f is available
    [   10.530388] remoteproc remoteproc5: attaching to 5d00000.r5f
    [   10.530803] platform 5d00000.r5f: R5F core initialized in IPC-only mode
    [   10.530819] rproc-virtio rproc-virtio.16.auto: assigned reserved memory node vision-apps-r5f-dma-memory@a4000000
    [   10.531250] virtio_rpmsg_bus virtio5: rpmsg host is online
    [   10.531266] rproc-virtio rproc-virtio.16.auto: registered virtio5 (type 7)
    [   10.531271] remoteproc remoteproc5: remote processor 5d00000.r5f is now attached
    [   10.535621] virtio_rpmsg_bus virtio5: creating channel rpmsg_chrdev addr 0xd
    [   10.535895] virtio_rpmsg_bus virtio2: creating channel rpmsg_chrdev addr 0x15
    [   10.535993] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0x15
    [   10.536115] virtio_rpmsg_bus virtio1: creating channel rpmsg_chrdev addr 0x15
    [   10.536244] virtio_rpmsg_bus virtio4: creating channel rpmsg_chrdev addr 0x15
    [   10.536318] virtio_rpmsg_bus virtio5: creating channel rpmsg_chrdev addr 0x15
    [   10.537342] virtio_rpmsg_bus virtio2: creating channel ti.ipc4.ping-pong addr 0xe
    [   10.542828] virtio_rpmsg_bus virtio0: creating channel ti.ipc4.ping-pong addr 0xe
    [   10.543009] virtio_rpmsg_bus virtio1: creating channel ti.ipc4.ping-pong addr 0xe
    [   10.556842] virtio_rpmsg_bus virtio5: creating channel ti.ipc4.ping-pong addr 0xe
    [   10.558861] platform 5e00000.r5f: configured R5F for remoteproc mode
    [   10.559425] platform 5e00000.r5f: assigned reserved memory node vision-apps-r5f-dma-memory@a6000000
    [   10.561529] remoteproc remoteproc6: 5e00000.r5f is available
    [   10.591335] virtio_rpmsg_bus virtio4: creating channel ti.ipc4.ping-pong addr 0xe
    [   10.600450] remoteproc remoteproc6: loading /lib/firmware/j7-main-r5f1_0-fw failed with error -22
    [   10.600459] remoteproc remoteproc6: Direct firmware load for j7-main-r5f1_0-fw failed with error -22
    [   10.600469] remoteproc remoteproc6: powering up 5e00000.r5f
    [   10.600503] remoteproc remoteproc6: loading /lib/firmware/j7-main-r5f1_0-fw failed with error -22
    [   10.600507] remoteproc remoteproc6: Direct firmware load for j7-main-r5f1_0-fw failed with error -22
    [   10.600511] remoteproc remoteproc6: request_firmware failed: -22
    [   10.615984] am65-cpsw-nuss 46000000.ethernet eth0: PHY [46000f00.mdio:00] driver [TI DP83867] (irq=POLL)
    [   10.623749] tidss 4a00000.dss: [drm] fb0: tidssdrmfb frame buffer device
    [   10.713233] i2c 7-0010: Fixed dependency cycle(s) with /bus@100000/ticsi2rx@4510000/csi-bridge@4514000
    [   10.719834] am65-cpsw-nuss 46000000.ethernet eth0: configuring for phy/rgmii-rxid link mode
    [   10.862915] platform 4514000.csi-bridge: Fixed dependency cycle(s) with /bus@100000/i2c@2030000/i2c-mux@70/i2c@1/imx219-1@10
    [   11.037858] remoteproc remoteproc7: b034000.pru is available
    [   11.081368] remoteproc remoteproc8: b004000.rtu is available
    [   11.093783] remoteproc remoteproc9: b00a000.txpru is available
    [   11.103195] remoteproc remoteproc10: b038000.pru is available
    [   11.139036] remoteproc remoteproc11: b006000.rtu is available
    [   11.158695] remoteproc remoteproc12: b00c000.txpru is available
    [   11.166198] remoteproc remoteproc13: b134000.pru is available
    [   11.174550] remoteproc remoteproc14: b104000.rtu is available
    [   11.181666] remoteproc remoteproc15: b10a000.txpru is available
    [   11.183067] remoteproc remoteproc16: b138000.pru is available
    [   11.197146] remoteproc remoteproc17: b106000.rtu is available
    [   11.207156] remoteproc remoteproc18: b10c000.txpru is available
    [   11.525051] m_can_platform 2701000.can main_mcan0: renamed from can1
    [   11.597058] cdns-csi2rx 4504000.csi-bridge: Probed CSI2RX with 2/4 lanes, 4 streams, external D-PHY
    [   11.620377] m_can_platform 2791000.can main_mcan9: renamed from can3
    [   11.664397] m_can_platform 40528000.can mcu_mcan0: renamed from can0
    [   11.691984] m_can_platform 2751000.can main_mcan5: renamed from can2
    [   11.735752] xhci-hcd xhci-hcd.17.auto: xHCI Host Controller
    [   11.806368] cdns-csi2rx 4514000.csi-bridge: Probed CSI2RX with 2/4 lanes, 4 streams, external D-PHY
    [   11.826243] xhci-hcd xhci-hcd.17.auto: new USB bus registered, assigned bus number 1
    [   11.857958] xhci-hcd xhci-hcd.17.auto: hcc params 0x200073c9 hci version 0x100 quirks 0x0000002000008010
    [   11.901359] xhci-hcd xhci-hcd.17.auto: irq 875, io mem 0x06410000
    [   11.910684] xhci-hcd xhci-hcd.17.auto: xHCI Host Controller
    [   11.930276] xhci-hcd xhci-hcd.17.auto: new USB bus registered, assigned bus number 2
    [   12.011802] xhci-hcd xhci-hcd.17.auto: Host supports USB 3.0 SuperSpeed
    [   12.022137] hub 1-0:1.0: USB hub found
    [   12.030668] hub 1-0:1.0: 1 port detected
    [   12.042182] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
    [   12.082124] hub 2-0:1.0: USB hub found
    [   12.110455] hub 2-0:1.0: 1 port detected
    [   12.293480] usb 1-1: new high-speed USB device number 2 using xhci-hcd
    [   12.462408] hub 1-1:1.0: USB hub found
    [   12.468864] hub 1-1:1.0: 4 ports detected
    [   12.589508] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
    [   12.596067] k3_r5_rproc bus@100000:r5fss@5e00000: Timed out waiting for 5e00000.r5f core to power up!
    [   12.617229] hub 2-1:1.0: USB hub found
    [   12.624122] hub 2-1:1.0: 4 ports detected
    [   12.761591] usb 1-1.2: new low-speed USB device number 3 using xhci-hcd
    [   12.782176] kauditd_printk_skb: 5 callbacks suppressed
    [   12.782182] audit: type=1006 audit(1729262757.740:15): pid=529 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=2 res=1
    [   12.805572] audit: type=1300 audit(1729262757.740:15): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffcee0c9d8 a2=4 a3=1 items=0 ppid=1 pid=529 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=2 comm="(weston)" exe="/usr/lib/syst
    emd/systemd-executor" key=(null)
    [   12.833186] audit: type=1327 audit(1729262757.740:15): proctitle="(weston)"
    [   12.889703] input: HP HP USB 1000dpi Laser Mouse as /devices/platform/bus@100000/4114000.cdns-usb/6400000.usb/xhci-hcd.17.auto/usb1/1-1/1-1.2/1-1.2:1.0/0003:03F0:1198.0001/input/input0
    [   12.906358] hid-generic 0003:03F0:1198.0001: input: USB HID v2.00 Mouse [HP HP USB 1000dpi Laser Mouse] on usb-xhci-hcd.17.auto-1.2/input0
    [   12.922786] hid-generic 0003:03F0:1198.0002: device has no listeners, quitting
    [   12.940532] usbcore: registered new device driver onboard-usb-hub
    [   12.957725] usb 1-1.2: USB disconnect, device number 3
    [   13.178194] hub 1-1:1.0: USB hub found
    [   13.182031] hub 1-1:1.0: 4 ports detected
    [   13.188613] hub 1-1:1.0: USB hub found
    [   13.192504] hub 1-1:1.0: 4 ports detected
    [   13.329960] hub 2-1:1.0: USB hub found
    [   13.333920] hub 2-1:1.0: 4 ports detected
    [   13.340451] hub 2-1:1.0: USB hub found
    [   13.348003] hub 2-1:1.0: 4 ports detected
    [   13.485459] usb 1-1.2: new low-speed USB device number 4 using xhci-hcd
    [   13.609340] input: HP HP USB 1000dpi Laser Mouse as /devices/platform/bus@100000/4114000.cdns-usb/6400000.usb/xhci-hcd.17.auto/usb1/1-1/1-1.2/1-1.2:1.0/0003:03F0:1198.0003/input/input1
    [   13.625980] hid-generic 0003:03F0:1198.0003: input: USB HID v2.00 Mouse [HP HP USB 1000dpi Laser Mouse] on usb-xhci-hcd.17.auto-1.2/input0
    [   13.641941] hid-generic 0003:03F0:1198.0004: device has no listeners, quitting
    [   13.912684] PVR_K:  529: RGX Firmware image 'rgx.fw.22.104.208.318' loaded
    [   13.933455] PVR_K:  529: Shader binary image 'rgx.sh.22.104.208.318' loaded
    [   14.992338] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
    [   18.710781] audit: type=1006 audit(1729262763.668:16): pid=1222 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res=1
    [   18.727571] audit: type=1300 audit(1729262763.668:16): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffe24fc758 a2=1 a3=1 items=0 ppid=1 pid=1222 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="(systemd)" exe="/usr/lib/sys
    temd/systemd-executor" key=(null)
    [   18.757005] audit: type=1327 audit(1729262763.668:16): proctitle="(systemd)"
    [   18.772766] audit: type=1334 audit(1729262763.688:17): prog-id=18 op=LOAD
    [   18.782666] audit: type=1300 audit(1729262763.688:17): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffed63a088 a2=90 a3=0 items=0 ppid=1 pid=1222 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/usr/lib/sys
    temd/systemd" key=(null)
    [   18.809210] audit: type=1327 audit(1729262763.688:17): proctitle="(systemd)"
    [   18.818211] audit: type=1334 audit(1729262763.712:18): prog-id=18 op=UNLOAD
    [   18.826981] audit: type=1300 audit(1729262763.712:18): arch=c00000b7 syscall=57 success=yes exit=0 a0=8 a1=1 a2=0 a3=ffff94c2dc60 items=0 ppid=1 pid=1222 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/usr/lib/syste
    md/systemd" key=(null)
    [   18.852828] audit: type=1327 audit(1729262763.712:18): proctitle="(systemd)"
    [   18.861607] audit: type=1334 audit(1729262763.712:19): prog-id=19 op=LOAD
    [  109.225297] kauditd_printk_skb: 5 callbacks suppressed
    [  109.225305] audit: type=1006 audit(1729262926.843:21): pid=1518 uid=0 old-auid=4294967295 auid=1000 tty=(none) old-ses=4294967295 ses=4 res=1
    [  109.243663] audit: type=1300 audit(1729262926.843:21): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffd3fbacc8 a2=4 a3=1 items=0 ppid=1 pid=1518 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4 comm="(systemd)" exe="/usr/lib/
    systemd/systemd-executor" key=(null)
    [  109.270760] audit: type=1327 audit(1729262926.843:21): proctitle="(systemd)"
    [  109.525884] audit: type=1006 audit(1729262927.147:22): pid=1515 uid=0 old-auid=4294967295 auid=1000 tty=tty7 old-ses=4294967295 ses=5 res=1
    [  109.538645] audit: type=1300 audit(1729262927.147:22): arch=c00000b7 syscall=64 success=yes exit=4 a0=8 a1=ffffece1d348 a2=4 a3=1 items=0 ppid=1 pid=1515 auid=1000 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=tty7 ses=5 comm="(weston)" exe="/usr/lib/sys
    temd/systemd-executor" key=(null)
    [  109.565555] audit: type=1327 audit(1729262927.147:22): proctitle="(weston)"
    

  • Hi Mariem,

    Glad I could help! Not taking off lens cap happens more often than expected, but great news since it's an easy fix.

    As for the green shadow, that is a bit more complicated. Green images are a sign of issue with ISP tuning, because raw images from cameras contain one extra pixel of green (rggb). Since this is a new camera, the ISP tuning binary files may not be compatible (one of the many reasons we only have support for a few cameras in the SDK, since each camera module that does not have an on-camera ISP will need tuning). 

    As an example from our tuning guide (https://www.ti.com/lit/an/sprad86a/sprad86a.pdf):

    In any case, I would recommend creating a new E2E forum post so that it notifies our ISP engineer.

    Regards,

    Takuma

  • Hello Takuma,

    Thank you for the explanations.

    Can changing the camera solve the issue of the green images? I have a USB camera, so I can try using that.

    What about the ROS node? When I tried the examples, I couldn't see any output from the camera in RVIZ. Do you think the issue could be with the camera itself?

    Thank you and have a nice day,

    Mariem

  • Hi Mariem,

    Yes, USB camera would most likely not have the green images.

    Essentially, any camera that has an on-camera ISP should work. USB cameras typically have an on-camera ISP since they are marketed more towards consumer usecases where the target audience does not have the expertise nor time to do ISP tuning (they're a bit more pricier than camera modules that do not have ISP, but ease of use-wise they are worth it).

    For ROS node, our scripts use gscam node, which is ROS's way to integrate GStreamer pipelines with ROS. Therefore, if you are able to see camera streams with GStreamer, it should be possible to see with ROS. If there is still no image coming up:

    • There should be a file under the Robotics SDK installation directory, src/robotics_sdk/ros1 (or ros2 depending on which ROS version)/drivers/gscam/launch/v4l_imx219.launch that launches a GStreamer pipeline.
    • You may modify this file with the working GStreamer pipeline and it should have similar results to running the GStreamer pipeline directly.

    Regards,

    Takuma

  • Hi Mariem,

    As an afterthought, it might be possible to manually adjust the red and blue gains if the camera driver exposes these to the V4L2 driver.

    Something like this: 

    • For listing out knobs that can be tweaked: v4l2-ctl --list-ctrls --device /dev/video2
    • For setting blue gains (red gains can be set in a similar way, but green gains were not exposed for the camera I was using): v4l2-ctl -d /dev/v4l-subdev4 --set-ctrl blue_balance=256

    Note, I copied and pasted from my notes so the device argument will need to be changed, and no guarantee that these knobs exist for your particular camera.

    Regards,

    Takuma

  • Hello Takuma,

    Thank you for the suggestions.

    The list of controls of my camera are different from the controls that you are using:

    root@tda4vm-sk:/opt/edgeai-gst-apps# v4l2-ctl -d /dev/v4l-imx219-subdev0 -l
    
    User Controls
    
                           exposure 0x00980911 (int)    : min=4 max=1759 step=1 default=1600 value=1600
                    horizontal_flip 0x00980914 (bool)   : default=0 value=0 flags=modify-layout
                      vertical_flip 0x00980915 (bool)   : default=0 value=0 flags=modify-layout
    
    Image Source Controls
    
                  vertical_blanking 0x009e0901 (int)    : min=4 max=64455 step=1 default=683 value=683
                horizontal_blanking 0x009e0902 (int)    : min=1528 max=1528 step=1 default=1528 value=1528 flags=read-only
                      analogue_gain 0x009e0903 (int)    : min=0 max=232 step=1 default=0 value=0
                    red_pixel_value 0x009e0904 (int)    : min=0 max=1023 step=1 default=1023 value=1023
              green_red_pixel_value 0x009e0905 (int)    : min=0 max=1023 step=1 default=1023 value=1023
                   blue_pixel_value 0x009e0906 (int)    : min=0 max=1023 step=1 default=1023 value=1023
             green_blue_pixel_value 0x009e0907 (int)    : min=0 max=1023 step=1 default=1023 value=1023
    
    Image Processing Controls
    
                     link_frequency 0x009f0901 (intmenu): min=0 max=0 default=0 value=0 (456000000 0x1b2e0200) flags=read-only
                         pixel_rate 0x009f0902 (int64)  : min=182400000 max=182400000 step=1 default=182400000 value=182400000 flags=read-only
                       test_pattern 0x009f0903 (menu)   : min=0 max=4 default=0 value=0 (Disabled)
                       digital_gain 0x009f0905 (int)    : min=256 max=4095 step=1 default=256 value=256
    root@tda4vm-sk:/opt/edgeai-gst-apps# v4l2-ctl --list-ctrls
    
    User Controls
    
            max_dec_frame_buffering 0x00981901 (int)    : min=0 max=16 step=1 default=0 value=0
              display_pipeline_size 0x00981902 (int)    : min=0 max=6 step=1 default=3 value=3
           img_extra_decode_buffers 0x00981903 (int)    : min=-1 max=3 step=1 default=-1 value=-1
          override_spec_dpb_buffers 0x00981904 (int)    : min=-1 max=16 step=1 default=-1 value=-1

    I tried to modify the green_blue_pixel and green_red_pixel, but I am always getting green images from my camera. I think I will create a separate ticket for this problem.

    I tried to modify the launch file of the ROS node as follow:

    root@tda4vm-sk:/opt/robotics_sdk/ros2/drivers/gscam2/launch# vi v4l_imx219_launch.py 
    root@tda4vm-sk:/opt/robotics_sdk/ros2/drivers/gscam2/launch# cat v4l_imx219_launch.py                                                                                                                                                                                          
    """
    Launch gscam2 node with parameters and remappings.
    """
    import os
    import subprocess
    from ament_index_python.packages import get_package_share_directory
    from launch import LaunchDescription
    from launch.actions import DeclareLaunchArgument
    from launch.substitutions import LaunchConfiguration
    from launch.actions import OpaqueFunction
    from launch_ros.actions import Node
    
    # run setup_cameras.sh to configure IMX219 camera with 10-bit 1640x1232
    # Alternatively, the following can be run in the command line (preferably on the host Linux):
    # IMX219_CAM_FMT="[fmt:SRGGB10_1X10/1640x1232]" /opt/edgeai-gst-apps/scripts/setup_cameras.sh
    command = "/opt/edgeai-gst-apps/scripts/setup_cameras.sh"
    env = {"IMX219_CAM_FMT": "[fmt:SRGGB10_1X10/1640x1232]"}
    subprocess.run(command, env={**os.environ, **env}, shell=True)
    
    def finalize_node(context, *args, **kwargs):
    
        """
        Following setup for IMX219 camera is included in entrypoint.sh:
        IMX219_CAM_FMT="[fmt:SRGGB10_1X10/1640x1232]" /opt/edgeai-gst-apps/scripts/setup_cameras.sh
    
        You can check the cam_id and subdev_id for the IMX219 camera (RPi v2)
        attached by running /opt/edgeai-gst-apps/scripts/setup_cameras.sh on the target
        host Linux. Accordingly please update the parameters or pass as launch arguments.
        """
    
        # Video device
        device = "/dev/video-imx219-cam" + LaunchConfiguration('cam_id').perform(context)
    
        # Subdev
        subdev = "/dev/v4l-imx219-subdev" + LaunchConfiguration('subdev_id').perform(context)
    
        # Width and height of the image
        width = int(LaunchConfiguration('width').perform(context))
        height = int(LaunchConfiguration('height').perform(context))
    
        # Framerate
        framerate = LaunchConfiguration('framerate')
    
        # Image encoding: "yuv420" - publishes in "NV12" (default), "rgb8"
        image_encoding = LaunchConfiguration('image_encoding')
    
        # Name of the gscam2 node
        node_name = LaunchConfiguration('node_name')
    
        # sensor_name
        sensor_name = 'SENSOR_SONY_IMX219_RPI'
    
        # DCC VISS binary file
        dcc_isp_file = '/opt/imaging/imx219/linear/dcc_viss_10b_1920x1080.bin'
    
        # DCC 2A binary file
        dcc_2a_file = '/opt/imaging/imx219/linear/dcc_2a_10b_1920x1080.bin'
    
        # GStreamer pipeline specified in gscam_config was tested with IMX219 camera.
        # Assumes 'edgeai-tiovx-modules' and 'edgeai-gst-plugins' are already installed in target ROS container.
        # Following pipleline center-crops 1640 x 1232 to 1632 x 918, then resizes to 1280 x 720.
        gscam_config = 'v4l2src device={} io-mode=5 do-timestamp=true ! '.format(device) \
            + 'video/x-bayer, width=1640, height=1232, format=rggb10 ! ' \
            + 'tiovxisp sink_0::device={} dcc-isp-file={} '.format(subdev, dcc_isp_file) \
            + 'sink_0::dcc-2a-file={} format-msb=9 sensor-name={} ! '.format(dcc_2a_file, sensor_name) \
            + 'video/x-raw, format=NV12, width=1640, height=1232 ! ' \
            + 'tiovxmultiscaler src_0::roi-startx=4 src_0::roi-starty=157 src_0::roi-width=1632 src_0::roi-height=918 ! ' \
            + 'video/x-raw, format=NV12, width={}, height={} ! '.format(width, height) \
            + 'tiovxdlcolorconvert out-pool-size=4'
        print(gscam_config)
    
        # Camera namespace
        camera_name = LaunchConfiguration('camera_name').perform(context)
        image_topic_name = LaunchConfiguration('image_topic_name').perform(context)
    
        # Camera calibration file
        # config_dir = os.path.join(get_package_share_directory('gscam2'), 'config')
        # camera_config = 'file://' + os.path.join(config_dir, 'IMX219_HD_camera_info.yaml')
        camera_config = 'file:///opt/robotics_sdk/tools/camera_info/IMX219_HD_camera_info.yaml'
        print(camera_config)
    
        node = Node(
            package    = 'gscam2',
            executable = 'gscam_main',
            output     = 'screen',
            name       = node_name,
            namespace  = camera_name,
            parameters = [
                {
                    'gscam_config':       gscam_config,
                    'camera_name':        camera_name,
                    'image_topic_name':   image_topic_name,
                    'camera_info_url':    camera_config,
                    'image_encoding':     image_encoding,
                    'appsink_width':      width,
                    'appsink_height':     height,
                    'appsink_framerate':  framerate,
                    'sync_sink':          False,
                    'preroll':            False,
                    'use_gst_timestamps': False,
                    'frame_id':           camera_name,
                },
            ],
        )
    
        return [node]
    
    
    def generate_launch_description():
    
        cam_id_arg = DeclareLaunchArgument(
            'cam_id',
            default_value='0',
            description='ID of the video device to use.'
        )
    
        subdev_id_arg = DeclareLaunchArgument(
            'subdev_id',
            default_value='0',
            description='ID of subdev to use.'
        )
    
        width_arg = DeclareLaunchArgument(
            'width',
            default_value='1280',
            description='width of the image, not larger than 1632'
        )
    
        height_arg = DeclareLaunchArgument(
            'height',
            default_value='720',
            description='height of the image, not larger than 918'
        )
    
        framerate_arg = DeclareLaunchArgument(
            'framerate',
            default_value='30',
            description='Frame rate of the camera'
        )
    
        image_encoding_arg = DeclareLaunchArgument(
            'image_encoding',
            default_value='yuv420',
            description='Encoding of the camera image'
        )
    
        node_name_arg = DeclareLaunchArgument(
            'node_name',
            default_value='gscam_publisher',
            description='Name of the gscam2 node'
        )
    
        camera_name_arg = DeclareLaunchArgument(
            'camera_name',
            default_value='camera',
            description='Name of the camera namespace'
        )
    
        image_topic_name_arg = DeclareLaunchArgument(
            'image_topic_name',
            default_value='image_raw',
            description='Name of the image topic'
        )
    
        # Create the launch description and add the arguments
        ld = LaunchDescription()
        ld.add_action(cam_id_arg)
        ld.add_action(subdev_id_arg)
        ld.add_action(width_arg)
        ld.add_action(height_arg)
        ld.add_action(framerate_arg)
        ld.add_action(image_encoding_arg)
        ld.add_action(node_name_arg)
        ld.add_action(camera_name_arg)
        ld.add_action(image_topic_name_arg)
        ld.add_action(OpaqueFunction(function=finalize_node))
    
        return ldroot@tda4vm-sk:/opt/robotics_sdk/ros2/drivers/gscam2/launch# [ 2213.256285] rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
    [ 2213.262373] rcu:     0-....: (2 ticks this GP) idle=75c4/1/0x4000000000000004 softirq=24588/24589 fqs=1050
    [ 2213.271746] rcu:     (detected by 1, t=5256 jiffies, g=21193, q=843 ncpus=2)
    [ 2213.278516] Task dump for CPU 0:
    [ 2213.281731] task:swapper/0       state:R  running task     stack:0     pid:0     ppid:0      flags:0x0000000a
    [ 2213.291626] Call trace:
    [ 2213.294060]  __switch_to+0xcc/0x12c
    [ 2213.297546]  0x0
    

    However, I am still not able to run the ROS node. I am still getting No image in RVIZ from my PC.

    From target side I am running:

    root@j7-docker:~/j7ros_home/ros_ws$ ros2 launch ti_vision_cnn gscam_objdet_cnn_imx219_launch.py cam_id:=/dev/video-imx219-cam0 subdev_id:=/dev/v4l-imx219-subdev0
    [INFO] [launch]: All log files can be found below /root/.ros/log/2024-10-22-13-23-36-804894-tda4vm-sk-83
    [INFO] [launch]: Default logging verbosity is set to INFO
    IMX219 Camera 0 detected
        device = /dev/video-imx219-cam0
        name = imx219
        format = [fmt:SRGGB10_1X10/1640x1232]
        subdev_id = /dev/v4l-imx219-subdev0
        isp_required = yes
    IMX219 Camera 0 detected
        device = /dev/video-imx219-cam0
        name = imx219
        format = [fmt:SRGGB10_1X10/1640x1232]
        subdev_id = /dev/v4l-imx219-subdev0
        isp_required = yes
    v4l2src device=/dev/video-imx219-cam/dev/video-imx219-cam0 io-mode=5 do-timestamp=true ! video/x-bayer, width=1640, height=1232, format=rggb10 ! tiovxisp sink_0::device=/dev/v4l-imx219-subdev/dev/v4l-imx219-subdev0 dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_10b_164
    0x1232.bin sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_10b_1640x1232.bin format-msb=9 sensor-name=SENSOR_SONY_IMX219_RPI ! video/x-raw, format=NV12, width=1640, height=1232 ! tiovxmultiscaler src_0::roi-startx=4 src_0::roi-starty=157 src_0::roi-width=1632 src_0
    ::roi-height=918 ! video/x-raw, format=NV12, width=1280, height=720 ! tiovxdlcolorconvert target=1 out-pool-size=4
    file:///opt/robotics_sdk/tools/camera_info/IMX219_HD_camera_info.yaml
    [INFO] [vision_cnn-1]: process started with pid [292]
    [INFO] [gscam_main-2]: process started with pid [294]
    [vision_cnn-1] [INFO] [1729603418.784809654] [vision_cnn]: dl_model_path: /opt/model_zoo/ONR-OD-8020-ssd-lite-mobv2-mmdet-coco-512x512
    [vision_cnn-1] APP: Init ... !!!
    [vision_cnn-1]   2591.031580 s: MEM: Init ... !!!
    [vision_cnn-1]   2591.031645 s: MEM: Initialized DMA HEAP (fd=12) !!!
    [vision_cnn-1]   2591.031786 s: MEM: Init ... Done !!!
    [vision_cnn-1]   2591.031800 s: IPC: Init ... !!!
    [gscam_main-2] [INFO] [1729603418.815863782] [camera.gscam_publisher]: use_intra_process_comms=0
    [gscam_main-2] [INFO] [1729603418.817074351] [camera.gscam_publisher]: gscam_config = v4l2src device=/dev/video-imx219-cam/dev/video-imx219-cam0 io-mode=5 do-timestamp=true ! video/x-bayer, width=1640, height=1232, format=rggb10 ! tiovxisp sink_0::device=/dev/v4l-imx219-
    subdev/dev/v4l-imx219-subdev0 dcc-isp-file=/opt/imaging/imx219/linear/dcc_viss_10b_1640x1232.bin sink_0::dcc-2a-file=/opt/imaging/imx219/linear/dcc_2a_10b_1640x1232.bin format-msb=9 sensor-name=SENSOR_SONY_IMX219_RPI ! video/x-raw, format=NV12, width=1640, height=1232 ! 
    tiovxmultiscaler src_0::roi-startx=4 src_0::roi-starty=157 src_0::roi-width=1632 src_0::roi-height=918 ! video/x-raw, format=NV12, width=1280, height=720 ! tiovxdlcolorconvert target=1 out-pool-size=4
    [gscam_main-2] [INFO] [1729603418.817167919] [camera.gscam_publisher]: sync_sink = false
    [gscam_main-2] [INFO] [1729603418.817202105] [camera.gscam_publisher]: preroll = false
    [gscam_main-2] [INFO] [1729603418.817230366] [camera.gscam_publisher]: use_gst_timestamps = false
    [gscam_main-2] [INFO] [1729603418.817259956] [camera.gscam_publisher]: image_encoding = yuv420
    [gscam_main-2] [INFO] [1729603418.817297662] [camera.gscam_publisher]: camera_info_url = file:///opt/robotics_sdk/tools/camera_info/IMX219_HD_camera_info.yaml
    [gscam_main-2] [INFO] [1729603418.817327973] [camera.gscam_publisher]: camera_name = camera
    [gscam_main-2] [INFO] [1729603418.817356314] [camera.gscam_publisher]: frame_id = camera
    [gscam_main-2] [INFO] [1729603418.817395215] [camera.gscam_publisher]: appsink_width = 1280
    [gscam_main-2] [INFO] [1729603418.817425976] [camera.gscam_publisher]: appsink_height = 720
    [gscam_main-2] [INFO] [1729603418.817454747] [camera.gscam_publisher]: appsink_framerate = 30
    [gscam_main-2] [INFO] [1729603418.817482003] [camera.gscam_publisher]: image_topic_name = image_raw
    [gscam_main-2] [INFO] [1729603418.817578680] [camera.gscam_publisher]: camera calibration URL: file:///opt/robotics_sdk/tools/camera_info/IMX219_HD_camera_info.yaml
    [gscam_main-2] [INFO] [1729603418.824575909] [camera.gscam_publisher]: Loaded camera calibration from file:///opt/robotics_sdk/tools/camera_info/IMX219_HD_camera_info.yaml
    [vision_cnn-1]   2591.107537 s: IPC: Init ... Done !!!
    [vision_cnn-1] REMOTE_SERVICE: Init ... !!!
    [vision_cnn-1] REMOTE_SERVICE: Init ... Done !!!
    [vision_cnn-1]   2591.127150 s: GTC Frequency = 200 MHz
    [vision_cnn-1] APP: Init ... Done !!!
    [vision_cnn-1]   2591.130456 s:  VX_ZONE_INIT:Enabled
    [vision_cnn-1]   2591.130494 s:  VX_ZONE_ERROR:Enabled
    [vision_cnn-1]   2591.130506 s:  VX_ZONE_WARNING:Enabled
    [vision_cnn-1]   2591.135840 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-0 
    [vision_cnn-1]   2591.136352 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-1 
    [vision_cnn-1]   2591.136837 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2 
    [vision_cnn-1]   2591.137193 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3 
    [vision_cnn-1]   2591.137311 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    [vision_cnn-1]   2591.142225 s:  VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
    [vision_cnn-1] libtidl_onnxrt_EP loaded 0xaaab193271d0 
    [vision_cnn-1] Final number of subgraphs created are : 1, - Offloaded Nodes - 473, Total Nodes - 473 
    [vision_cnn-1] [13:23:40.000.000000]:INFO:[makePostprocessImageObj:0092] Creating detectionObj...
    [vision_cnn-1] [13:23:40.000.000248]:INFO:[CmPostprocessImageObjDetect:0094] Created
    [vision_cnn-1] [13:23:40.062.062302]:INFO:[VISION_CNN_evtHdlrThread:0586] Launched.
    [vision_cnn-1]   2592.723707 s:  VX_ZONE_ERROR:[tivxQueueGet:345] no elements found in que
    [vision_cnn-1] [13:23:40.062.062612]:INFO:[VISION_CNN_preProcThread:0697] Launched.
    [vision_cnn-1] [13:23:40.064.064123]:INFO:[VISION_CNN_dlInferThread:0756] Launched.
    [vision_cnn-1] [13:23:40.064.064233]:INFO:[VISION_CNN_postProcThread:0814] Launched.
    [vision_cnn-1] [INFO] [1729603422.628215238] [vision_cnn]: Created Publisher for topic: camera/image_rect_nv12
    [vision_cnn-1] [INFO] [1729603422.648040195] [vision_cnn]: Created Publisher for topic: vision_cnn/tensor
    [vision_cnn-1] [INFO] [1729603422.648339599] [vision_cnn]: processCompleteEvtHdlr Launched.
    [vision_cnn-1] [INFO] [1729603422.649260125] [vision_cnn]: Subscribed to the topic: camera/image_raw
    [gscam_main-2] [INFO] [1729603425.193466204] [camera.gscam_publisher]: Gstreamer initialized
    [gscam_main-2] [INFO] [1729603425.193647164] [camera.gscam_publisher]: Gstreamer version: GStreamer 1.20.3
    [gscam_main-2] APP: Init ... !!!
    [gscam_main-2]   2597.463310 s: MEM: Init ... !!!
    [gscam_main-2]   2597.463371 s: MEM: Initialized DMA HEAP (fd=13) !!!
    [gscam_main-2]   2597.463461 s: MEM: Init ... Done !!!
    [gscam_main-2]   2597.463469 s: IPC: Init ... !!!
    [gscam_main-2]   2597.523482 s: IPC: Init ... Done !!!
    [gscam_main-2] REMOTE_SERVICE: Init ... !!!
    [gscam_main-2] REMOTE_SERVICE: Init ... Done !!!
    [gscam_main-2]   2597.530687 s: GTC Frequency = 200 MHz
    [gscam_main-2] APP: Init ... Done !!!
    [gscam_main-2]   2597.533196 s:  VX_ZONE_INIT:Enabled
    [gscam_main-2]   2597.533224 s:  VX_ZONE_ERROR:Enabled
    [gscam_main-2]   2597.533229 s:  VX_ZONE_WARNING:Enabled
    [gscam_main-2]   2597.533821 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-0 
    [gscam_main-2]   2597.533959 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-1 
    [gscam_main-2]   2597.534055 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2 
    [gscam_main-2]   2597.537396 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3 
    [gscam_main-2]   2597.537433 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    [gscam_main-2]   2597.538057 s:  VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
    [gscam_main-2] [INFO] [1729603425.331825626] [camera.gscam_publisher]: Time offset: 1729600835238013640
    [gscam_main-2] [FATAL] [1729603425.332528666] [camera.gscam_publisher]: Failed to pause stream, check gscam_config
    [gscam_main-2]   2597.555462 s:  VX_ZONE_ERROR:[vxGetStatus:1025] Reference is NULL
    [gscam_main-2]   2597.555491 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:120] De-Initialization Done for HOST !!!
    [gscam_main-2]   2597.556677 s:  VX_ZONE_INIT:[tivxDeInitLocal:206] De-Initialization Done !!!
    [gscam_main-2] APP: Deinit ... !!!
    [gscam_main-2] REMOTE_SERVICE: Deinit ... !!!
    [gscam_main-2] REMOTE_SERVICE: Deinit ... Done !!!
    [gscam_main-2]   2597.557170 s: IPC: Deinit ... !!!
    [gscam_main-2]   2597.558109 s: IPC: DeInit ... Done !!!
    [gscam_main-2]   2597.558132 s: MEM: Deinit ... !!!
    [gscam_main-2]   2597.558137 s: DDR_SHARED_MEM: Alloc's: 0 alloc's of 0 bytes 
    [gscam_main-2]   2597.558142 s: DDR_SHARED_MEM: Free's : 0 free's  of 0 bytes 
    [gscam_main-2]   2597.558147 s: DDR_SHARED_MEM: Open's : 0 allocs  of 0 bytes 
    [gscam_main-2]   2597.558155 s: MEM: Deinit ... Done !!!
    [gscam_main-2] APP: Deinit ... Done !!!
    [gscam_main-2] [INFO] [1729603425.336304443] [camera.gscam_publisher]: Pipeline deleted
    ^C[WARNING] [launch]: user interrupted with ctrl-c (SIGINT)
    [vision_cnn-1] [INFO] [1729603473.234114418] [rclcpp]: signal_handler(signum=2)
    [vision_cnn-1] [INFO] [1729603473.235684816] [vision_cnn]: processCompleteEvtHdlr Exiting.
    [vision_cnn-1] Failed to publish log message to rosout: publisher's context is invalid, at ./src/rcl/publisher.c:389
    [vision_cnn-1] [13:24:33.52796.796172]:INFO:[VISION_CNN_intSigHandler:0925] Waiting for the graph to finish.
    [vision_cnn-1]   2645.456055 s:  VX_ZONE_ERROR:[vxWaitGraph:987] graph not in expected state
    [vision_cnn-1] [13:24:33.52796.796363]:ERROR:[VISION_CNN_waitGraph:0649] vxWaitGraph() failed
    [vision_cnn-1] [13:24:33.52796.796402]:ERROR:[VISION_CNN_intSigHandler:0931] VISION_CNN_waitGraph() failed
    [vision_cnn-1] [13:24:33.52796.796520]:INFO:[VISION_CNN_evtHdlrThread:0632] Exiting.
    [vision_cnn-1] [13:24:33.52797.797090]:INFO:[VISION_CNN_postProcThread:0874] Exiting.
    [vision_cnn-1] [13:24:33.52797.797580]:INFO:[VISION_CNN_dlInferThread:0805] Exiting.
    [vision_cnn-1] [13:24:33.52797.797975]:INFO:[VISION_CNN_preProcThread:0746] Exiting.
    [vision_cnn-1] [13:24:33.52798.798274]:INFO:[VISION_CNN_cleanupHdlr:0554] ========= BEGIN:PERFORMANCE STATS SUMMARY =========
    [vision_cnn-1] GRAPH: Vision CNN Graph (#nodes =   2, #executions =      0)
    [vision_cnn-1]  NODE:      VPAC_LDC1:                  LdcNode: avg =      0 usecs, min/max = 18446744073709551 /      0 usecs, #executions =          0
    [vision_cnn-1]  NODE:      VPAC_MSC1:               ScalerNode: avg =      0 usecs, min/max = 18446744073709551 /      0 usecs, #executions =          0
    [vision_cnn-1] 
    [vision_cnn-1]  PERF:  Vision CNN GRAP: avg =      0 usecs, min/max = 4294967295 /      0 usecs, #executions =          0
    [vision_cnn-1] 
    [vision_cnn-1]  PERF:  Vision CNN GRAP:    0. 0 FPS
    [vision_cnn-1] 
    [vision_cnn-1] +------------------------------------------------------------+
    [vision_cnn-1] |                   Average processing time                  |
    [vision_cnn-1] +------------------------------------------------------------+
    [vision_cnn-1] +------------------------------------------------------------+
    [vision_cnn-1] 
    [vision_cnn-1] [13:24:33.52798.798600]:INFO:[VISION_CNN_cleanupHdlr:0558] ========= END:PERFORMANCE STATS SUMMARY ===========
    [vision_cnn-1] 
    [gscam_main-2] [INFO] [1729603473.234114438] [rclcpp]: signal_handler(signum=2)
    [vision_cnn-1]   2645.487104 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:120] De-Initialization Done for HOST !!!
    [vision_cnn-1]   2645.491367 s:  VX_ZONE_INIT:[tivxDeInitLocal:206] De-Initialization Done !!!
    [vision_cnn-1] APP: Deinit ... !!!
    [vision_cnn-1] REMOTE_SERVICE: Deinit ... !!!
    [vision_cnn-1] REMOTE_SERVICE: Deinit ... Done !!!
    [vision_cnn-1]   2645.491943 s: IPC: Deinit ... !!!
    [vision_cnn-1]   2645.492715 s: IPC: DeInit ... Done !!!
    [vision_cnn-1]   2645.492750 s: MEM: Deinit ... !!!
    [vision_cnn-1]   2645.492763 s: DDR_SHARED_MEM: Alloc's: 26 alloc's of 19015116 bytes 
    [vision_cnn-1]   2645.492772 s: DDR_SHARED_MEM: Free's : 26 free's  of 19015116 bytes 
    [vision_cnn-1]   2645.492781 s: DDR_SHARED_MEM: Open's : 0 allocs  of 0 bytes 
    [vision_cnn-1]   2645.492791 s: MEM: Deinit ... Done !!!
    [vision_cnn-1] APP: Deinit ... Done !!!
    [vision_cnn-1] [13:24:33.52833.833110]:INFO:[VISION_CNN_cleanupHdlr:0571] Clean-up complete.
    [vision_cnn-1] [13:24:33.52833.833168]:INFO:[VISION_CNN_intSigHandler:0935] 
    [vision_cnn-1] DEMO FINISHED!
    [INFO] [gscam_main-2]: process has finished cleanly [pid 294]
    [INFO] [vision_cnn-1]: process has finished cleanly [pid 292]
    

    From PC side:

    root@pc-docker:~/j7ros_home/ros_ws$ ros2 launch ti_viz_nodes rviz_objdet_cnn_launch.py
    [INFO] [launch]: All log files can be found below /root/.ros/log/2024-10-22-13-23-59-349959-eric-Latitude-E6540-8859
    [INFO] [launch]: Default logging verbosity is set to INFO
    [INFO] [viz_color_conv_yuv2rgb-1]: process started with pid [8860]
    [INFO] [viz_objdet-2]: process started with pid [8862]
    [INFO] [rviz2-3]: process started with pid [8864]
    [rviz2-3] QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
    [rviz2-3] [INFO] [1729603439.919627635] [rviz2]: Stereo is NOT SUPPORTED
    [rviz2-3] [INFO] [1729603439.919879357] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
    [rviz2-3] [INFO] [1729603439.945447727] [rviz2]: Stereo is NOT SUPPORTED
    [rviz2-3] [INFO] [1729603440.090769197] [rviz2]: Stereo is NOT SUPPORTED
    [INFO] [rviz2-3]: process has finished cleanly [pid 8864]

    When RVIZ is launched, RVIZ window appears with a  message: No image.

    Am I missing something?

    Thanks,

    Mariem

  • Hi Mariem,

    I think it is the "target=1" in tiovxdlcolorconvert element. Could you remove this?

    The first GStreamer pipeline I sent to you was ripped out of the ROS launch files, so any issues we faced with the GStreamer pipeline will be faced through ROS.

    Regards,

    Takuma

  • Hello Takuma,

    I have already removed target=1 in /opt/robotics_sdk/ros2/drivers/gscam2/launch/v4l_imx219_launch.py.

    root@tda4vm-sk:/opt/robotics_sdk/ros2/drivers/gscam2/launch# vi v4l_imx219_launch.py 
    root@tda4vm-sk:/opt/robotics_sdk/ros2/drivers/gscam2/launch# cat v4l_imx219_launch.py                                                                                                                                                                                          
    """
    Launch gscam2 node with parameters and remappings.
    """
    import os
    import subprocess
    from ament_index_python.packages import get_package_share_directory
    from launch import LaunchDescription
    from launch.actions import DeclareLaunchArgument
    from launch.substitutions import LaunchConfiguration
    from launch.actions import OpaqueFunction
    from launch_ros.actions import Node
    
    # run setup_cameras.sh to configure IMX219 camera with 10-bit 1640x1232
    # Alternatively, the following can be run in the command line (preferably on the host Linux):
    # IMX219_CAM_FMT="[fmt:SRGGB10_1X10/1640x1232]" /opt/edgeai-gst-apps/scripts/setup_cameras.sh
    command = "/opt/edgeai-gst-apps/scripts/setup_cameras.sh"
    env = {"IMX219_CAM_FMT": "[fmt:SRGGB10_1X10/1640x1232]"}
    subprocess.run(command, env={**os.environ, **env}, shell=True)
    
    def finalize_node(context, *args, **kwargs):
    
        """
        Following setup for IMX219 camera is included in entrypoint.sh:
        IMX219_CAM_FMT="[fmt:SRGGB10_1X10/1640x1232]" /opt/edgeai-gst-apps/scripts/setup_cameras.sh
    
        You can check the cam_id and subdev_id for the IMX219 camera (RPi v2)
        attached by running /opt/edgeai-gst-apps/scripts/setup_cameras.sh on the target
        host Linux. Accordingly please update the parameters or pass as launch arguments.
        """
    
        # Video device
        device = "/dev/video-imx219-cam" + LaunchConfiguration('cam_id').perform(context)
    
        # Subdev
        subdev = "/dev/v4l-imx219-subdev" + LaunchConfiguration('subdev_id').perform(context)
    
        # Width and height of the image
        width = int(LaunchConfiguration('width').perform(context))
        height = int(LaunchConfiguration('height').perform(context))
    
        # Framerate
        framerate = LaunchConfiguration('framerate')
    
        # Image encoding: "yuv420" - publishes in "NV12" (default), "rgb8"
        image_encoding = LaunchConfiguration('image_encoding')
    
        # Name of the gscam2 node
        node_name = LaunchConfiguration('node_name')
    
        # sensor_name
        sensor_name = 'SENSOR_SONY_IMX219_RPI'
    
        # DCC VISS binary file
        dcc_isp_file = '/opt/imaging/imx219/linear/dcc_viss_10b_1920x1080.bin'
    
        # DCC 2A binary file
        dcc_2a_file = '/opt/imaging/imx219/linear/dcc_2a_10b_1920x1080.bin'
    
        # GStreamer pipeline specified in gscam_config was tested with IMX219 camera.
        # Assumes 'edgeai-tiovx-modules' and 'edgeai-gst-plugins' are already installed in target ROS container.
        # Following pipleline center-crops 1640 x 1232 to 1632 x 918, then resizes to 1280 x 720.
        gscam_config = 'v4l2src device={} io-mode=5 do-timestamp=true ! '.format(device) \
            + 'video/x-bayer, width=1640, height=1232, format=rggb10 ! ' \
            + 'tiovxisp sink_0::device={} dcc-isp-file={} '.format(subdev, dcc_isp_file) \
            + 'sink_0::dcc-2a-file={} format-msb=9 sensor-name={} ! '.format(dcc_2a_file, sensor_name) \
            + 'video/x-raw, format=NV12, width=1640, height=1232 ! ' \
            + 'tiovxmultiscaler src_0::roi-startx=4 src_0::roi-starty=157 src_0::roi-width=1632 src_0::roi-height=918 ! ' \
            + 'video/x-raw, format=NV12, width={}, height={} ! '.format(width, height) \
            + 'tiovxdlcolorconvert out-pool-size=4'
        print(gscam_config)
    
        # Camera namespace
        camera_name = LaunchConfiguration('camera_name').perform(context)
        image_topic_name = LaunchConfiguration('image_topic_name').perform(context)
    
        # Camera calibration file
        # config_dir = os.path.join(get_package_share_directory('gscam2'), 'config')
        # camera_config = 'file://' + os.path.join(config_dir, 'IMX219_HD_camera_info.yaml')
        camera_config = 'file:///opt/robotics_sdk/tools/camera_info/IMX219_HD_camera_info.yaml'
        print(camera_config)
    
        node = Node(
            package    = 'gscam2',
            executable = 'gscam_main',
            output     = 'screen',
            name       = node_name,
            namespace  = camera_name,
            parameters = [
                {
                    'gscam_config':       gscam_config,
                    'camera_name':        camera_name,
                    'image_topic_name':   image_topic_name,
                    'camera_info_url':    camera_config,
                    'image_encoding':     image_encoding,
                    'appsink_width':      width,
                    'appsink_height':     height,
                    'appsink_framerate':  framerate,
                    'sync_sink':          False,
                    'preroll':            False,
                    'use_gst_timestamps': False,
                    'frame_id':           camera_name,
                },
            ],
        )
    
        return [node]
    
    
    def generate_launch_description():
    
        cam_id_arg = DeclareLaunchArgument(
            'cam_id',
            default_value='0',
            description='ID of the video device to use.'
        )
    
        subdev_id_arg = DeclareLaunchArgument(
            'subdev_id',
            default_value='0',
            description='ID of subdev to use.'
        )
    
        width_arg = DeclareLaunchArgument(
            'width',
            default_value='1280',
            description='width of the image, not larger than 1632'
        )
    
        height_arg = DeclareLaunchArgument(
            'height',
            default_value='720',
            description='height of the image, not larger than 918'
        )
    
        framerate_arg = DeclareLaunchArgument(
            'framerate',
            default_value='30',
            description='Frame rate of the camera'
        )
    
        image_encoding_arg = DeclareLaunchArgument(
            'image_encoding',
            default_value='yuv420',
            description='Encoding of the camera image'
        )
    
        node_name_arg = DeclareLaunchArgument(
            'node_name',
            default_value='gscam_publisher',
            description='Name of the gscam2 node'
        )
    
        camera_name_arg = DeclareLaunchArgument(
            'camera_name',
            default_value='camera',
            description='Name of the camera namespace'
        )
    
        image_topic_name_arg = DeclareLaunchArgument(
            'image_topic_name',
            default_value='image_raw',
            description='Name of the image topic'
        )
    
        # Create the launch description and add the arguments
        ld = LaunchDescription()
        ld.add_action(cam_id_arg)
        ld.add_action(subdev_id_arg)
        ld.add_action(width_arg)
        ld.add_action(height_arg)
        ld.add_action(framerate_arg)
        ld.add_action(image_encoding_arg)
        ld.add_action(node_name_arg)
        ld.add_action(camera_name_arg)
        ld.add_action(image_topic_name_arg)
        ld.add_action(OpaqueFunction(function=finalize_node))
    

    But I am still getting the same result.

    Bests,

    Mariem

  • Hello Takuma,

    I tried to use a USB camera (logitech c270). I tried to run the following ros node to test the camera:

    ros2 launch mono_capture mono_capture_launch.py

    From the PC side I can see the nodes and topics:
    root@pc-docker:~/j7ros_home/ros_ws/install/ti_viz_nodes/share/ti_viz_nodes/launch$ ros2 topic list
    /camera/camera_info
    /camera/image_raw
    /camera/image_raw/compressed
    /camera/image_raw/compressedDepth
    /camera/image_raw/theora
    /parameter_events
    /rosout

    root@pc-docker:~/j7ros_home/ros_ws/install/ti_viz_nodes/share/ti_viz_nodes/launch$ ros2 node list
    /mono_capture

    However I am not able to show the images from the camera. I tried several ways but in vain:
    root@pc-docker:~/j7ros_home/ros_ws/install/ti_viz_nodes/share/ti_viz_nodes/launch$ ros2 run rqt_image_view rqt_image_view
    root@pc-docker:~/j7ros_home/ros_ws/install/ti_viz_nodes/share/ti_viz_nodes/launch$ ros2 run rviz2 rviz2 (I configured RVIZ2 by adding the display Image and the image topic /camera/image_raw

    I also checked if the data is being published: root@pc-docker:~/j7ros_home/ros_ws/install/ti_viz_nodes/share/ti_viz_nodes/launch$ ros2 topic echo /camera/image_raw
    but nothing appeared which means that there is a problem with the camera node itself.

    From the target side I am getting:
    root@j7-docker:~/j7ros_home/ros_ws$ ros2 launch mono_capture mono_capture_launch.py
    [INFO] [launch]: All log files can be found below /root/.ros/log/2024-10-25-13-14-37-697169-tda4vm-sk-2767
    [INFO] [launch]: Default logging verbosity is set to INFO
    [INFO] [mono_capture-1]: process started with pid [2768]
    [mono_capture-1] [INFO] [1729862084.265588015] [mono_capture]: Initialize the Webcam
    [  779.815741] usb 1-1.1: reset high-speed USB device number 3 using xhci-hcd
    [  784.859639] usb 1-1.1: reset high-speed USB device number 3 using xhci-hcd
    [mono_capture-1] [ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (2075) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module source reported: Could not read from resource.
    [mono_capture-1] [ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (1053) open OpenCV | GStreamer warning: unable to start pipeline
    [mono_capture-1] [ WARN:0] global ./modules/videoio/src/cap_gstreamer.cpp (616) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
    [mono_capture-1] [INFO] [1729862090.021137253] [MonoCamera]: YUV422
    [mono_capture-1] [INFO] [1729862090.021287366] [MonoCamera]: Stereo Camera Mode HD, width 1280, height 720
    [mono_capture-1] [INFO] [1729862090.134871761] [mono_capture]: Loading camera info from yaml files
    [mono_capture-1] [INFO] [1729862090.136074586] [mono_capture]: camera calibration URL: file:///opt/robotics_sdk/ros1/drivers/mono_capture/config/C920_HD_camera_info.yaml
    [mono_capture-1] [INFO] [1729862092.259540871] [mono_capture]: Successfully found the monocam
    [mono_capture-1] [ERROR] [1729862408.658282416] [compressed_depth_image_transport]: Compressed Depth Image Transport - Compression requires single-channel 32bit-floating point or 16bit raw depth images (input format is: yuv422).


    dmesg logs are:
    [   16.079116] usb 1-1.2: Found UVC 1.00 device HD WebCam C270 (046d:0825)
    [   16.086855] usb 1-1.2: Failed to query (GET_INFO) UVC control 12 on unit 2: 0 (exp. 1).
    [   16.095777] usb 1-1.2: Failed to query (GET_INFO) UVC control 13 on unit 2: 0 (exp. 1).
    [   16.103996] usb 1-1.2: Failed to query (GET_INFO) UVC control 14 on unit 2: 0 (exp. 1).
    [   16.112336] usb 1-1.2: Failed to query (GET_INFO) UVC control 15 on unit 2: 0 (exp. 1).
    [   16.120566] usb 1-1.2: Failed to query (GET_INFO) UVC control 1 on unit 1: 0 (exp. 1).
    [   16.129012] usb 1-1.2: Failed to query (GET_INFO) UVC control 5 on unit 1: 0 (exp. 1).
    [   16.137282] usb 1-1.2: Failed to query (GET_INFO) UVC control 12 on unit 1: 0 (exp. 1).
    [   16.145618] usb 1-1.2: Failed to query (GET_INFO) UVC control 14 on unit 1: 0 (exp. 1).
    [   16.162271] usbcore: registered new interface driver uvcvideo
    [   16.328509] usb 1-1.2: 3:1: cannot get freq at ep 0x84
    [   16.368570] usb 1-1.2: set resolution quirk: cval->res = 384
    [   16.376417] usbcore: registered new interface driver snd-usb-audio
    [   17.157470] am65-cpsw-nuss 46000000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
    [   19.540738] usb 1-1.2: reset high-speed USB device number 3 using xhci-hcd
    



    The camera is recognized when I boot:
    USB Camera 0 detected
        device = /dev/video-usb-cam0
        format = jpeg
    USB Camera 1 detected
        device = /dev/video-usb-cam1
        format = jpeg
    Thanks in advance for your help!


    Bests,
    Mariem
  • Hi Mariem,

    Could you do a similar experiment to the IMX219 where you run the GStreamer pipeline directly using gst-launch-1.0?

    The src/robotics_sdk/ros1 (or ros2 depending on which ROS version)/drivers/gscam/launch/ folder should have a file for launching the USB camera pipeline, so you can take that pipeline and pipe it into autovideosink to display to a connected monitor.

    Regards,

    Takuma

  • Hello Takuma,

    Thank you for your answer and your suggestion.

    The USB camera is working fine using the gst-launch-1.0 command.

    I used: gst-launch-1.0 v4l2src device=/dev/video-usb-cam0 io-mode=2 do-timestamp=true ! image/jpeg ! jpegdec ! tiovxdlcolorconvert ! autovideosink

    I can see the camera's output using autovideosink.

    How can I proceed now to run the camera ROS Node successfully ?

    Thanks,

    Mariem

  • Hi Mariem,

    That is a bit unexpected to see the same on the USB camera, but it looks like an issue with ROS itself instead of an issue on camera-side. It's been a while since the start of the thread, so I cannot remember if we have checked, but can you run the following on the PC-side inside the docker container:

    • "ros2 topic list"
      • Or, "rostopic list" for ROS1

    Command should be ran right before starting the launch of the viz node. There should be a bunch of topics that are listed. If there are none, then it could be an issue with network, or some other set up.

    Then, could you run the following commands:

    • echo $ROS_IP
    • echo $ROS_MASTER_URI

    ROS_IP should be the IP address of the PC, and ROS_MASTER_URI should be IP address of the board.

    Regards,

    Takuma

  • Hello Takuma,

    Sorry for the late answer, I was working on another project.

    I tried to launch this ROS node: ros2 launch ti_vision_cnn gscam_semseg_cnn_launch.py cam_id:=/dev/video-usb-cam0

    The log from the target is below:

    root@j7-docker:~/j7ros_home/ros_ws$ ros2 launch ti_vision_cnn gscam_semseg_cnn_launch.py cam_id:=/dev/video-usb-cam0
    [INFO] [launch]: All log files can be found below /root/.ros/log/2024-12-04-15-58-35-475550-tda4vm-sk-143
    [INFO] [launch]: Default logging verbosity is set to INFO
    file:///root/j7ros_home/ros_ws/install/gscam2/share/gscam2/config/C920_HD_camera_info.yaml
    [INFO] [vision_cnn-1]: process started with pid [144]
    [INFO] [gscam_main-2]: process started with pid [146]
    [gscam_main-2] [INFO] [1733327915.928478359] [camera.gscam_publisher]: use_intra_process_comms=0
    [vision_cnn-1] [INFO] [1733327915.930911495] [vision_cnn]: dl_model_path: /opt/model_zoo/ONR-SS-7618-deeplabv3lite-mobv2-qat-robokit-768x432
    [gscam_main-2] [INFO] [1733327915.933137937] [camera.gscam_publisher]: gscam_config = v4l2src device=/dev/video-usb-cam/dev/video-usb-cam0 io-mode=2 do-timestamp=true ! image/jpeg ! jpegdec ! tiovxdlcolorconvert
    [gscam_main-2] [INFO] [1733327915.933237239] [camera.gscam_publisher]: sync_sink = false
    [gscam_main-2] [INFO] [1733327915.933270939] [camera.gscam_publisher]: preroll = false
    [gscam_main-2] [INFO] [1733327915.933300610] [camera.gscam_publisher]: use_gst_timestamps = false
    [gscam_main-2] [INFO] [1733327915.933329560] [camera.gscam_publisher]: image_encoding = yuv420
    [gscam_main-2] [INFO] [1733327915.933380266] [camera.gscam_publisher]: camera_info_url = file:///root/j7ros_home/ros_ws/install/gscam2/share/gscam2/config/C920_HD_camera_info.yaml
    [gscam_main-2] [INFO] [1733327915.933411157] [camera.gscam_publisher]: camera_name = camera
    [gscam_main-2] [INFO] [1733327915.933439432] [camera.gscam_publisher]: frame_id = camera
    [gscam_main-2] [INFO] [1733327915.933477703] [camera.gscam_publisher]: appsink_width = 1280
    [gscam_main-2] [INFO] [1733327915.933509453] [camera.gscam_publisher]: appsink_height = 720
    [gscam_main-2] [INFO] [1733327915.933538489] [camera.gscam_publisher]: appsink_framerate = 30
    [gscam_main-2] [INFO] [1733327915.933566764] [camera.gscam_publisher]: image_topic_name = image_raw
    [gscam_main-2] [INFO] [1733327915.933647171] [camera.gscam_publisher]: camera calibration URL: file:///root/j7ros_home/ros_ws/install/gscam2/share/gscam2/config/C920_HD_camera_info.yaml
    [gscam_main-2] [INFO] [1733327916.008532266] [camera.gscam_publisher]: Loaded camera calibration from file:///root/j7ros_home/ros_ws/install/gscam2/share/gscam2/config/C920_HD_camera_info.yaml
    [gscam_main-2] [INFO] [1733327916.043300695] [camera.gscam_publisher]: Gstreamer initialized
    [gscam_main-2] [INFO] [1733327916.043446468] [camera.gscam_publisher]: Gstreamer version: GStreamer 1.20.3
    [vision_cnn-1] APP: Init ... !!!
    [vision_cnn-1]    964.461112 s: MEM: Init ... !!!
    [vision_cnn-1]    964.461173 s: MEM: Initialized DMA HEAP (fd=12) !!!
    [vision_cnn-1]    964.461320 s: MEM: Init ... Done !!!
    [vision_cnn-1]    964.461335 s: IPC: Init ... !!!
    [vision_cnn-1]    964.521921 s: IPC: Init ... Done !!!
    [vision_cnn-1] REMOTE_SERVICE: Init ... !!!
    [vision_cnn-1] REMOTE_SERVICE: Init ... Done !!!
    [  954.008410] usb 1-1.2: reset high-speed USB device number 4 using xhci-hcd
    [vision_cnn-1]    964.579182 s: GTC Frequency = 200 MHz
    [vision_cnn-1] APP: Init ... Done !!!
    [vision_cnn-1]    964.595130 s:  VX_ZONE_INIT:Enabled
    [vision_cnn-1]    964.595161 s:  VX_ZONE_ERROR:Enabled
    [vision_cnn-1]    964.595173 s:  VX_ZONE_WARNING:Enabled
    [vision_cnn-1]    964.600772 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-0 
    [vision_cnn-1]    964.600914 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-1 
    [vision_cnn-1]    964.601062 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2 
    [vision_cnn-1]    964.601185 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3 
    [vision_cnn-1]    964.601229 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    [vision_cnn-1]    964.679146 s:  VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
    [gscam_main-2] APP: Init ... !!!
    [gscam_main-2]    964.957557 s: MEM: Init ... !!!
    [gscam_main-2]    964.957614 s: MEM: Initialized DMA HEAP (fd=13) !!!
    [gscam_main-2]    964.957707 s: MEM: Init ... Done !!!
    [gscam_main-2]    964.957714 s: IPC: Init ... !!!
    [gscam_main-2]    965.017260 s: IPC: Init ... Done !!!
    [gscam_main-2] REMOTE_SERVICE: Init ... !!!
    [gscam_main-2] REMOTE_SERVICE: Init ... Done !!!
    [gscam_main-2]    965.023662 s: GTC Frequency = 200 MHz
    [gscam_main-2] APP: Init ... Done !!!
    [gscam_main-2]    965.024068 s:  VX_ZONE_INIT:Enabled
    [gscam_main-2]    965.024080 s:  VX_ZONE_ERROR:Enabled
    [gscam_main-2]    965.024085 s:  VX_ZONE_WARNING:Enabled
    [gscam_main-2]    965.024667 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-0 
    [gscam_main-2]    965.024774 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-1 
    [gscam_main-2]    965.024881 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-2 
    [gscam_main-2]    965.024970 s:  VX_ZONE_INIT:[tivxPlatformCreateTargetId:124] Added target MPU-3 
    [gscam_main-2]    965.024977 s:  VX_ZONE_INIT:[tivxInitLocal:136] Initialization Done !!!
    [gscam_main-2]    965.025463 s:  VX_ZONE_INIT:[tivxHostInitLocal:106] Initialization Done for HOST !!!
    [gscam_main-2] [INFO] [1733327916.845675325] [camera.gscam_publisher]: Time offset: 1733326962265864022
    [gscam_main-2] [FATAL] [1733327916.846215779] [camera.gscam_publisher]: Failed to pause stream, check gscam_config
    [gscam_main-2]    965.224244 s:  VX_ZONE_INIT:[tivxHostDeInitLocal:120] De-Initialization Done for HOST !!!
    [gscam_main-2]    965.228797 s:  VX_ZONE_INIT:[tivxDeInitLocal:206] De-Initialization Done !!!
    [gscam_main-2] APP: Deinit ... !!!
    [gscam_main-2] REMOTE_SERVICE: Deinit ... !!!
    [gscam_main-2] REMOTE_SERVICE: Deinit ... Done !!!
    [gscam_main-2]    965.229293 s: IPC: Deinit ... !!!
    [gscam_main-2]    965.231224 s: IPC: DeInit ... Done !!!
    [gscam_main-2]    965.231621 s: MEM: Deinit ... !!!
    [gscam_main-2]    965.231626 s: DDR_SHARED_MEM: Alloc's: 0 alloc's of 0 bytes 
    [gscam_main-2]    965.231631 s: DDR_SHARED_MEM: Free's : 0 free's  of 0 bytes 
    [gscam_main-2]    965.231635 s: DDR_SHARED_MEM: Open's : 0 allocs  of 0 bytes 
    [gscam_main-2]    965.231644 s: MEM: Deinit ... Done !!!
    [gscam_main-2] APP: Deinit ... Done !!!
    [gscam_main-2] [INFO] [1733327916.854521228] [camera.gscam_publisher]: Pipeline deleted
    [vision_cnn-1] libtidl_onnxrt_EP loaded 0xaaaaee04d8a0 
    [vision_cnn-1] Final number of subgraphs created are : 1, - Offloaded Nodes - 152, Total Nodes - 152 
    [vision_cnn-1] [15:58:39.000.000000]:INFO:[VISION_CNN_preProcThread:0697] Launched.
    [vision_cnn-1]    967.674569 s:  VX_ZONE_ERROR:[tivxQueueGet:345] no elements found in que
    [vision_cnn-1] [15:58:39.000.000100]:INFO:[VISION_CNN_postProcThread:0814] Launched.
    [vision_cnn-1] [15:58:39.001.001123]:INFO:[VISION_CNN_postProcThread:0814] Launched.
    [vision_cnn-1] [15:58:39.001.001262]:INFO:[VISION_CNN_postProcThread:0814] Launched.
    [vision_cnn-1] [INFO] [1733327919.534073683] [vision_cnn]: Created Publisher for topic: camera/image_rect_nv12
    [vision_cnn-1] [INFO] [1733327919.540805351] [vision_cnn]: Created Publisher for topic: vision_cnn/tensor
    [vision_cnn-1] [INFO] [1733327919.541118441] [vision_cnn]: processCompleteEvtHdlr Launched.
    [vision_cnn-1] [INFO] [1733327919.543643709] [vision_cnn]: Subscribed to the topic: camera/image_raw
    

    From the PC side:

    The list of topics is the following:

    root@pc-docker:~/j7ros_home/ros_ws$ ros2 topic list
    /camera/image_raw
    /camera/image_rect_nv12
    /camera/image_rect_nv12/compressed
    /camera/image_rect_nv12/compressedDepth
    /camera/image_rect_nv12/theora
    /parameter_events
    /rosout
    /vision_cnn/tensor
    /vision_cnn/tensor/compressed
    /vision_cnn/tensor/compressedDepth
    /vision_cnn/tensor/theora

    When I try to print the ROS IP and ROS_MASTER_URI nothing appears:

    root@pc-docker:~/j7ros_home/ros_ws$ echo $ROS_IP

    root@pc-docker:~/j7ros_home/ros_ws$ echo $ROS_MASTER_URI

    The list of nodes is the following:

    root@pc-docker:~/j7ros_home/ros_ws$ ros2 node list
    /camera/gscam_publisher
    /vision_cnn

    I tried to get info from ROS topic, it is weird that publisher count is 0, it means that the /camera/image_raw topic is not receiving any data:

    root@pc-docker:~/j7ros_home/ros_ws$ ros2 topic info /camera/image_raw
    Type: sensor_msgs/msg/Image
    Publisher count: 0
    Subscription count: 1

    Info from ROS node:

    root@pc-docker:~/j7ros_home/ros_ws$ ros2 node info /camera/gscam_publisher
    /camera/gscam_publisher
      Subscribers:
        /parameter_events: rcl_interfaces/msg/ParameterEvent
      Publishers:
        /parameter_events: rcl_interfaces/msg/ParameterEvent
        /rosout: rcl_interfaces/msg/Log
      Service Servers:
        /camera/gscam_publisher/describe_parameters: rcl_interfaces/srv/DescribeParameters
        /camera/gscam_publisher/get_parameter_types: rcl_interfaces/srv/GetParameterTypes
        /camera/gscam_publisher/get_parameters: rcl_interfaces/srv/GetParameters
        /camera/gscam_publisher/list_parameters: rcl_interfaces/srv/ListParameters
        /camera/gscam_publisher/set_parameters: rcl_interfaces/srv/SetParameters
        /camera/gscam_publisher/set_parameters_atomically: rcl_interfaces/srv/SetParametersAtomically
        /camera/set_camera_info: sensor_msgs/srv/SetCameraInfo
      Service Clients:

      Action Servers:

      Action Clients:

    And finally I am not able to visualize the image via RVIZ. I am not sure what is wrong because when I launch  gst-launch-1.0 v4l2src device=/dev/video-usb-cam0 io-mode=2 do-timestamp=true ! image/jpeg ! jpegdec ! tiovxdlcolorconvert ! autovideosink  I can see the camera's output.

    DO you have any suggestions on how to solve the issue with ROS node using the camra?

    Thanks a lot,

    Mariem

  • Hi Mariem,

    Good to see you again! And no problem, respond whenever it is most convenient for you. 

    When I try to print the ROS IP and ROS_MASTER_URI nothing appears:

    root@pc-docker:~/j7ros_home/ros_ws$ echo $ROS_IP

    root@pc-docker:~/j7ros_home/ros_ws$ echo $ROS_MASTER_URI

    I think this might be the issue. Could you set ROS_IP and ROS_MASTER_URI environment variables within your PC's docker container before running the demo? The command would look like:

    For example, assuming your PC has an IP address of 128.3.42.12 and your SK-TDA4VM has the IP address of 128.3.42.6.

    • On PC:
      • export ROS_IP=128.3.42.12 
      • export ROS_MASTER_URI=http://128.3.42.6:11311
    • On SK-TDA4VM (assuming these variables are not set):
      • export ROS_IP=128.3.42.6
      • export ROS_MASTER_URI=http://128.3.42.6:11311

    Regards,

    Takuma