I have a UYVY mipi camra, which support 400w(25601440) and 500w(25921944). 400w mode has been tuned through, but 500w mode is failing. Here is my information, please give me some ideas to solve the problem, thank you!
dts
mode0 { /* CAM_MODE_2592x1944_20FPS */
mclk_khz = “24000”;
num_lanes = “2”;
tegra_sinterface = “serial_c”;
phy_mode = “DPHY”;
discontinuous_clk = “yes”;
dpcm_enable = “false”;
cil_settletime = “0”;
active_w = "2592";
active_h = "1944";
pixel_t = "yuv_uyvy16";
readout_orientation = "0";
line_length = "3000";
inherent_gain = "1";
mclk_multiplier = "2";
pix_clk_hz = "148500000";
gain_factor = "16";
framerate_factor = "1000000";
exposure_factor = "1000000";
min_gain_val = "16"; /* 1.00x */
max_gain_val = "170"; /* 10.66x */
step_gain_val = "1";
default_gain = "16"; /* 1.00x */
min_hdr_ratio = "1";
max_hdr_ratio = "1";
min_framerate = "20000000"; /* 20 fps */
max_framerate = "20000000"; /* 20 fps */
step_framerate = "1";
default_framerate = "20000000"; /* 20 fps */
min_exp_time = "13"; /* us */
max_exp_time = "333333"; /* us */
step_exp_time = "1";
default_exp_time = "2495"; /* us */
embedded_metadata_height = "0";
};
pipline
gst-launch-1.0 nvv4l2camerasrc device=/dev/video0 ! "video/x-raw(memory:NVMM),format=(string)UYVY, width=(int)2592, height=(int)1944,framerate=20/1" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nvoverlaysink sync=false
dmesg err
[ 2411.355075] [RCE] Configuring VI GoS.
[ 2411.355086] [RCE] VM GOS[#0] addr=0xc2100000
[ 2411.355095] [RCE] VM GOS[#1] addr=0xc2101000
[ 2411.355103] [RCE] VM GOS[#2] addr=0xc2102000
[ 2411.355110] [RCE] VM GOS[#3] addr=0xc2103000
[ 2411.355118] [RCE] VM GOS[#4] addr=0xc2104000
[ 2411.355126] [RCE] VM GOS[#5] addr=0xc2105000
[ 2411.370665] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1, flags: 32, err_data 162
[ 2411.400670] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1, flags: 32, err_data 162
[ 2411.421892] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1, flags: 0, err_data 131072
[ 2411.545248] cam_set_mode 684
[ 2411.786314] cam_start_streaming 704
[ 2412.979319] tegra194-vi5 15c10000.vi: corr_err: discarding frame 1, flags: 0, err_data 131072
trace err
Following this guide,Jetson/l4t/Camera BringUp - eLinux.org
There are 3 condtions:
- jetosn board crash and reboot. By the way, I use Jetpack4.6 rev2.
- trace infomation looks fine, but no video turns out.
kworker/0:2-10035 [000] .... 2423.338859: rtcpu_vinotify_event: tstamp:76121172315 tag:ATOMP_FE channel:0x00 frame:1 vi_tstamp:76120847343 data:0x00000000
kworker/0:2-10035 [000] .... 2423.338859: rtcpu_vinotify_event: tstamp:76121172462 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:77930078752 data:0x00020127
kworker/0:2-10035 [000] .... 2423.338860: rtcpu_vinotify_event: tstamp:76121172624 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:77930084448 data:0x07020128
kworker/0:2-10035 [000] .... 2423.338860: rtcpu_vinotify_event: tstamp:76121172759 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:77930299008 data:0x10000000
kworker/0:2-10035 [000] .... 2423.338861: rtcpu_vinotify_event: tstamp:76121172916 tag:RESERVED_18 channel:0x23 frame:0 vi_tstamp:77930307264 data:0x31000129
kworker/0:2-10035 [000] .... 2423.338861: rtcpu_vinotify_event: tstamp:76121173052 tag:FS channel:0x00 frame:1 vi_tstamp:76120897627 data:0x00000012
kworker/0:2-10035 [000] .... 2423.338862: rtcpu_vinotify_event: tstamp:76121173213 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:76120897627 data:0x00000000
kworker/0:2-10035 [000] .... 2423.338862: rtcpu_vinotify_event: tstamp:76121173350 tag:CHANSEL_PXL_SOF channel:0x23 frame:1 vi_tstamp:76120897689 data:0x00000001
kworker/0:2-10035 [000] .... 2423.338862: rtcpu_vinotify_event: tstamp:76121173507 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:77931682848 data:0x08020128
kworker/0:2-10035 [000] .... 2423.338863: rtcpu_vinotify_event: tstamp:76122098903 tag:CHANSEL_PXL_EOF channel:0x23 frame:1 vi_tstamp:76122097332 data:0x059f0002
kworker/0:2-10035 [000] .... 2423.338863: rtcpu_vinotify_event: tstamp:76122099069 tag:ATOMP_FRAME_DONE channel:0x23 frame:1 vi_tstamp:76122097347 data:0x00000000
kworker/0:2-10035 [000] .... 2423.338864: rtcpu_vinotify_event: tstamp:76122099211 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:77970071072 data:0x02020128
kworker/0:2-10035 [000] .... 2423.338864: rtcpu_vinotify_event: tstamp:76122099368 tag:FE channel:0x00 frame:1 vi_tstamp:76122097348 data:0x00000022
- Looks like Line start code mismatch?
kworker/0:0-10237 [000] .... 2922.217851: rtcpu_vinotify_event: tstamp:91712352395 tag:CHANSEL_NOMATCH channel:0x04 frame:1 vi_tstamp:91712122473 data:0x000003c9
kworker/0:0-10237 [000] .... 2922.273840: rtcpu_vinotify_error: tstamp:91713685826 tag:CHANSEL_NOMATCH channel:0x04 frame:1 vi_tstamp:91713684979 data:0x000003c9
queue:0x0bcbbbb8