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.

TDA4VEN-Q1: Failed to lock all RX ports

Part Number: TDA4VEN-Q1


Tool/software:

Hi, I added two .dbto (fusion board and imx390) into uEnv.txt and reboot. Then, run `apps_cpp/bin/Release/app_edgeai configs/imx390_cam_example.yaml` and it reports

root@j722s-evm:/opt/edgeai-gst-apps# apps_cpp/bin/Release/app_edgeai configs/imx390_cam_example.yaml
libtidl_onnxrt_EP loaded 0x2e0d9610 
Final number of subgraphs created are : 1, - Offloaded Nodes - 283, Total Nodes - 283 
APP: Init ... !!!
   138.458833 s: MEM: Init ... !!!
   138.458925 s: MEM: Initialized DMA HEAP (fd=5) !!!
   138.459185 s: MEM: Init ... Done !!!
   138.459217 s: IPC: Init ... !!!
   138.525037 s: IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
   138.533530 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
   138.533820 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
   138.533862 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
   138.533872 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
   138.535876 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0 
   138.536538 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1 
   138.536959 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2 
   138.538131 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3 
   138.538255 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
   138.538324 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
[15:00:00.000.000000]:ERROR:[addGstPipeline:0256] Invalid source.
[15:00:00.000.000135]:ERROR:[initialize:2246] addGstPipeline() failed.
Segmentation fault (core dumped)
root@j722s-evm:/opt/edgeai-gst-apps#

root@j722s-evm:/opt/edgeai-gst-apps# dmesg | grep ds90
[    8.327960] ds90ub960 5-0036: supply vddio not found, using dummy regulator
[    8.356684] ds90ub960 5-0036: ub960_write: cannot write register 0x01 (-121)!
[    8.372234] ds90ub960 5-0036: reset failed: -121
[    8.372360] ds90ub960 5-0036: ub960_read: cannot read register 0x03 (-121)!
[    8.372372] ds90ub960 5-0036: error -EREMOTEIO: Cannot read first register, abort
[    8.382710] ds90ub960: probe of 5-0036 failed with error -121
[    8.399102] ds90ub960 5-003d: supply vddio not found, using dummy regulator
[    8.518177] ds90ub960 5-003d: Fixed dependency cycle(s) with /bus@f0000/ticsi2rx@30102000/csi-bridge@30101000
[    9.534897] ds90ub960 5-003d: error -EIO: Failed to lock all RX ports
[    9.551036] ds90ub960: probe of 5-003d failed with error -5

I use ds90ub954 and connect a jumper to IDX to select the 0x3d i2c address. I also try to hard reset after booting `i2cset -y 7 0x3d 0x01 0x03` but it doesn't work either. I am sure the board is on the right i2c bus and the .dtbo takes effect but ./init_script.sh shows nothing.

Is this fusion board broken or just I miss something? If I change to ds90ub960, it stuck at:

root@j722s-evm:/opt/edgeai-gst-apps# ./apps_cpp/bin/Release/app_edgeai configs/imx390_cam_example.yaml
libtidl_onnxrt_EP loaded 0x1fe63f50 
Final number of subgraphs created are : 1, - Offloaded Nodes - 283, Total Nodes - 283 
APP: Init ... !!!
    77.363299 s: MEM: Init ... !!!
    77.363415 s: MEM: Initialized DMA HEAP (fd=5) !!!
    77.363767 s: MEM: Init ... Done !!!
    77.363803 s: IPC: Init ... !!!
    77.430531 s: IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
    77.439949 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
    77.445049 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
    77.445127 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
    77.445140 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
    77.448761 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0 
    77.449211 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1 
    77.449468 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2 
    77.450118 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3 
    77.450161 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
    77.450211 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
graph
==========[INPUT PIPELINE(S)]==========

[PIPE-0]

v4l2src device=/dev/video-imx390-cam0 io-mode=5 ! queue leaky=2 ! capsfilter caps="video/x-bayer, width=(int)1936, height=(int)1100, format=(string)rggb12;" ! tiovxisp dcc-isp-file=/opt/imaging/imx390/linear/dcc_viss.bin sensor-name=SENSOR_SONY_IMX390_UB953_D3 format-msb=11 ! capsfilter caps="video/x-raw, format=(string)NV12;" ! tiovxmultiscaler name=multiscaler_split_00
multiscaler_split_00. ! queue ! capsfilter caps="video/x-raw, width=(int)484, height=(int)416;" ! tiovxmultiscaler target=1 ! capsfilter caps="video/x-raw, width=(int)416, height=(int)416;" ! tiovxdlpreproc out-pool-size=4 data-type=3 tensor-format=1 ! capsfilter caps="application/x-tensor-tiovx;" ! appsink max-buffers=2 drop=true name=flow0_pre_proc0
multiscaler_split_00. ! queue ! capsfilter caps="video/x-raw, width=(int)1280, height=(int)720;" ! tiovxdlcolorconvert out-pool-size=4 ! capsfilter caps="video/x-raw, format=(string)RGB;" ! appsink max-buffers=2 drop=true name=flow0_sensor0

==========[OUTPUT PIPELINE]==========

appsrc do-timestamp=true format=3 block=true name=flow0_post_proc0 ! tiovxdlcolorconvert ! capsfilter caps="video/x-raw, width=(int)1280, height=(int)720, format=(string)NV12;" ! queue ! mosaic0.sink0

tiovxmosaic target=1 background=/tmp/background0 name=mosaic0 src::pool-size=4
sink_0::startx="<320>" sink_0::starty="<150>" sink_0::widths="<1280>" sink_0::heights="<720>"
! capsfilter caps="video/x-raw, format=(string)NV12, width=(int)1920, height=(int)1080;" ! queue ! tiperfoverlay title=IMX390 Camera ! kmssink sync=false max-lateness=5000000 qos=true processing-deadline=15000000 driver-name=tidss connector-id=40 plane-id=31 force-modesetting=true fd=42

[17:45:14.000.000000]:ERROR:[getBuffer:0233] [flow0_pre_proc0] Could not get data from Gstreamer appsink.

Regards

  • Hi Meng-Hung Chen,

    Can you please make sure you have connected the camera to port 0
    Also can you please share the exact dtbo names you have added in uEnv.txt

    Regards
    Rahul T R

  • Hi, I connect to the port of ub960 with label sticker 1 (there are 1, 2, 3, 4), and the modified content of uEnv.txt is:

    name_overlays=ti/k3-j722s-vision-apps.dtbo ti/k3-j722s-evm-fpdlink-fusion.dtbo ti/k3-fpdlink-imx390-rcm-0-0.dtbo

    Regards

  • Hi Meng-Hung Chen,

    Seems like you are using ADAS SDK,
    IN ADAS SDK capture is enabled in R5F and disabled in linux

    Please use EDGEAI SDK
    PROCESSOR-SDK-LINUX-AM67A Software development kit (SDK) | TI.com

    Regards
    Rahul T R

  • Hi, ub960 works fine after reinstalling EDGEAI SDK, but ub954 still complains:

    root@j722s-evm:/opt/edgeai-gst-apps# dmesg | grep ds90
    [    8.327960] ds90ub960 5-0036: supply vddio not found, using dummy regulator
    [    8.356684] ds90ub960 5-0036: ub960_write: cannot write register 0x01 (-121)!
    [    8.372234] ds90ub960 5-0036: reset failed: -121
    [    8.372360] ds90ub960 5-0036: ub960_read: cannot read register 0x03 (-121)!
    [    8.372372] ds90ub960 5-0036: error -EREMOTEIO: Cannot read first register, abort
    [    8.382710] ds90ub960: probe of 5-0036 failed with error -121
    [    8.399102] ds90ub960 5-003d: supply vddio not found, using dummy regulator
    [    8.518177] ds90ub960 5-003d: Fixed dependency cycle(s) with /bus@f0000/ticsi2rx@30102000/csi-bridge@30101000
    [    9.534897] ds90ub960 5-003d: error -EIO: Failed to lock all RX ports
    [    9.551036] ds90ub960: probe of 5-003d failed with error -5

    Regards

  • Hi Meng-Hung Chen,

    Which version of imx390 cameras are you using?
    There is cm and rcm, we have dtbos for both

    I see you are applying rcm ones, can you please once try with cm dtbos

    Regards
    Rahul T R