How get mipi data?

I write a driver for camera. But I do not konw the parameter for the cmos.I do not have datasheet for the cmos.
I want print the mipi raw data, and I will analysis data to find the parameter.
Could you tell me how print the mipi raw data?

My error is:

nvidia@tegra-ubuntu:~$ ./v4l2_ctl.sh 
[58849.860033] xiaolei --- ar0231_power_on: power on
[58849.902927] xiaolei --- ar0231_s_stream++,enable:1
[58849.907762] xiaolei --- ar0231_s_stream mode[0]
[58850.242930] tegra-vi4 15700000.vi: Status:  4 channel:00 frame:0079
[58850.249464] tegra-vi4 15700000.vi:          timestamp sof 58855757449696 eof 58855779336448 data 0x02000040
[58850.259589] tegra-vi4 15700000.vi:          capture_id 3 stream  0 vchan  0
VIDIOC_DQBUF: failed: Input/output error
[58851.218958] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[58852.222940] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
[58852.229866] xiaolei --- ar0231_s_stream++,enable:0
[58852.235255] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x00000004
[58852.243712] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x00000004

[58852.272577] xiaolei --- ar0231_power_off: power off
nvidia@tegra-ubuntu:~$ 
nvidia@tegra-ubuntu:~$ ./cat_debug.sh 
# tracer: nop
#
# entries-in-buffer/entries-written: 26/26   #P:4
#
#                              _-----=> irqs-off
#                             / _----=> need-resched
#                            | / _---=> hardirq/softirq
#                            || / _--=> preempt-depth
#                            ||| /     delay
#           TASK-PID   CPU#  ||||    TIMESTAMP  FUNCTION
#              | |       |   ||||       |         |
     kworker/0:2-2054  [000] ...1 58849.926777: rtos_queue_peek_from_isr_failed: tstamp:1839232448556 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58849.926784: rtcpu_start: tstamp:1839232451239
     kworker/0:2-2054  [000] ...1 58849.926787: rtcpu_vinotify_handle_msg: tstamp:1839232505762 tag:CSIMUX_STREAM channel:0xff frame:0 vi_tstamp:986502616 data:0x00000001
     kworker/0:2-2054  [000] ...1 58850.082839: rtos_queue_peek_from_isr_failed: tstamp:1839237449947 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58850.238898: rtcpu_vinotify_handle_msg: tstamp:1839242421351 tag:CHANSEL_PXL_SOF channel:0x00 frame:121 vi_tstamp:996417615 data:0x00000001
     kworker/0:2-2054  [000] ...1 58850.238918: rtcpu_vinotify_handle_msg: tstamp:1839242422659 tag:ATOMP_FS channel:0x00 frame:121 vi_tstamp:996417630 data:0x00000000
     kworker/0:2-2054  [000] ...1 58850.238928: rtcpu_vinotify_handle_msg: tstamp:1839242436422 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:121 vi_tstamp:996432819 data:0x08000000
     kworker/0:2-2054  [000] ...1 58850.238946: rtos_queue_peek_from_isr_failed: tstamp:1839242450735 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58850.290764: rtcpu_vinotify_handle_msg: tstamp:1839243105259 tag:CHANSEL_PXL_EOF channel:0x00 frame:121 vi_tstamp:997101456 data:0x01ff0002
     kworker/0:2-2054  [000] ...1 58850.290766: rtcpu_vinotify_handle_msg: tstamp:1839243106269 tag:CHANSEL_FAULT channel:0x00 frame:121 vi_tstamp:997101576 data:0x02000040
     kworker/0:2-2054  [000] ...1 58850.290766: rtcpu_vinotify_handle_msg: tstamp:1839243108007 tag:CHANSEL_LOAD_FRAMED channel:0x01 frame:121 vi_tstamp:997104143 data:0x08000000
     kworker/0:2-2054  [000] ...1 58850.290767: rtcpu_vinotify_handle_msg: tstamp:1839243109014 tag:CHANSEL_FAULT_FE channel:0x01 frame:121 vi_tstamp:997104149 data:0x00000001
     kworker/0:2-2054  [000] ...1 58850.290768: rtcpu_vinotify_handle_msg: tstamp:1839243110066 tag:ATOMP_FE channel:0x00 frame:121 vi_tstamp:997104149 data:0x00000000
     kworker/0:2-2054  [000] ...1 58850.394767: rtos_queue_peek_from_isr_failed: tstamp:1839247450460 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58850.550856: rtos_queue_peek_from_isr_failed: tstamp:1839252451460 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58850.706843: rtos_queue_peek_from_isr_failed: tstamp:1839257451963 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58850.862854: rtos_queue_peek_from_isr_failed: tstamp:1839262452472 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58851.070831: rtos_queue_peek_from_isr_failed: tstamp:1839267452982 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58851.226880: rtos_queue_peek_from_isr_failed: tstamp:1839272453485 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58851.382852: rtos_queue_peek_from_isr_failed: tstamp:1839277453991 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58851.538885: rtos_queue_peek_from_isr_failed: tstamp:1839282454498 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58851.694831: rtos_queue_peek_from_isr_failed: tstamp:1839287455007 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58851.850888: rtos_queue_peek_from_isr_failed: tstamp:1839292455516 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58852.006842: rtos_queue_peek_from_isr_failed: tstamp:1839297456025 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58852.162830: rtos_queue_peek_from_isr_failed: tstamp:1839302456534 queue:0x0b4a3c58
     kworker/0:2-2054  [000] ...1 58852.267095: rtos_queue_peek_from_isr_failed: tstamp:1839305209822 queue:0x0b4a3c58
nvidia@tegra-ubuntu:~$ v4l2-ctl --all
[58891.258551] xiaolei --- ar0231_power_on: power on
Driver Info (not using libv4l2):
        Driver name   : tegra-video
        Card ty[58891.283185] xiaolei --- ar0231_power_off: power off
pe     : vi-output, ar0231 1-006a
        Bus info      : platform:15700000.vi:0
        Driver version: 4.4.38
        Capabilities  : 0x84200001
                Video Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps   : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
Priority: 2
Video input : 0 (Camera 0: no power)
Format Video Capture:
        Width/Height      : 1280/512
        Pixel Format      : 'YUYV'
        Field             : None
        Bytes per Line    : 2560
        Size Image        : 1310720
        Colorspace        : sRGB
        Transfer Function : Default
        YCbCr Encoding    : Default
        Quantization      : Default
        Flags             : 

Camera Controls

                   frame_length (int)    : min=1522 max=15520 step=1 default=1522 value=1522 flags=slider
                    coarse_time (int)    : min=5 max=15510 step=1 default=1512 value=1512 flags=slider
              coarse_time_short (int)    : min=5 max=15510 step=1 default=1512 value=1512 flags=slider
                     group_hold (intmenu): min=0 max=1 default=0 value=0
                     hdr_enable (intmenu): min=0 max=1 default=0 value=0
                           gain (int)    : min=1 max=48 step=1 default=1 value=1 flags=slider
                    bypass_mode (intmenu): min=0 max=1 default=0 value=0
                override_enable (intmenu): min=0 max=1 default=0 value=0
                   height_align (int)    : min=1 max=16 step=1 default=1 value=1
                     size_align (intmenu): min=0 max=2 default=0 value=0
               write_isp_format (int)    : min=1 max=1 step=1 default=1 value=1
       sensor_signal_properties (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
        sensor_image_properties (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
      sensor_control_properties (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
              sensor_dv_timings (u32)    : min=0 max=0 step=0 default=0 flags=read-only, has-payload
                   sensor_modes (int)    : min=0 max=30 step=1 default=30 value=1 flags=read-only
nvidia@tegra-ubuntu:~$

The trace log show the “PIXEL_RUNAWAY” means VI receives more lines than expected. Try to modify the sensor driver to report more than 512.

Hi ShaneCCC:
Thank you for your reply.

I can not get cmos data sheet, so I want get mipi raw data, and analysis the raw data.

Can you tell me how get the raw data. such as 01010101.

Thanks.

The capture process is failed so you can’t get the raw data.