Dear Experts,
I would like to re-open an old ticket of myself as it was automatically closed 14 days after the last reply and also I needed to wait for new BSP releases in expecting that the issue could be resolve but it has not been the case yet: Cannot capture from adv7280m with Jetpack-4.6.1
For shortening the story, I borrowed and adapted the driver of adv7280m from the following post : ADV7280m configuration - #105 by hoanganhv1svm
Then I successfully ported for Xavier NX with Jetpack-4.5.1 : ADV7280M Special Effect
Until today, I have been testing the driver with Jetpack-4.6.1, Jetpack-4.6.2, Jetpack-4.6.3 and even Jetpack-5.0.2 but the issue still persists on Jetson Xavier NX.
However, the driver works perfectly with the TX2 NX for any Jetpack-4.6.x with the following patch : ADV7280m configuration - #69 by ShaneCCC
I found that in another discussion, @ShaneCCC proposed similar patch for Xavier NX (Jetpack-4.6.x) : Adv7282 PAL to MIPI CSI Linux Driver Development - #80 by ShaneCCC which is IMX219 Raw8 mode on the XavierNX: Disabling CRC - #9 by ShaneCCC
I then applied the patch and re-flash the rtcpu firmware as instructed but not any luck.
Below is the log with the patch applied to csi5_fops.c and the newly flashed rtcpu firmware :
nvidia@Jetson-XNX:~/Workspace$ v4l2-ctl --all -d /dev/video1
Driver Info (not using libv4l2):
Driver name : tegra-video
Card type : vi-output, adv7280 8-0020
Bus info : platform:15c10000.vi:4
Driver version: 4.9.255
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 4: no power)
DV timings:
Active width: 0
Active height: 0
Total width: 0
Total height: 0
Frame format: progressive
Polarities: -vsync -hsync
Pixelclock: 0 Hz
Horizontal frontporch: 0
Horizontal sync: 0
Horizontal backporch: 0
Vertical frontporch: 0
Vertical sync: 0
Vertical backporch: 0
Standards:
Flags:
Format Video Capture:
Width/Height : 720/507
Pixel Format : 'UYVY'
Field : None
Bytes per Line : 1536
Size Image : 778752
Colorspace : SMPTE 170M
Transfer Function : Rec. 709
YCbCr/HSV Encoding: ITU-R 601
Quantization : Limited Range
Flags :
User Controls
brightness 0x00980900 (int) : min=-128 max=127 step=1 default=0 value=0 flags=slider
contrast 0x00980901 (int) : min=0 max=255 step=1 default=128 value=128 flags=slider
saturation 0x00980902 (int) : min=0 max=255 step=1 default=128 value=128 flags=slider
hue 0x00980903 (int) : min=-127 max=128 step=1 default=0 value=0 flags=slider
fast_switching 0x00981970 (bool) : default=0 value=0
Camera Controls
sensor_configuration 0x009a2032 (u32) : min=0 max=0 step=0 default=0 flags=read-only, volatile, has-payload
sensor_mode_i2c_packet 0x009a2033 (u32) : min=0 max=0 step=0 default=0 flags=read-only, volatile, has-payload
sensor_control_i2c_packet 0x009a2034 (u32) : min=0 max=0 step=0 default=0 flags=read-only, volatile, has-payload
bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0
override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0
height_align 0x009a2066 (int) : min=1 max=16 step=1 default=1 value=1
size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0
write_isp_format 0x009a2068 (int) : min=1 max=1 step=1 default=1 value=1
sensor_signal_properties 0x009a2069 (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
sensor_image_properties 0x009a206a (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
sensor_control_properties 0x009a206b (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
sensor_dv_timings 0x009a206c (u32) : min=0 max=0 step=0 default=0 flags=read-only, has-payload
low_latency_mode 0x009a206d (bool) : default=0 value=0
preferred_stride 0x009a206e (int) : min=0 max=65535 step=1 default=0 value=1472
sensor_modes 0x009a2082 (int) : min=0 max=30 step=1 default=30 value=30 flags=read-only
nvidia@Jetson-XNX:~/Workspace$ sudo ./max_clock.sh
[sudo] password for nvidia:
vi clock rate is:460800000
isp clock rate is:576000000
emc clock rate is:1866000000
nvcsi clock rate is:314000000
nvidia@Jetson-XNX:~/Workspace$ sudo ./trace_on.sh
Run "sudo cat /sys/kernel/debug/tracing/trace" to visualize trace
nvidia@Jetson-XNX:~/Workspace$ sudo cat /sys/kernel/debug/tracing/trace > adv7280m.trace
adv7280m.trace (1.4 MB)
In the log file :
kworker/0:0-4 [000] .... 892.894599: rtcpu_vinotify_event: tstamp:28375149639 tag:RESERVED_19 channel:0x23 frame:2 vi_tstamp:27531433856 data:0x01020003
kworker/0:0-4 [000] .... 892.894600: rtcpu_vinotify_event: tstamp:28375149770 tag:FE channel:0x00 frame:2 vi_tstamp:28375060379 data:0x00000024
kworker/0:0-4 [000] .... 892.894601: rtcpu_vinotify_event: tstamp:28375149919 tag:ATOMP_FE channel:0x00 frame:2 vi_tstamp:28375060380 data:0x00000000
kworker/0:0-4 [000] .... 892.894601: rtcpu_vinotify_event: tstamp:28375150046 tag:RESERVED_19 channel:0x23 frame:0 vi_tstamp:27533640384 data:0x07020004
kworker/0:0-4 [000] .... 892.894602: rtcpu_vinotify_event: tstamp:28375150203 tag:CSIMUX_STREAM channel:0x00 frame:0 vi_tstamp:28375069511 data:0x00010000
kworker/0:0-4 [000] .... 892.894603: rtcpu_vinotify_event: tstamp:28375150333 tag:FS channel:0x00 frame:1 vi_tstamp:28375107479 data:0x00000014
kworker/0:0-4 [000] .... 892.894604: rtcpu_vinotify_event: tstamp:28375150482 tag:ATOMP_FS channel:0x00 frame:1 vi_tstamp:28375107480 data:0x00000000
kworker/0:0-4 [000] .... 892.894604: rtcpu_vinotify_event: tstamp:28375150609 tag:CHANSEL_PXL_SOF channel:0x23 frame:1 vi_tstamp:28375107531 data:0x00000001
kworker/0:0-4 [000] .... 892.894605: rtcpu_vinotify_event: tstamp:28375150758 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:27535147968 data:0x08020004
kworker/0:0-4 [000] .... 892.894606: rtcpu_vinotify_event: tstamp:28375615989 tag:CHANSEL_PXL_EOF channel:0x23 frame:1 vi_tstamp:28375614440 data:0x01fa0002
kworker/0:0-4 [000] .... 892.894607: rtcpu_vinotify_error: tstamp:28375692476 tag:CSIMUX_STREAM channel:0x00 frame:0 vi_tstamp:28375691622 data:0x00010000
kworker/0:0-4 [000] .... 892.894607: rtcpu_vinotify_error: tstamp:28375730469 tag:CHANSEL_NOMATCH channel:0x10 frame:2 vi_tstamp:28375729631 data:0x000003c9
kworker/0:0-4 [000] .... 892.894608: rtcpu_vinotify_event: tstamp:28375928849 tag:ATOMP_FRAME_DONE channel:0x23 frame:1 vi_tstamp:28375614455 data:0x00000000
kworker/0:0-4 [000] .... 892.894609: rtcpu_vinotify_event: tstamp:28375928983 tag:RESERVED_19 channel:0x23 frame:1 vi_tstamp:27551369824 data:0x02020004
kworker/0:0-4 [000] .... 892.894609: rtcpu_vinotify_event: tstamp:28375929132 tag:CHANSEL_FAULT channel:0x23 frame:1 vi_tstamp:28375614616 data:0x01fb0040
With :
CHANSEL_FAULT data bit field
bit 16:31 LINE_NUMBER
bit 15 DTYPE_MISMATCH
bit 14 EMBED_INFRINGE
bit 13 EMBED_LONG_LINE
bit 12 EMBED_SPURIOUS
bit 11 EMBED_RUNAWAY
bit 10 EMBED_MISSING_LE
bit 9 PIXEL_SHORT_LINE
bit 8 PIXEL_LONG_LINE
bit 7 PIXEL_SPURIOUS
bit 6 PIXEL_RUNAWAY
bit 5 PIXEL_MISSING_LE
bit 4 PIXEL_LINE_TIMER
bit 3 EMBED_EOF
bit 2 EMBED_SOF
bit 1 PIXEL_EOF
bit 0 PIXEL_SOF
The trace shows the 0x01fb0040, with 0x40 means CHANSEL_FAULT of PIXEL_RUNAWAY.
I am really stuck and hope that you could help to point out what did happen btw the Jetpack-4.5.x and the later ones, please?
Best Regards,
Khang