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.

J721EXCPXEVM: J721EXCPXEVM video camera driver (ds960+ds933 4 lanes)

Part Number: J721EXCPXEVM
Other Parts Discussed in Thread: SYSBIOS, TCA6408

Hi team,

I use J721EXCPXEVM board  and use kerenl version ti-linux-kernel-07.02.00.004;

I have this problem:

root@j7-evm:~# yavta /dev/video10 -n 3 -c10 -f yuyv -s 1280x960 --skip 7 -F xxx.raw
Device /dev/video10 opened.
Device `tidss-m2m' on `platform:tidss-m2m' is a video output (without mplanes) device.
Device supports neither capture nor output.

I check this user guide:
processors.wiki.ti.com/.../Linux_Core_VIP_User's_Guide
debugging chapter. You could check debugging logs in both cases working and not working.

I want to know, I should  which .c  file driver  my hardware (ds960----ds933)  camera, format yuyv & 1280x960

and how to config dts 

-rw-rw-r-- 1 jyc jyc 64698 1月 19 21:13 ./cal.c
-rw-rw-r-- 1 jyc jyc 6972 1月 19 21:13 ./csc.c
-rw-rw-r-- 1 jyc jyc 7464 1月 19 21:13 ./sc.c
-rw-rw-r-- 1 jyc jyc 4730 2月 23 11:23 ./ti-cal.mod.c
-rw-rw-r-- 1 jyc jyc 106975 1月 19 21:13 ./vip.c
-rw-rw-r-- 1 jyc jyc 30805 1月 19 21:13 ./vpdma.c
-rw-rw-r-- 1 jyc jyc 69397 1月 19 21:13 ./vpe.c

  • Hi yuenchao jia,

    Do you mean you want to capture from ub933-ub960 serdes? this is not supported on Linux. You need to use R5F drivers.

    Regards,

    Brijesh

  • hello,

    • Whether there is driver support and how to use it is manual

    • How to get User Guide

    Thanks

  • Hello,

    Yes, CSIRX driver is supported on R5F. 

    Please refer to vision apps user guide. It has many usecases which uses CSIRX module.

    Regards,

    Brijesh

  • hello,

    I refer to vision apps user guide, but I want to change code, found I change imaging code can not take effect 

      I  did the following

    1) I change rtos_sdk_dir/imaging/sensor_drv/src/iss_sensors.c   code , and add printf log , 

    and cd imaging

    make -j8

    2) I change rtos_sdk_dir/vision/apps/basic_demos/app_multi_cam/main_linux_arm.c code. and add printf log , 

    cd vision_apps
    make vision_apps -j8
    make tidl_rt -j8

    3) cat startup log: and 

    cd /opt/vision_apps
    source ./vision_apps_init.sh
    ./run_app_multi_cam.sh

    sudo cp out/J7/C66/SYSBIOS/release/*.out /media/root/rootfs/opt/vision_apps/
    sudo cp out/J7/A72/LINUX/release/*.out /media/root/rootfs/opt/vision_apps/
    sudo cp out/J7/R5F/SYSBIOS/release/*.out /media/root/rootfs/opt/vision_apps/
    sudo cp out/J7/C71/SYSBIOS/release/*.out /media/root/rootfs/opt/vision_apps/

    Log:

    root@j7-evm:/opt/vision_apps# ./run_app_multi_cam.sh
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    APP: Init ... Done !!!
    64.560022 s: VX_ZONE_INIT:Enabled
    64.560049 s: VX_ZONE_ERROR:Enabled
    64.560063 s: VX_ZONE_WARNING:Enabled
    64.566487 s: VX_ZONE_INIT:[tivxInit:71] Initialization Done !!!
    64.566641 s: VX_ZONE_INIT:[tivxHostInit:48] Initialization Done for HOST !!!
    64.567492 s: ISS: Enumerating sensors ... !!!
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---
    64.567930 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3
    64.567937 s: ISS: Enumerating sensors ... found 1 : AR0233-UB953_MARS
    64.567942 s: ISS: Enumerating sensors ... found 2 : AR0820-UB953_LI
    64.567946 s: ISS: Enumerating sensors ... found 3 : UB9xxx_RAW12_TESTPATTERN
    64.567950 s: ISS: Enumerating sensors ... found 4 : UB96x_UYVY_TESTPATTERN
    64.567955 s: ISS: Enumerating sensors ... found 5 : GW_AR0233_UYVY
    6 sensor(s) found
    Supported sensor list:
    a : IMX390-UB953_D3
    b : AR0233-UB953_MARS
    c : AR0820-UB953_LI
    d : UB9xxx_RAW12_TESTPATTERN
    e : UB96x_UYVY_TESTPATTERN
    f : GW_AR0233_UYVY
    Select a sensor
    [MCU2_0] 64.567629 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CREATE
    [MCU2_0] 64.567697 s: Sensor at index 0 = IMX390-UB953_D3
    [MCU2_0] 64.567728 s: Sensor at index 1 = AR0233-UB953_MARS
    [MCU2_0] 64.567775 s: Sensor at index 2 = AR0820-UB953_LI
    [MCU2_0] 64.567802 s: Sensor at index 3 = UB9xxx_RAW12_TESTPATTERN
    [MCU2_0] 64.567827 s: Sensor at index 4 = UB96x_UYVY_TESTPATTERN
    [MCU2_0] 64.567851 s: Sensor at index 5 = GW_AR0233_UYVY
    a

    Sensor selected : IMX390-UB953_D3
    Querying IMX390-UB953_D3
    67.075586 s: ISS: Querying sensor [IMX390-UB953_D3] ... !!!
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---
    67.075840 s: ISS: Querying sensor [IMX390-UB953_D3] ... Done !!!
    LDC Selection Yes(1)/No(0)
    Invalid selection
    . Try again
    LDC Selection Yes(1)/No(0)
    [MCU2_0] 67.075689 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_QUERY
    [MCU2_0] 67.075755 s: Received Query for IMX390-UB953_D3
    1
    Max number of cameras supported by sensor IMX390-UB953_D3 = 8
    Please enter number of cameras to be enabled
    Invalid selection
    . Try again
    Max number of cameras supported by sensor IMX390-UB953_D3 = 8
    Please enter number of cameras to be enabled
    4
    jyc123---apps/basic_demos/app_multi_cam/main.c
    jyc123---apps/basic_demos/app_multi_cam/main.c
    jyc123---apps/basic_demos/app_multi_cam/main.c
    jyc123---apps/basic_demos/app_multi_cam/main.c
    RAW Input selected. VISS, AEWB and Mosaic nodes will be bypassed.
    jyc-----func=app_multi_cam_main------line=614---
    jyc-----func=app_multi_cam_main------line=620---
    jyc-----func=app_init------line=702---
    modules/src/app_sensor_module.c
    jyc-----func=app_init_sensor------line=277---
    jyc-----func=appInitImageSensor------line=156---
    70.559902 s: ISS: Initializing sensor [IMX390-UB953_D3], doing IM_SENSOR_CMD_PWRON ... !!!
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---
    [MCU2_0] 70.560013 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_PWRON
    [MCU2_0] 70.560114 s: IM_SENSOR_CMD_PWRON : channel_mask = 0xf
    [MCU2_0] 70.560243 s: IMX390_PowerOn : chMask = 0xf
    [MCU2_0] 70.560285 s: ub960_cfgScript : ub960I2cAddr = 0x3d
    [MCU2_0] 70.560309 s: UB960 config start
    70.759697 s: ISS: Initializing sensor [IMX390-UB953_D3], doing IM_SENSOR_CMD_CONFIG ... !!!
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---
    [MCU2_0] 70.759577 s: End of UB960 config
    [MCU2_0] 70.759801 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CONFIG
    [MCU2_0] 70.759849 s: Application requested features = 0x158
    [MCU2_0]
    [MCU2_0] 70.759919 s: ub960_cfgScript : ub960I2cAddr = 0x3d
    [MCU2_0] 70.759953 s: UB960 config start
    [MCU2_0] 71.015492 s: End of UB960 config
    [MCU2_0] 71.015589 s: ub960_cfgScript : ub960I2cAddr = 0x36
    [MCU2_0] 71.015623 s: UB960 config start
    [MCU2_0] 71.271488 s: End of UB960 config
    [MCU2_0] 71.271541 s: Configuring camera # 0
    [MCU2_0] 71.271573 s: ub953 config start : slaveAddr = 0x74
    [MCU2_0] 71.461490 s: End of UB953 config
    [MCU2_0] 71.461586 s: Configuring IMX390 imager 0x40.. Please wait till it finishes
    [MCU2_0] 71.697471 s: IMX390 config done
    [MCU2_0] 71.697527 s: Configuring camera # 1
    [MCU2_0] 71.697557 s: ub953 config start : slaveAddr = 0x76
    [MCU2_0] 71.887486 s: End of UB953 config
    [MCU2_0] 71.887584 s: Configuring IMX390 imager 0x42.. Please wait till it finishes
    [MCU2_0] 72.123472 s: IMX390 config done
    [MCU2_0] 72.123532 s: Configuring camera # 2
    [MCU2_0] 72.123563 s: ub953 config start : slaveAddr = 0x78
    [MCU2_0] 72.313491 s: End of UB953 config
    [MCU2_0] 72.313582 s: Configuring IMX390 imager 0x44.. Please wait till it finishes
    [MCU2_0] 72.549469 s: IMX390 config done
    [MCU2_0] 72.549525 s: Configuring camera # 3
    [MCU2_0] 72.549555 s: ub953 config start : slaveAddr = 0x7a
    [MCU2_0] 72.739492 s: End of UB953 config
    [MCU2_0] 72.739603 s: Configuring IMX390 imager 0x46.. Please wait till it finishes
    72.975637 s: ISS: Initializing sensor [IMX390-UB953_D3] ... Done !!!
    [MCU2_0] 72.975472 s: IMX390 config done
    [MCU2_0] 72.975530 s: IM_SENSOR_CMD_CONFIG returning status = 0
    jyc-----func=app_multi_cam_main------line=625---
    jyc-----func=app_multi_cam_main------line=634---
    jyc-----func=app_multi_cam_main------line=646---
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=157---
    73.262461 s: ISS: Starting sensor [IMX390-UB953_D3] ... !!!
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---
    [MCU2_0] 73.262582 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_STREAM_ON
    [MCU2_0] 73.262656 s: IM_SENSOR_CMD_STREAM_ON: channel_mask = 0xf
    [MCU2_0] 73.262726 s: ub960_cfgScript : ub960I2cAddr = 0x3d
    [MCU2_0] 73.262757 s: UB960 config start
    [MCU2_0] 73.518490 s: End of UB960 config
    [MCU2_0] 73.518583 s: ub960_cfgScript : ub960I2cAddr = 0x36
    [MCU2_0] 73.518616 s: UB960 config start
    [MCU2_0] 73.774488 s: End of UB960 config
    [MCU2_0] 73.774545 s: Starting camera # 0
    [MCU2_0] 73.774595 s: Entering IssSensor_Start
    [MCU2_0] 73.784489 s: enableUB960Streaming ub960InstanceId = 0
    [MCU2_0] 73.784637 s: ub960_cfgScript : ub960I2cAddr = 0x3d
    [MCU2_0] 73.784667 s: UB960 config start
    [MCU2_0] 73.816487 s: End of UB960 config
    [MCU2_0] 73.816537 s: Starting camera # 1
    [MCU2_0] 73.816581 s: Entering IssSensor_Start
    [MCU2_0] 73.826488 s: enableUB960Streaming ub960InstanceId = 0
    [MCU2_0] 73.826634 s: ub960_cfgScript : ub960I2cAddr = 0x3d
    [MCU2_0] 73.826664 s: UB960 config start
    [MCU2_0] 73.858491 s: End of UB960 config
    [MCU2_0] 73.858545 s: Starting camera # 2
    [MCU2_0] 73.858592 s: Entering IssSensor_Start
    [MCU2_0] 73.868487 s: enableUB960Streaming ub960InstanceId = 0
    [MCU2_0] 73.868636 s: ub960_cfgScript : ub960I2cAddr = 0x3d
    [MCU2_0] 73.868667 s: UB960 config start
    [MCU2_0] 73.900487 s: End of UB960 config
    [MCU2_0] 73.900538 s: Starting camera # 3
    [MCU2_0] 73.900600 s: Entering IssSensor_Start
    [MCU2_0] 73.910486 s: enableUB960Streaming ub960InstanceId = 0
    [MCU2_0] 73.910629 s: ub960_cfgScript : ub960I2cAddr = 0x3d
    [MCU2_0] 73.910657 s: UB960 config start
    73.942616 s: ISS: Starting sensor [IMX390-UB953_D3] failed !!!
    jyc-----func=appRemoteServiceRun------line=207---
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=157---
    utils/remote_service/src/app_remote_service_linux.c
    jyc-----func=appRemoteServiceRun------line=141---
    jyc-----func=appRemoteServiceRun------line=166---
    jyc-----func=appRemoteServiceRun------line=207---


    =========================
    Demo : Camera Demo
    =========================

    s: Save CSIx, VISS and LDC outputs

    p: Print performance statistics

    x: Exit

    Enter Choice:

    I want to know  I change imaging/sensor_drv/src/iss_sensors.c  code  Why doesn't it take effect 

  • Hi,

    After changing code in imaging, please follow below commands for it to take effect.

    1, go to vision apps folder

    2, use make imaging to rebuild imaging libraries

    3 use make sdk to rebuild vision apps

    4, copy vision apps binaries to sd card using make linux_fs_install_sd command.

    Regards,

    Brijesh

  • If you still face issues, please do a scrub build in imaging

    make imaging_scrub

    make imaging

  • Hi,

    I have solved build question, but I use 960 + 933 device and set format=uyvy, have 4 camera, but Only one camera can be shown

    How to do use multi-cam usecase for uyvy sensors (4 Lanes)

  • Hi,

    I have solved build question, but I use 960 + 933 device and set format=uyvy, have 4 camera, but Only one camera can be shown

    How to do use multi-cam usecase for uyvy sensors (4 Lanes)

  • sdk version ti-processor-sdk-rtos-j721e-evm-07_02_00_06

  • mosaic view is not supported for UYVY format.

  • Hi,

    I want to know  use multi-cam usecase for 4 camera  capture , 960 + 933, and camera ISP no config for  so we need config 960 and  capture  format and some config, By DP display,  How to change  this support? (camera 1280x960  YUV422(uyvy  format))

  • Hi,

    You could probably add format conversion node to convert YUV422 (uyvy) format to YUV420 and then can use mosaic node to display all 4 channels/camera input.

    Regards,

    Brijesh

  • Hi,

    refer to The following connection

    https://e2e.ti.com/support/processors/f/processors-forum/931988/faq-how-to-run-multi-cam-usecase-for-yuv-sensors

    but my sdk version ti-processor-sdk-rtos-j721e-evm-07_02_00_06 , some code incompatible

    this patch  Can  solve my problem ?

  • Hi,

    Yes, you could refer to this patch and add LDC after capture for format conversion, then you could use mosaic node to view all 4 cameras on the display.

    Regards,

    Brijesh

  • hi,

     I refer to this patch , but I add log,  we  use modules/src/app_capture_module.c  code,

    however , patch change code apps/basic_demos/app_encode/app_capture_module.c

    refer to which how to change ?

  • Hi

    whether or not support sdk version ti-processor-sdk-rtos-j721e-evm-07_02_00_06 patch

    thanks

  • Hi, Ti all team

    • Who can help me solve the high level issue

    • Thank you very much
  • Hi,

    You need not change capture module.c file. You need to just insert LDC after capture module and then use mosaic to put them in single channel. 

    For inserting LDC module, please refer to this patch. This patch also inserts LDC module and then uses it to convert YUV422 to YUV420 format. 

    Regards,

    Brijesh

  • Hi

    • Please provide the latest patch

    • thank you very much
  • Hi

    I use run_app_multi_cam.sh, I can get capture  a frame 

    but display not clear, I want  to know  this error  Segmentation fault 

    root@j7-evm:/opt/vision_apps# ./run_app_multi_cam.sh
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    APP: Init ... Done !!!
    68.861357 s: VX_ZONE_INIT:Enabled
    68.861367 s: VX_ZONE_ERROR:Enabled
    68.861372 s: VX_ZONE_WARNING:Enabled
    68.861814 s: VX_ZONE_INIT:[tivxInit:71] Initialization Done !!!
    68.861981 s: VX_ZONE_INIT:[tivxHostInit:48] Initialization Done for HOST !!!
    68.862058 s: ISS: Enumerating sensors ... !!!
    68.862460 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3
    68.862467 s: ISS: Enumerating sensors ... found 1 : UB9xxx_RAW12_TESTPATTERN
    68.862472 s: ISS: Enumerating sensors ... found 2 : UB96x_UYVY_TESTPATTERN
    68.862477 s: ISS: Enumerating sensors ... found 3 : GW_AR0233_UYVY
    jyc---is_interactive=1---
    4 sensor(s) found
    Supported sensor list:
    a : IMX390-UB953_D3
    b : UB9xxx_RAW12_TESTPATTERN
    c : UB96x_UYVY_TESTPATTERN
    d : GW_AR0233_UYVY
    Select a sensor
    [MCU2_0] 68.862196 s: jyc---start---ImageSensor_RemoteServiceHandler----
    [MCU2_0] 68.862266 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CREATE
    [MCU2_0] 68.862301 s: Sensor at index 0 = IMX390-UB953_D3
    [MCU2_0] 68.862329 s: Sensor at index 1 = UB9xxx_RAW12_TESTPATTERN
    [MCU2_0] 68.862354 s: Sensor at index 2 = UB96x_UYVY_TESTPATTERN
    [MCU2_0] 68.862379 s: Sensor at index 3 = GW_AR0233_UYVY
    d

    Sensor selected : GW_AR0233_UYVY
    Querying GW_AR0233_UYVY
    70.423415 s: ISS: Querying sensor [GW_AR0233_UYVY] ... !!!
    70.423718 s: ISS: Querying sensor [GW_AR0233_UYVY] ... Done !!!
    LDC Selection Yes(1)/No(0)
    Invalid selection
    . Try again
    LDC Selection Yes(1)/No(0)
    [MCU2_0] 70.423535 s: jyc---start---ImageSensor_RemoteServiceHandler----
    [MCU2_0] 70.423604 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_QUERY
    [MCU2_0] 70.423638 s: Received Query for GW_AR0233_UYVY
    1
    Max number of cameras supported by sensor GW_AR0233_UYVY = 1
    Please enter number of cameras to be enabled
    Invalid selection
    . Try again
    Max number of cameras supported by sensor GW_AR0233_UYVY = 1
    Please enter number of cameras to be enabled
    1
    jyc----sensor_out_format=1----
    jyc---YUV Input selected. VISS, AEWB and Mosaic nodes will be bypassed.
    jyc---pwd---app_update_param_set----
    jyc---obj->sensorObj.image_width=1920---
    jyc---obj->sensorObj.image_height=1080---
    jyc---obj->sensorObj.image_width=1280---
    jyc---obj->sensorObj.image_height=960---
    jyc---resized_width=1440---
    jyc---resized_height=1080---
    jyc---num_cameras_enabled=1---
    jyc---app_init_sensor----
    jyc---sensorObj->num_cameras_enabled=1---
    jyc---sensorObj->image_width=1280---
    jyc---sensorObj->image_height=960---
    74.703520 s: ISS: Initializing sensor [GW_AR0233_UYVY], doing IM_SENSOR_CMD_PWRON ... !!!
    jyc---send cmd IM_SENSOR_CMD_PWRON----
    74.703880 s: ISS: Initializing sensor [GW_AR0233_UYVY], doing IM_SENSOR_CMD_CONFIG ... !!!
    jyc---send cmd IM_SENSOR_CMD_CONFIG----
    [MCU2_0] 74.703655 s: jyc---start---ImageSensor_RemoteServiceHandler----
    [MCU2_0] 74.703723 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_PWRON
    [MCU2_0] 74.703780 s: IM_SENSOR_CMD_PWRON : channel_mask = 0x1
    [MCU2_0] 74.703991 s: jyc---start---ImageSensor_RemoteServiceHandler----
    [MCU2_0] 74.704051 s: jyc---start IM_SENSOR_CMD_CONFIG---
    [MCU2_0] 74.704076 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CONFIG
    [MCU2_0] 74.704105 s: Application requested features = 0x120
    [MCU2_0]
    [MCU2_0] 74.704153 s: jyc---BOARD_CSI_INST_0----change i2c addr-----
    [MCU2_0] 74.704201 s: jyc---pdk_jacinto_07_01_05_14/packages/ti/board/src/devices/fpd/ds90ub960.c
    [MCU2_0] 74.704248 s: ub960_cfgScript : ub960I2cAddr = 0x30
    [MCU2_0] 74.704271 s: UB960 config start
    [MCU2_0] 74.960049 s: jyc----start-config UB960-----
    [MCU2_0] 74.960121 s: start config ------960----
    [MCU2_0] 74.964504 s: End of UB960 config
    [MCU2_0] 74.964562 s: jyc---BOARD_CSI_INST_0----change i2c addr-----
    [MCU2_0] 74.964605 s: ub960_cfgScript : ub960I2cAddr = 0x30
    [MCU2_0] 74.964629 s: UB960 config start
    [MCU2_0] 75.220044 s: jyc----start-config UB960-----
    [MCU2_0] 75.220114 s: start config ------960----
    [MCU2_0] 75.224506 s: End of UB960 config
    [MCU2_0] 75.224541 s: Configuring camera # 0
    [MCU2_0] 75.224590 s: jyc---BOARD_CSI_INST_0----change i2c addr-----
    [MCU2_0] 75.224639 s: jyc---pdk_jacinto_07_01_05_14/packages/ti/board/src/devices/fpd/ds90ub960.c
    [MCU2_0] 75.224686 s: ub960_cfgScript : ub960I2cAddr = 0x30
    [MCU2_0] 75.224711 s: UB960 config start
    [MCU2_0] 75.233046 s: jyc----start-config UB960-----
    [MCU2_0] 75.233112 s: start config ------960----
    [MCU2_0] 75.237504 s: End of UB960 config
    [MCU2_0] 75.237535 s: ub953 config start : slaveAddr = 0x0
    ./run_app_multi_cam.sh: line 1: 1129 Segmentation fault (core dumped) /opt/vision_apps/vx_app_multi_cam.out --cfg /opt/vision_apps/app_multi_cam.cfg
    root@j7-evm:/opt/vision_apps# [ 69.800997] virtio_rpmsg_bus virtio4: msg received with no recipient
    [MCU2_0] 75.764993 s: End of UB953 config
    [MCU2_0] 75.765062 s: IM_SENSOR_CMD_CONFIG returning status = 0
    [ 130.914349] Initializing XFRM netlink socket
    [ 133.100668] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
    [ 133.118004] Bridge firewalling registered

  • Hi,

    Could you please share your multi-cam usecase code?

    I will try to add support for LDC in it, then you could test it out.

    Rgds,

    Brijesh 

  • 5417.app_multi_cam.tar.gziss.tar.gzmodules.tar.gzsensor_drv.tar.gz

    I use  ti-processor-sdk-rtos-j721e-evm-07_02_00_06  src code, 

  • it seems zip file is not correct, Could you please zip again and share app_multi_cam folder?

    Rgds,

    Brijesh

  • Hi,

    Since your sensor outputs in YUV format, can you please make sure that 

    - obj->enable_viss flag is set to 0x0

    - obj->sensorObj.enable_ldc flag is set to 0x1 for YUV422 to YUV420 conversion

    - obj->enable_mosaic flag set to 1 to enable mosaic dispay.

    This should give mosaic display for multiple camera.

    Regards,

    Brijesh

  • Hi

    thank you very much this problem is resolved

    I want to know use  ./run_app_multi_cam.sh , camera capture and display in R5 to do or A72 to do

    if use A72 capture and display , Is there a test?

  • Hi,

    Sorry, did not get your question. 

    capture and display nodes both are running on R5F. but the OpenVX graph is running on A72. 

    Regards,

    Brijesh

  • Hi

    my camera format  resolution ratio 1280x960,  red  circle is 640x480, I want to display 方框1  content  data,  how to change code display  4  lane camera

    My:  log:

    root@j7-evm:/opt/vision_apps# ./run_app_multi_cam.sh
    APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    APP: Init ... Done !!!
    187.541831 s: VX_ZONE_INIT:Enabled
    187.541853 s: VX_ZONE_ERROR:Enabled
    187.541864 s: VX_ZONE_WARNING:Enabled
    187.542422 s: VX_ZONE_INIT:[tivxInit:71] Initialization Done !!!
    187.542572 s: VX_ZONE_INIT:[tivxHostInit:48] Initialization Done for HOST !!!
    187.545110 s: ISS: Enumerating sensors ... !!!
    187.545561 s: ISS: Enumerating sensors ... found 0 : IMX390-UB953_D3
    187.545567 s: ISS: Enumerating sensors ... found 1 : UB9xxx_RAW12_TESTPATTERN
    187.545572 s: ISS: Enumerating sensors ... found 2 : UB96x_UYVY_TESTPATTERN
    187.545576 s: ISS: Enumerating sensors ... found 3 : GW_AR0233_UYVY
    jyc---is_interactive=1---
    jyc----sensorObj->is_interactive == 1---
    4 sensor(s) found
    Supported sensor list:
    a : IMX390-UB953_D3
    b : UB9xxx_RAW12_TESTPATTERN
    c : UB96x_UYVY_TESTPATTERN
    d : GW_AR0233_UYVY
    Select a sensor
    [MCU2_0] 187.545262 s: jyc---start---ImageSensor_RemoteServiceHandler----
    [MCU2_0] 187.545339 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_CREATE
    [MCU2_0] 187.545375 s: Sensor at index 0 = IMX390-UB953_D3
    [MCU2_0] 187.545404 s: Sensor at index 1 = UB9xxx_RAW12_TESTPATTERN
    [MCU2_0] 187.545431 s: Sensor at index 2 = UB96x_UYVY_TESTPATTERN
    [MCU2_0] 187.545480 s: Sensor at index 3 = GW_AR0233_UYVY
    1

    Invalid selection 208. Try again
    4 sensor(s) found
    Supported sensor list:
    a : IMX390-UB953_D3
    b : UB9xxx_RAW12_TESTPATTERN
    c : UB96x_UYVY_TESTPATTERN
    d : GW_AR0233_UYVY
    Select a sensor

    Invalid selection 169. Try again
    4 sensor(s) found
    Supported sensor list:
    a : IMX390-UB953_D3
    b : UB9xxx_RAW12_TESTPATTERN
    c : UB96x_UYVY_TESTPATTERN
    d : GW_AR0233_UYVY
    Select a sensor
    4

    Invalid selection 211. Try again
    4 sensor(s) found
    Supported sensor list:
    a : IMX390-UB953_D3
    b : UB9xxx_RAW12_TESTPATTERN
    c : UB96x_UYVY_TESTPATTERN
    d : GW_AR0233_UYVY
    Select a sensor

    Invalid selection 169. Try again
    4 sensor(s) found
    Supported sensor list:
    a : IMX390-UB953_D3
    b : UB9xxx_RAW12_TESTPATTERN
    c : UB96x_UYVY_TESTPATTERN
    d : GW_AR0233_UYVY
    Select a sensor
    b

    Sensor selected : UB9xxx_RAW12_TESTPATTERN
    Querying UB9xxx_RAW12_TESTPATTERN
    193.257934 s: ISS: Querying sensor [UB9xxx_RAW12_TESTPATTERN] ... !!!
    193.258304 s: ISS: Querying sensor [UB9xxx_RAW12_TESTPATTERN] ... Done !!!
    jyc---sensorObj->sensor_out_format = 0---
    LDC Selection Yes(1)/No(0)
    Invalid selection
    . Try again
    LDC Selection Yes(1)/No(0)
    [MCU2_0] 193.258071 s: jyc---start---ImageSensor_RemoteServiceHandler----
    [MCU2_0] 193.258152 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_QUERY
    [MCU2_0] 193.258188 s: Received Query for UB9xxx_RAW12_TESTPATTERN
    1
    Max number of cameras supported by sensor UB9xxx_RAW12_TESTPATTERN = 4
    Please enter number of cameras to be enabled
    Invalid selection
    . Try again
    Max number of cameras supported by sensor UB9xxx_RAW12_TESTPATTERN = 4
    Please enter number of cameras to be enabled
    4
    Sensor width = 1280
    Sensor height = 960
    Sensor DCC ID = 9702
    Sensor Supported Features = 0x00000120
    Sensor Enabled Features = 0x00000120
    jyc----sensor_out_format=0----
    jyc---YUV Input selected. VISS, AEWB and Mosaic nodes will be bypassed.
    jyc---pwd---app_update_param_set----
    jyc---obj->sensorObj.image_width=1280---
    jyc---obj->sensorObj.image_height=960---
    jyc---
    jyc---obj->sensorObj.image_width=1280---
    jyc---obj->sensorObj.image_height=960---
    jyc---resized_width=1280---
    jyc---resized_height=960---
    jyc----numCh=4---
    jyc----grid_size=2---
    jyc----imgMosaicObj->params.windows[0].startX=0---
    jyc----imgMosaicObj->params.windows[0].startY=0---
    jyc----imgMosaicObj->params.windows[0].width=640
    jyc----imgMosaicObj->params.windows[0].height=480
    jyc----imgMosaicObj->params.windows[1].startX=640---
    jyc----imgMosaicObj->params.windows[1].startY=0---
    jyc----imgMosaicObj->params.windows[1].width=640
    jyc----imgMosaicObj->params.windows[1].height=480
    jyc----imgMosaicObj->params.windows[2].startX=0---
    jyc----imgMosaicObj->params.windows[2].startY=480---
    jyc----imgMosaicObj->params.windows[2].width=640
    jyc----imgMosaicObj->params.windows[2].height=480
    jyc----imgMosaicObj->params.windows[3].startX=640---
    jyc----imgMosaicObj->params.windows[3].startY=480---
    jyc----imgMosaicObj->params.windows[3].width=640
    jyc----imgMosaicObj->params.windows[3].height=480
    jyc---resized_width=1280---
    jyc---resized_height=960---
    jyc---num_cameras_enabled=4---
    jyc---app_init_sensor----
    jyc---sensorObj->num_cameras_enabled=4---
    jyc---sensorObj->image_width=1280---
    jyc---sensorObj->image_height=960---
    195.235026 s: ISS: Initializing sensor [UB9xxx_RAW12_TESTPATTERN], doing IM_SENSOR_CMD_PWRON ... !!!
    jyc---send cmd IM_SENSOR_CMD_PWRON----
    [MCU2_0] 195.235157 s: jyc---start---ImageSensor_RemoteServiceHandler----
    [MCU2_0] 195.235248 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_PWRON
    [MCU2_0] 195.235314 s: IM_SENSOR_CMD_PWRON : channel_mask = 0xf
    [MCU2_0] 195.235360 s: jyc---BOARD_CSI_INST_0----change i2c addr-----
    [MCU2_0] 195.235409 s: jyc---pdk_jacinto_07_01_05_14/packages/ti/board/src/devices/fpd/ds90ub960.c
    [MCU2_0] 195.235638 s: write 0xfe to TCA6408 register 0x3
    195.335437 s: ISS: ERROR: Initializing sensor [UB9xxx_RAW12_TESTPATTERN] failed !!!
    195.335443 s: ISS: Initializing sensor [UB9xxx_RAW12_TESTPATTERN] ... Done !!!
    Error initializing sensor UB9xxx_RAW12_TESTPATTERN
    jyc----1 == captureObj->capture_format--VX_DF_IMAGE_UYVY--
    jyc----sensorParams->sensorInfo.raw_params.width=1280---
    jyc----sensorParams->sensorInfo.raw_params.height=960---
    jyc----obj->sensorObj.enable_ldc == 1---
    [MCU2_0] 195.335269 s: Invalid channel ID 15
    [MCU2_0] 195.335334 s: rawtestpat_PowerOn : probe function returned 0xffffffff
    jyc---ldcObj->table_width=1920----ldcObj->table_height=1080---
    jyc----obj->enable_mosaic == 1----
    jyc---create_output_image---
    jyc---imgMosaicObj->out_width=1280---
    jyc---imgMosaicObj->out_height=960---
    jyc---app_init_display---displayObj->disp_params.outWidth=1920
    jyc---app_init_display---displayObj->disp_params.outHeight=1080
    jyc---app_init_display---displayObj->disp_params.outWidth=1280
    jyc---app_init_display---displayObj->disp_params.outHeight=960
    jyc---enabled------enable_ldc=1------
    jyc---enabled------enable_ldc=1------
    jyc---set---obj->enable_mosaic == 1----
    jyc---app_run_graph_interactive
    jyc----obj->test_mode===0---
    195.555812 s: ISS: Starting sensor [UB9xxx_RAW12_TESTPATTERN] ... !!!
    [MCU2_0] 195.556129 s: jyc---start---ImageSensor_RemoteServiceHandler----
    [MCU2_0] 195.556194 s: ImageSensor_RemoteServiceHandler: IM_SENSOR_CMD_STREAM_ON
    [MCU2_0] 195.556265 s: IM_SENSOR_CMD_STREAM_ON: channel_mask = 0xf
    [MCU2_0] 195.556325 s: jyc---BOARD_CSI_INST_0----change i2c addr-----
    [MCU2_0] 195.556375 s: jyc---pdk_jacinto_07_01_05_14/packages/ti/board/src/devices/fpd/ds90ub960.c
    [MCU2_0] 195.556422 s: ub960_cfgScript : ub960I2cAddr = 0x30
    [MCU2_0] 195.556447 s: UB960 config start
    [MCU2_0] 195.812343 s: jyc----start-config UB960-----
    [MCU2_0] 195.812417 s: start config ------960----
    [MCU2_0] 195.816820 s: End of UB960 config
    [MCU2_0] 195.816881 s: jyc---BOARD_CSI_INST_0----change i2c addr-----
    [MCU2_0] 195.816926 s: ub960_cfgScript : ub960I2cAddr = 0x30
    [MCU2_0] 195.816951 s: UB960 config start
    [MCU2_0] 195.923342 s: DHCP client timed out. Retrying.....
    [MCU2_0] 196.072349 s: jyc----start-config UB960-----
    [MCU2_0] 196.072424 s: start config ------960----
    [MCU2_0] 196.076822 s: End of UB960 config
    [MCU2_0] 196.076878 s: jyc---createPrms->num_channels=4----
    [MCU2_0] 196.076918 s: jyc---createPrms->num_channels=4----
    [MCU2_0] 196.076952 s: jyc---createPrms->num_channels=4----
    [MCU2_0] 196.076985 s: jyc---createPrms->num_channels=4----
    [MCU2_0] 196.077008 s: Starting camera # 0
    [MCU2_0] 196.077034 s: Entering IssSensor_Start
    [MCU2_0] 196.086253 s: jyc---BOARD_CSI_INST_0----change i2c addr-----
    [MCU2_0] 196.086330 s: jyc---pdk_jacinto_07_01_05_14/packages/ti/board/src/devices/fpd/ds90ub960.c
    [MCU2_0] 196.086388 s: ub960_cfgScript : ub960I2cAddr = 0x30
    [MCU2_0] 196.086413 s: UB960 config start
    [MCU2_0] 196.087353 s: jyc----start-config UB960-----
    [MCU2_0] 196.087407 s: start config ------960----
    [MCU2_0] 196.091801 s: End of UB960 config
    [MCU2_0] 196.091834 s: Starting camera # 1
    [MCU2_0] 196.091868 s: Entering IssSensor_Start
    [MCU2_0] 196.101249 s: jyc---BOARD_CSI_INST_0----change i2c addr-----
    [MCU2_0] 196.101325 s: jyc---pdk_jacinto_07_01_05_14/packages/ti/board/src/devices/fpd/ds90ub960.c
    [MCU2_0] 196.101377 s: ub960_cfgScript : ub960I2cAddr = 0x30
    [MCU2_0] 196.101400 s: UB960 config start
    [MCU2_0] 196.102346 s: jyc----start-config UB960-----
    [MCU2_0] 196.102399 s: start config ------960----
    [MCU2_0] 196.106794 s: End of UB960 config
    [MCU2_0] 196.106830 s: Starting camera # 2
    [MCU2_0] 196.106866 s: Entering IssSensor_Start
    [MCU2_0] 196.116248 s: jyc---BOARD_CSI_INST_0----change i2c addr-----
    [MCU2_0] 196.116321 s: jyc---pdk_jacinto_07_01_05_14/packages/ti/board/src/devices/fpd/ds90ub960.c
    [MCU2_0] 196.116376 s: ub960_cfgScript : ub960I2cAddr = 0x30
    [MCU2_0] 196.116400 s: UB960 config start
    [MCU2_0] 196.117349 s: jyc----start-config UB960-----
    [MCU2_0] 196.117401 s: start config ------960----
    [MCU2_0] 196.121801 s: End of UB960 config
    [MCU2_0] 196.121834 s: Starting camera # 3
    [MCU2_0] 196.121869 s: Entering IssSensor_Start
    196.136927 s: ISS: Starting sensor [UB9xxx_RAW12_TESTPATTERN] ... !!!


    =========================
    Demo : Camera Demo
    =========================

    s: Save CSIx, VISS and LDC outputs

    p: Print performance statistics

    x: Exit

    Enter Choice:


    =========================
    Demo : Camera Demo
    =========================

    s: Save CSIx, VISS and LDC outputs

    p: Print performance statistics

    x: Exit

    Enter Choice: [MCU2_0] 196.131251 s: jyc---BOARD_CSI_INST_0----change i2c addr-----
    [MCU2_0] 196.131334 s: jyc---pdk_jacinto_07_01_05_14/packages/ti/board/src/devices/fpd/ds90ub960.c
    [MCU2_0] 196.131388 s: ub960_cfgScript : ub960I2cAddr = 0x30
    [MCU2_0] 196.131413 s: UB960 config start
    [MCU2_0] 196.132350 s: jyc----start-config UB960-----
    [MCU2_0] 196.132403 s: start config ------960----
    [MCU2_0] 196.136808 s: End of UB960 config
    [MCU2_0] 363.924628 s: DHCP client timed out. Retrying.....
    [MCU2_0] 531.924531 s: DHCP client timed out. Retrying.....
    [MCU2_0] 699.925422 s: DHCP client timed out. Retrying.....
    [MCU2_0] 867.926361 s: DHCP client timed out. Retrying.....
    [MCU2_0] 1035.928520 s: DHCP client timed out. Retrying.....
    [MCU2_0] 1203.931418 s: DHCP client timed out. Retrying.....
    [MCU2_0] 1371.931564 s: DHCP client timed out. Retrying.....
    [MCU2_0] 1539.932475 s: DHCP client timed out. Retrying.....
    [MCU2_0] 1707.933842 s: DHCP client timed out. Retrying.....
    [MCU2_0] 1875.935414 s: DHCP client timed out. Retrying.....
    [MCU2_0] 2043.937588 s: DHCP client timed out. Retrying.....

  • Hi,

    Sorry, did not get your question, what do you mean by "I want to display 方框1  content  data,  how to change code display  4  lane camera"?

    It seems from the image, all 4 camera are able to capture, but not full image. Do you mean why they are not able to capture full image?

    Regards,

    Brijesh

  • HI

    yes,I want to konw  why they are not able to capture full image?

    thanks

  • Hi,

    can you please save one capture output and see if this is coming from capture? 

    I remember you were getting complete frame few days back. So wondering if frame is getting cropped due to addition of LDC. 

    Regards,

    Brijesh

  • thank you very much, I solved this issue  

  • Cool, please close the thread.

    Regards,

    Brijesh