Hi,
I am in the process of porting a (working) driver from 4.4 (28.2.1) to 4.9(32.4.3) for the ov5640
It is already in a good shape, the devicetree modifications are done, the driver modifications are done
i have 2 variants of the driver types v1.0 and 2.0, they both deliver the same results.
There is also a tc358748 in the system, this driver is working and is type v1.0.
However, the csi reports errors, which i do not know how to read.
Can someone help me out how to read/decode the csi errors/logs (below) ?
command used to run:
gst-launch-1.0 nvv4l2camerasrc device=${CURRENT_DEV} ! video/x-raw,width=640,height=480 ! nvvidconv !
filesink location=bla
output:
[ 17.093426] tc358748 8-000e: tc358748_open:
[ 17.097990] ov5640 2-003c: ov5640_open
[ 17.105094] tc358748 8-000e: tc358748_power_on
[ 17.109568] tc358748 8-000e: tc358748_write_table
[ 17.116004] tc358748 8-000e: tc358748_i2c_read
[ 17.120672] tc358748 8-000e: chipID=0x4401.
[ 17.125370] tc358748 8-000e: tc358748_power_off
[ 17.134291] ov5640 2-003c: ov5640_power_on: power on
[ 17.144607] ov5640 2-003c: ov5640_i2c_read
[ 17.148887] ov5640 2-003c: ov5640_i2c_read
[ 17.153167] ov5640 2-003c: chipID=0x5640.
[ 17.157216] ov5640 2-003c: ov5640_power_off
[ 17.219246] tc358748 8-000e: tc358748_open:
[ 17.223753] ov5640 2-003c: ov5640_open
[ 17.227723] tc358748 8-000e: tc358748_power_on
[ 17.232197] tc358748 8-000e: tc358748_write_table
[ 17.238154] tc358748 8-000e: tc358748_i2c_read
[ 17.242804] tc358748 8-000e: chipID=0x4401.
[ 17.247170] tc358748 8-000e: tc358748_power_off
[ 17.252364] ov5640 2-003c: ov5640_power_on: power on
[ 17.262714] ov5640 2-003c: ov5640_i2c_read
[ 17.267065] ov5640 2-003c: ov5640_i2c_read
[ 17.271449] ov5640 2-003c: chipID=0x5640.
[ 17.275502] ov5640 2-003c: ov5640_power_off
[ 17.298245] mods: driver opened
Setting pipeline to PAUSED …
[ 17.318834] ov5640 2-003c: ov5640_power_on: power on
[ 17.331215] ov5640 2-003c: ov5640_i2c_read
[ 17.335512] ov5640 2-003c: ov5640_i2c_read
[ 17.339840] ov5640 2-003c: chipID=0x5640.
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
[ 17.349452] ov5640 2-003c: ov5640_set_mode mode 0
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, framerate=(fraction)15/1, format=(string)UYVY, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)640, height=(int)480, framerate=(fraction)15/1, format=(string)UYVY, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:src: caps = video/x-raw(memory:NVMM), width=(int)640, height=(int)480, framerate=(fraction)15/1, interlace-mode=(string)progressive, format=(string)UYVY
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-raw(memory:NVMM), width=(int)640, height=(int)480, framerate=(fraction)15/1, interlace-mode=(string)progressive, format=(string)UYVY
/GstPipeline:pipeline0/Gstnvvconv:nvvconv0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, framerate=(fraction)15/1, format=(string)UYVY, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)640, height=(int)480, framerate=(fraction)15/1, format=(string)UYVY, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
[ 17.427861] ov5640 2-003c: ov5640_start_streaming
[ 17.435856] ov5640 2-003c: ov5640_i2c_read
[ 17.442849] ov5640 2-003c: ov5640_i2c_read
[ 17.450473] ov5640 2-003c: REG_SYSTEM_RESET02 0x1c00
[ 17.458763] ov5640 2-003c: ov5640_i2c_read
[ 17.465812] ov5640 2-003c: ov5640_i2c_read
[ 17.473297] ov5640 2-003c: REG_SYSTEM_RESET03 0x00cf
[ 17.481485] ov5640 2-003c: ov5640_i2c_read
[ 17.487830] ov5640 2-003c: ov5640_i2c_read
[ 17.495408] ov5640 2-003c: REG_SYSTEM_CTROL0 0x4201
[ 17.504216] ov5640 2-003c: ov5640_i2c_read
[ 17.511480] ov5640 2-003c: ov5640_i2c_read
[ 17.518872] ov5640 2-003c: REG_SYSTEM_RESET02 0x1c01
[ 17.527115] ov5640 2-003c: ov5640_i2c_read
[ 17.533189] ov5640 2-003c: ov5640_i2c_read
[ 17.537461] ov5640 2-003c: REG_SYSTEM_RESET03 0x01cf
[ 17.542474] ov5640 2-003c: ov5640_i2c_read
[ 17.546941] ov5640 2-003c: ov5640_i2c_read
[ 17.551361] ov5640 2-003c: REG_SYSTEM_CTROL0 0x0201
[ 17.556250] (NULL device *): ov5640_show_setup
[ 17.761865] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 17.768327] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 17.778204] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC0 = 0x0000000a
[ 17.786956] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC1 = 0x00000002
[ 17.795675] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x00000002
[ 17.804385] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000e
[ 17.813119] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) INTR_STATUS 0x0001e22a
[ 17.820964] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERR_INTR_STATUS 0x0001e22a
[ 18.029999] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 18.036483] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 18.046538] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC0 = 0x0000000a
[ 18.055281] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC1 = 0x0000000a
[ 18.064008] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x00000002
[ 18.072723] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000e
[ 18.081440] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) INTR_STATUS 0x0001e2aa
[ 18.089280] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERR_INTR_STATUS 0x0001e2aa
[ 18.297876] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 18.304408] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 18.315100] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC0 = 0x0000000a
[ 18.323960] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC1 = 0x0000000a
[ 18.332770] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000a
[ 18.341588] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000e
[ 18.350373] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) INTR_STATUS 0x0001eaaa
[ 18.358264] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERR_INTR_STATUS 0x0001eaaa
[ 18.569874] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 18.576331] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 18.586225] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC0 = 0x0000000a
[ 18.594966] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC1 = 0x0000000a
[ 18.603701] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000a
[ 18.612412] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000e
[ 18.621120] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) INTR_STATUS 0x0001eaaa
[ 18.628960] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERR_INTR_STATUS 0x0001eaaa
[ 18.837874] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 18.844327] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 18.854871] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC0 = 0x0000000a
[ 18.863601] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC1 = 0x0000000a
[ 18.872308] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000e
[ 18.881013] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000e
[ 18.889724] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) INTR_STATUS 0x0001eeaa
[ 18.897673] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERR_INTR_STATUS 0x0001eeaa
^Chandling interrupt.
Interrupt: Stopping pipeline …
Execution ended after 0:00:01.620018656
Setting pipeline to PAUSED …
Setting pipeline to READY …
[ 19.109880] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 19.116348] tegra-vi4 15700000.vi: tegra_channel_error_recovery: attempting to reset the capture channel
[ 19.126729] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC0 = 0x0000000a
[ 19.135470] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC1 = 0x0000000a
[ 19.144208] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000e
[ 19.153048] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000e
[ 19.161885] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) INTR_STATUS 0x0001aaaa
[ 19.169770] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERR_INTR_STATUS 0x0001aaaa
^C[ 19.178522] tegra-ivc-vi-notify ivc-b000000.rtcpu:vinotify@12c0: no reply from camera processor
[ 19.187354] tegra-ivc-vi-notify ivc-b000000.rtcpu:vinotify@12c0: no reply from camera processor
[ 19.196661] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC0 = 0x0000000a
[ 19.205468] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC1 = 0x0000000a
[ 19.214290] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000e
[ 19.223096] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERROR_STATUS2VI_VC2 = 0x0000000e
[ 19.231919] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) INTR_STATUS 0x0001222a
[ 19.239805] nvcsi 150c0000.nvcsi: csi4_stream_check_status (2) ERR_INTR_STATUS 0x0001222a
[ 19.252641] ov5640 2-003c: ov5640_power_off
[ 19.257574] mods: driver closed
any help is appreciated
kind regards,
Ron