The second Mipi camera doesn't work

Hi

We working on a customized carrier board. We use two mipi cameras for sony imx219, one connect to csi0 and the other on csi4, now video0 (csi0) work normal , The other one doesn’t work. does anyone tell me why? thanks

DISPLAY=:0.0 gst-launch-1.0 nvarguscamerasrc sensor-id=1 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! nvoverlaysink -ev
No protocol specified
nvbuf_utils: Could not get EGL display connection
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)20/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)20/1
/GstPipeline:pipeline0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)20/1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)3264, height=(int)2464, format=(string)NV12, framerate=(fraction)20/1
GST_ARGUS: Creating output stream
No protocol specified
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 3264 x 2464 FR = 21.000000 fps Duration = 47619048 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 3264 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings:
Camera index = 1
Camera mode  = 0
Output Stream W = 3264 H = 2464
seconds to Run    = 0
Frame Rate = 21.000000
GST_ARGUS: PowerService: requested_clock_Hz=35185920
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
^Chandling interrupt.
Interrupt: Stopping pipeline ...
EOS on shutdown enabled -- Forcing EOS on the pipeline
^C
test@test-desktop:~$ dmesg
imx219 7-0010: imx219_open:
imx219 8-0010: imx219_open:
imx219 7-0010: imx219_power_on: power on
imx219 7-0010: imx219_power_off: power off
imx219 8-0010: imx219_power_on: power on
imx219 8-0010: imx219_power_off: power off
imx219 7-0010: imx219_power_on: power on
imx219 7-0010: imx219_power_off: power off
imx219 8-0010: imx219_power_on: power on
imx219 8-0010: imx219_power_off: power off
imx219 7-0010: imx219_power_on: power on
imx219 7-0010: imx219_power_off: power off
imx219 8-0010: imx219_power_on: power on
imx219 8-0010: imx219_power_off: power off
imx219 7-0010: imx219_power_on: power on
imx219 7-0010: imx219_power_off: power off
imx219 8-0010: imx219_power_on: power on
imx219 8-0010: imx219_power_off: power off
imx219 7-0010: imx219_power_on: power on
imx219 7-0010: imx219_power_off: power off
imx219 8-0010: imx219_power_on: power on
imx219 8-0010: imx219_power_off: power off
imx219 8-0010: imx219_power_on: power on
imx219 8-0010: imx219_power_off: power off
imx219 7-0010: imx219_power_on: power on
imx219 7-0010: imx219_power_off: power off
imx219 7-0010: imx219_power_on: power on
imx219 7-0010: imx219_power_off: power off
imx219 7-0010: imx219_power_on: power on
imx219 7-0010: imx219_power_off: power off
imx219 8-0010: imx219_power_on: power on
imx219 8-0010: imx219_power_off: power off
imx219 8-0010: imx219_power_on: power on
imx219 8-0010: imx219_power_off: power off
imx219 8-0010: imx219_power_on: power on
imx219 8-0010: imx219_power_off: power off
imx219 8-0010: imx219_power_on: power on
imx219 8-0010: imx219_set_frame_rate: val: 21000000e-6 [fps], frame_length: 2519 [lines]
imx219 8-0010: imx219_set_frame_rate: val: 20000000e-6 [fps], frame_length: 2645 [lines]
imx219 8-0010: imx219_set_exposure: val: 33330 [us], coarse_time: 1763 [lines]
imx219 8-0010: imx219_set_gain: val: 16 (/16) [times], gain: 0
imx219 8-0010: imx219_set_exposure: val: 33330 [us], coarse_time: 1763 [lines]
imx219 8-0010: imx219_set_frame_rate: val: 20000000e-6 [fps], frame_length: 2645 [lines]
imx219 8-0010: imx219_set_frame_rate: val: 21000000e-6 [fps], frame_length: 2519 [lines]
imx219 8-0010: imx219_set_frame_rate: val: 20000000e-6 [fps], frame_length: 2645 [lines]
fence timeout on [ffffffc077fa80c0] after 1500ms
fence timeout on [ffffffc077fa8240] after 1500ms
name=[nvhost_sync:18], current value=0 waiting value=1
name=[nvhost_sync:19], current value=0 waiting value=1
---- mlocks ----
---- mlocks ----

[   85.027574] ---- syncpts ----
    [   85.027583] ---- syncpts ----
    [   85.027645] id 1 (disp0_a) min 208 max 208 refs 1 (previous client : )
    [   85.027692] id 2 (disp0_b) min 4 max 4 refs 1 (previous client : )
    [   85.027734] id 3 (disp0_c) min 4 max 4 refs 1 (previous client : )
    [   85.027776] id 4 (disp0_d) min 4 max 4 refs 1 (previous client : )
    [   85.027833] id 9 (gm20b_507) min 498 max 498 refs 1 (previous client : )
    [   85.027881] id 11 (gm20b_506) min 28 max 28 refs 1 (previous client : )
    [   85.027929] id 12 (gm20b_505) min 540 max 540 refs 1 (previous client : gm20b_505)
    [   85.027973] id 13 (gm20b_504) min 6 max 6 refs 1 (previous client : )
    [   85.028018] id 14 (gm20b_503) min 9710 max 9710 refs 1 (previous client : )
    [   85.028061] id 15 (gm20b_502) min 14 max 14 refs 1 (previous client : )
    [   85.028109] id 16 (gm20b_501) min 752 max 752 refs 1 (previous client : gm20b_501)
    [   85.028156] id 18 (54600000.isp_0) min 0 max 3 refs 4 (previous client : )
    [   85.028199] id 19 (54600000.isp_1) min 0 max 3 refs 4 (previous client : )
    [   85.028242] id 20 (54600000.isp_2) min 7 max 15 refs 10 (previous client : )
    [   85.028285] id 21 (54600000.isp_3) min 0 max 3 refs 4 (previous client : )
    [   85.028342] id 26 (vblank0) min 1521 max -8 refs 1 (previous client : )
    [   85.028389] id 28 (gm20b_500) min 686 max 686 refs 1 (previous client : )
    [   85.028432] id 29 (gm20b_499) min 2 max 2 refs 1 (previous client : )
    [   85.028474] id 30 (gm20b_498) min 2 max 2 refs 1 (previous client : )
    [   85.028516] id 31 (gm20b_497) min 2 max 2 refs 1 (previous client : )
    [   85.028561] id 32 (gm20b_496) min 4 max 4 refs 1 (previous client : )
    [   85.028604] id 33 (54080000.vi_0) min 0 max 3 refs 4 (previous client : 54080000.vi_0)
    [   85.028651] id 35 (54080000.vi_2) min 2 max 7 refs 7 (previous client : 54080000.vi_2)
    [   85.028700] id 38 (54080000.vi_4) min 0 max 3 refs 4 (previous client : 54080000.vi_4)
    [   85.028748] id 41 (gm20b_495) min 8 max 8 refs 1 (previous client : )
    [   85.028790] id 42 (gm20b_494) min 6 max 6 refs 1 (previous client : )
    [   85.028831] id 43 (gm20b_493) min 6 max 6 refs 1 (previous client : )
    [   85.028873] id 44 (gm20b_492) min 6 max 6 refs 1 (previous client : )
    [   85.028915] id 45 (gm20b_491) min 6 max 6 refs 1 (previous client : )
[   85.028957] id 46 (gm20b_490) min 6 max 6 refs 1 (previous client : )

    [   85.029438] ---- channels ----
    [   85.029449] id 1 (disp0_a) min 208 max 208 refs 1 (previous client : )
[   85.029482] id 2 (disp0_b) min 4 max 4 refs 1 (previous client : )
    [   85.029522]
    channel 0 - 54600000.isp

    [   85.029531] id 3 (disp0_c) min 4 max 4 refs 1 (previous client : )
[   85.029561] id 4 (disp0_d) min 4 max 4 refs 1 (previous client : )
    [   85.029613] 0-54600000.isp (18):
    [   85.029616] active class 01, offset 0050, val 00000012
        [   85.029633] id 9 (gm20b_507) min 498 max 498 refs 1 (previous client : )
    [   85.029666] dmAPUT 00000198, DMAGET 00000110, DMACTL 00000000
        [   85.029675] id 11 (gm20b_506) min 28 max 28 refs 1 (previous client : )
    [   85.029705] cbREAD 00000012, CBSTAT 00010050
    [   85.029714] id 12 (gm20b_505) min 540 max 540 refs 1 (previous client : gm20b_505)
        [   85.029749] id 13 (gm20b_504) min 6 max 6 refs 1 (previous client : )
        [   85.029779]
    ffffffc09cd08000: JOB, syncpt_id=18, syncpt_val=1, first_get=00000090, timeout=10000, num_slots=3, num_handles=1
    [   85.029794] id 14 (gm20b_503) min 9710 max 9710 refs 1 (previous client : )
    [   85.029827] id 15 (gm20b_502) min 14 max 14 refs 1 (previous client : )
        [   85.029875] id 16 (gm20b_501) min 752 max 752 refs 1 (previous client : gm20b_501)
        [   85.029886]     GATHER at ffde0000+4c48, 8 words
    [   85.029907] 20000001
        [   85.029933] id 18 (54600000.isp_0) min 0 max 3 refs 4 (previous client : )
        [   85.029942] 00000412
    [   85.029958] 20000001
        [   85.029985] id 19 (54600000.isp_1) min 0 max 3 refs 4 (previous client : )
        [   85.029993] 00000513
    [   85.030008] 20000001
        [   85.030035] id 20 (54600000.isp_2) min 7 max 15 refs 10 (previous client : )
        [   85.030044] 00000615
    [   85.030060] 200c0001
        [   85.030085] id 21 (54600000.isp_3) min 0 max 3 refs 4 (previous client : )
        [   85.030093] 00000005

        [   85.030157] id 26 (vblank0) min 1521 max -8 refs 1 (previous client : )
    [   85.030166]     GATHER at ffde0000+4c68, 2 words
    [   85.030184] 20000001
[   85.030213] id 28 (gm20b_500) min 686 max 686 refs 1 (previous client : )
    [   85.030220] 00000014

[   85.030272] id 29 (gm20b_499) min 2 max 2 refs 1 (previous client : )
[   85.030304] id 30 (gm20b_498) min 2 max 2 refs 1 (previous client : )
    [   85.030315]
    channel 1 - 54680000.isp
.....

You may need to check the port-index is correct as your HW design. And if everything is correct you may need HW guide to check.