Orin nano 使用max9295 + max9296 +imx390不出图

Hi NV_TEAM,
我之前用公司自己设计的底板+tx2 nx模块在jetpack4.5上调试max9295 + max9296 +imx390可以正常出图,但是相同的底板+orin nano模块使用相同配置在R35.3.1上却出不了图,下面是dmesg log:
[ 296.121773] imx390, imx390_g_input_status
[ 296.127392] imx390, imx390_power_on++
[ 296.127397] imx390, imx390_power_on–
[ 296.137148] bwmgr API not supported
[ 296.137797] imx390, imx390_s_stream, enable=1
[ 298.727804] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 298.736994] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 298.747371] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 298.755101] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 298.765768] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 298.773491] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 298.784373] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 301.547799] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 301.557002] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 301.567375] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 301.575101] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 301.585773] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 301.593533] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 301.604385] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 304.359820] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 304.369054] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 304.379703] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 304.387439] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 304.398111] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 304.405840] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 304.416690] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 307.175829] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 307.185005] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 307.195467] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 307.203218] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 307.213915] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 307.221655] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 307.232514] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 309.747803] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 309.756982] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 309.767502] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 309.775234] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 309.785916] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 309.793641] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 309.804617] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel

下面是trace.log # tracer: nop

entries-in-buffer/entries-written: 39/39 #P:6

_-----=> irqs-off

/ _----=> need-resched

| / _—=> hardirq/softirq

|| / _–=> preempt-depth

||| / delay

TASK-PID CPU# |||| TIMESTAMP FUNCTION

| | | |||| | |

    v4l2-ctl-11129   [003] ....   377.990208: tegra_channel_open: vi-output, zd_imx390 31-0036
    v4l2-ctl-11129   [003] ....   377.995551: tegra_channel_set_power: zd_imx390 31-0036 : 0x1
    v4l2-ctl-11129   [003] ....   377.995563: camera_common_s_power: status : 0x1
    v4l2-ctl-11129   [003] ....   377.995578: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x1
    v4l2-ctl-11129   [003] ....   377.995580: csi_s_power: enable : 0x1
    v4l2-ctl-11129   [003] ....   377.995969: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 13
    v4l2-ctl-11129   [003] ....   377.996730: tegra_channel_set_stream: enable : 0x1
    v4l2-ctl-11129   [003] ....   377.998131: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x1
    v4l2-ctl-11129   [003] ....   377.998134: csi_s_stream: enable : 0x1
    v4l2-ctl-11129   [003] ....   377.998539: tegra_channel_set_stream: zd_imx390 31-0036 : 0x1
 kworker/1:1-45      [001] ....   378.043793: rtcpu_vinotify_event: tstamp:12632042469 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:404214976928 data:0x719e300010000000
 kworker/1:1-45      [001] ....   378.043795: rtcpu_vinotify_event: tstamp:12632042760 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:404214986688 data:0x0000000031000001
 kworker/1:1-45      [001] ....   378.043795: rtcpu_vinotify_event: tstamp:12632043053 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:404215077760 data:0x719e2d0010000000
 kworker/1:1-45      [001] ....   378.043796: rtcpu_vinotify_event: tstamp:12632043299 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:404215087648 data:0x0000000031000002

vi-output, zd_i-11132 [002] … 380.704152: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 13
kworker/1:1-45 [001] … 380.727795: rtcpu_vinotify_event: tstamp:12716527468 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:406922589664 data:0x719e300010000000
kworker/1:1-45 [001] … 380.727796: rtcpu_vinotify_event: tstamp:12716527722 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:406922599424 data:0x0000000031000001
kworker/1:1-45 [001] … 380.727797: rtcpu_vinotify_event: tstamp:12716528010 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:406922683520 data:0x719e2d0010000000
kworker/1:1-45 [001] … 380.727797: rtcpu_vinotify_event: tstamp:12716528254 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:406922693440 data:0x0000000031000002
vi-output, zd_i-11132 [002] … 383.520343: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 13
kworker/1:1-45 [001] … 383.555800: rtcpu_vinotify_event: tstamp:12804418911 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:409738785632 data:0x719e300010000000
kworker/1:1-45 [001] … 383.555803: rtcpu_vinotify_event: tstamp:12804419164 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:409738795392 data:0x0000000031000001
kworker/1:1-45 [001] … 383.555803: rtcpu_vinotify_event: tstamp:12804419453 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:409738879488 data:0x719e2d0010000000
kworker/1:1-45 [001] … 383.555803: rtcpu_vinotify_event: tstamp:12804419698 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:409738889408 data:0x0000000031000002
vi-output, zd_i-11132 [002] … 386.336160: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 13
kworker/1:1-45 [001] … 386.359789: rtcpu_vinotify_event: tstamp:12892335474 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:412554596992 data:0x719e300010000000
kworker/1:1-45 [001] … 386.359791: rtcpu_vinotify_event: tstamp:12892335738 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:412554606752 data:0x0000000031000001
kworker/1:1-45 [001] … 386.359792: rtcpu_vinotify_event: tstamp:12892336030 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:412554683360 data:0x719e2d0010000000
kworker/1:1-45 [001] … 386.359792: rtcpu_vinotify_event: tstamp:12892336278 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:412554693312 data:0x0000000031000002
v4l2-ctl-11129 [004] … 386.804065: tegra_channel_close: vi-output, zd_imx390 31-0036
vi-output, zd_i-11132 [002] … 389.156357: tegra_channel_capture_setup: vnc_id 0 W 1920 H 1080 fmt 13
v4l2-ctl-11129 [003] … 389.166015: tegra_channel_set_stream: enable : 0x0
v4l2-ctl-11129 [003] … 389.166018: tegra_channel_set_stream: zd_imx390 31-0036 : 0x0
v4l2-ctl-11129 [003] … 389.166027: tegra_channel_set_stream: 13e40000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-11129 [003] .N… 389.166030: csi_s_stream: enable : 0x0
v4l2-ctl-11129 [000] … 389.169325: tegra_channel_set_power: zd_imx390 31-0036 : 0x0
v4l2-ctl-11129 [000] … 389.169334: camera_common_s_power: status : 0x0
v4l2-ctl-11129 [000] … 389.169337: tegra_channel_set_power: 13e40000.host1x:nvcsi@15a00000- : 0x0
v4l2-ctl-11129 [000] … 389.169339: csi_s_power: enable : 0

max9296用了4lane,输出图像格式1920x1080@30fps,请帮助我排查下原因。

hello a1ayin,

there’s no sensor related messages according to your VI tracing logs.
please see-also SerDes Pixel Clock, may I know is the output data-rate is larger than 1.5Gbps?

Hi jerry,
修改SerDes Pixel Clock为200000000后,用v4l-ctl命令可以抓到帧,但是用yuv工具查看画面是黑的。相同的载板,相同的配置用tx2 nx+jp4.6测试图像是正常的。请问orin nano和tx2 nx在camera这部分有啥差别吗?

as you can see in the SerDes Pixel Clock section, deskew calibration is a must if data-rate > 1.5 Gbps.
there’s bug fix in the JetPack 5.1.2 release to add deskew calibration support for high data-rate sensors.

ok, thanks!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.