Unable to capture RAW data with camera module

I tried to make a camera driver, but it doesn’t work.
I am getting logs like the attached.

[ 180.284816] nv_imx563: module verification failed: signature and/or required key missing - tainting kernel
[ 180.296195] imx563 9-001a: probing v4l2 sensor at addr 0x1a
[ 180.296986] imx563 9-001a: mclk name not present, assume sensor driven externally
[ 180.296989] imx563 9-001a: avdd, iovdd and/or dvdd reglrs. not present, assume sensor powered independently
[ 180.297105] imx563 9-001a: tegracam sensor driver:imx563_v2.0.6
[ 180.297108] imx563 9-001a: imx563_power_on: power on
[ 180.306662] imx563 9-001a: imx563_board_setup: error during i2c read probe (-121)
[ 180.314380] imx563 9-001a: imx563_power_off: power off
[ 180.314400] imx563 9-001a: board setup failed
[ 180.318958] imx563: probe of 9-001a failed with error -121
[ 180.324685] imx563 10-001a: probing v4l2 sensor at addr 0x1a
[ 180.325114] imx563 10-001a: mclk name not present, assume sensor driven externally
[ 180.325118] imx563 10-001a: avdd, iovdd and/or dvdd reglrs. not present, assume sensor powered independently
[ 180.325166] imx563 10-001a: tegracam sensor driver:imx563_v2.0.6
[ 180.325168] imx563 10-001a: imx563_power_on: power on
[ 180.334548] imx563 10-001a: imx563_power_off: power off
[ 180.334635] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx563 10-001a bound
[ 180.335570] imx563 10-001a: detected imx563 sensor
[ 180.439945] imx563 10-001a: imx563_open:
[ 399.977871] imx563 10-001a: imx563_power_on: power on
[ 399.999157] bwmgr API not supported
[ 400.008446] imx563 10-001a: imx563_set_mode:
[ 400.031383] imx563 10-001a: imx563_start_streaming:
[ 402.657371] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 402.666518] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 402.676483] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 402.684204] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 402.694861] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 402.702585] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 402.713615] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 405.472634] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 405.481787] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 405.492509] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 405.500223] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 405.510861] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 405.518574] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 405.529403] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 405.538931] imx563 10-001a: imx563_stop_streaming:
[ 405.542769] bwmgr API not supported
[ 405.552504] imx563 10-001a: imx563_power_off: power off
[ 499.332345] NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x731341 result 0xffff:
[ 499.960255] NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x731341 result 0xffff:
[ 510.311302] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx563 10-001a unbind
[ 510.311380] imx563 10-001a: free reset_gpio
[ 516.058311] imx563 9-001a: probing v4l2 sensor at addr 0x1a
[ 516.059026] imx563 9-001a: mclk name not present, assume sensor driven externally
[ 516.059030] imx563 9-001a: avdd, iovdd and/or dvdd reglrs. not present, assume sensor powered independently
[ 516.059039] imx563 9-001a: imx563_power_get: unable to request reset_gpio (-16)
[ 516.066667] imx563 9-001a: unable to power get
[ 516.071260] imx563 9-001a: tegra camera driver registration failed
[ 516.077758] imx563: probe of 9-001a failed with error -14
[ 516.083444] imx563 10-001a: probing v4l2 sensor at addr 0x1a
[ 516.083830] imx563 10-001a: mclk name not present, assume sensor driven externally
[ 516.083833] imx563 10-001a: avdd, iovdd and/or dvdd reglrs. not present, assume sensor powered independently
[ 516.083945] imx563 10-001a: tegracam sensor driver:imx563_v2.0.6
[ 516.083949] imx563 10-001a: imx563_power_on: power on
[ 516.092485] imx563 10-001a: imx563_power_off: power off
[ 516.092577] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx563 10-001a bound
[ 516.093319] imx563 10-001a: detected imx563 sensor
[ 516.102067] imx563 10-001a: imx563_open:
[ 516.114091] imx563 10-001a: imx563_open:
[ 521.362332] imx563 10-001a: imx563_power_on: power on
[ 521.385972] bwmgr API not supported
[ 521.396966] imx563 10-001a: imx563_set_mode:
[ 521.420311] imx563 10-001a: imx563_start_streaming:
[ 523.999999] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 524.009150] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 524.019489] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 524.027209] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 524.037884] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 524.045607] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 524.056415] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 526.815983] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 526.825135] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 526.835479] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 526.843201] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 526.853864] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 526.861580] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 526.872422] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 529.488963] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 529.498108] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 529.508696] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 529.516406] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 529.527081] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 529.534804] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 529.545659] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 529.555197] imx563 10-001a: imx563_stop_streaming:
[ 529.559059] bwmgr API not supported
[ 529.567509] imx563 10-001a: imx563_power_off: power off
[ 6105.346437] NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x731341 result 0xffff:
[ 6105.972526] NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x731341 result 0xffff:
[ 6580.206124] NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x731341 result 0xffff:
[ 6580.829243] NVRM rpcRmApiControl_dce: NVRM_RPC_DCE: Failed RM ctrl call cmd:0x731341 result 0xffff:
[ 6637.560430] imx563 10-001a: imx563_power_on: power on
[ 6637.574725] bwmgr API not supported
[ 6637.584271] imx563 10-001a: imx563_set_mode:
[ 6637.606663] imx563 10-001a: imx563_start_streaming:
[ 6640.209370] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 6640.218546] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 6640.228567] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 6640.236331] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 6640.247022] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 6640.254831] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 6640.265709] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 6643.024910] tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms
[ 6643.034072] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
[ 6643.044502] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 6643.052274] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=2, csi_port=2
[ 6643.063151] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 6643.070963] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 2 vc- 0
[ 6643.082028] tegra-camrtc-capture-vi tegra-capture-vi: err_rec: successfully reset the capture channel
[ 6643.091652] imx563 10-001a: imx563_stop_streaming:
[ 6643.096236] bwmgr API not supported
[ 6643.106355] imx563 10-001a: imx563_power_off: power off
[ 6783.299594] imx563 10-001a: imx563_open:

=======================================================================================
kworker/2:9-143 [002] … 6637.589044: rtcpu_vinotify_event: tstamp:208370643329 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:6667845235328 data:0x399e300010000000
kworker/2:9-143 [002] … 6637.589047: rtcpu_vinotify_event: tstamp:208370643591 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:6667845245056 data:0x0000000031000001
kworker/2:9-143 [002] … 6637.589048: rtcpu_vinotify_event: tstamp:208370643879 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:6667845343616 data:0x399e2d0010000000
kworker/2:9-143 [002] … 6637.589048: rtcpu_vinotify_event: tstamp:208370644128 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:6667845353472 data:0x0000000031000002
kworker/2:9-143 [002] … 6640.280973: rtcpu_vinotify_event: tstamp:208454736450 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:6670540426304 data:0x399e300010000000
kworker/2:9-143 [002] … 6640.280977: rtcpu_vinotify_event: tstamp:208454736711 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:6670540483904 data:0x0000000031000001
kworker/2:9-143 [002] … 6640.280977: rtcpu_vinotify_event: tstamp:208454737000 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:6670540501504 data:0x399e2d0010000000
kworker/2:9-143 [002] … 6640.280978: rtcpu_vinotify_event: tstamp:208454737245 cch:0 vi:1 tag:VIFALC_TDSTATE channel:0x23 frame:0 vi_tstamp:6670540561920 data:0x0000000031000002
kworker/2:9-143 [002] … 6648.832761: rtcpu_string: tstamp:208720601142 id:0x04010000 str:“VM0 deactivating.”

I’ve done a lot of research and verification, but I’m stuck.
Any help would be appreciated.
dmesg.txt (81.1 KB)
log.txt (2.0 KB)

The trace log tell didn’t receive any validate data from sensor.
That could be device tree configure or HW problem.
I would suggest to probe the MIPI signal of sensor output.

Thanks

Hi! ShaneCCC!

Thanks for your reply.
I will probe the MIPI signal of sensor output.
And If the device tree is the cause, what is suspicious about it?

If the port-index/bus-width incorrect the log could shows no thing.

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