ADV7482 and Jetson TX1

I am not a “camera guy”, but I immediately understand the need to find out what nvcamerasrc is. You might look at this:
[url]https://devtalk.nvidia.com/default/topic/1025532/jetson-tx2/what-does-nvcamerasrc-do-/post/5215968/#5215968[/url]

The following is from a TX1, but steps should still be valid on methods to find nvcamerasrc:
[url]https://devtalk.nvidia.com/default/topic/1027596/jetson-tx1/failed-to-access-the-onboard-camera-using-nvcamerasrc-/[/url]

Since I don’t know much about cameras I am struggling a bit, but I am thinking this is a similar question:
[url]https://devtalk.nvidia.com/default/topic/1023782/jetson-tx2/how-to-capture-and-display-using-nvcamerasrc-on-tx2-/[/url]

Hopefully someone else knowing more about cameras will have a more useful answer.

Good day, I found video0 in /dev folder. I changed driver ADV782 for TxB and AIN3.
I tested video input with next command:

v4l2-ctl --set-fmt-video=width=640,height=480,pixelformat=RG10 --stream-mmap --stream-count=1 -d /dev/video0 --stream-to=ov5693.raw

In dmesg I received next feedback:

[  607.835606] adv7482 6-0070: Detected the PAL video input signal
[  607.837781] adv7482 6-0070: Detected the PAL video input signal
[  607.865096] vi vi: Selected no CSI lane, cannot do calibration
[  608.062187] video4linux video0: frame start syncpt timeout!0

Message

[  607.865096] vi vi: Selected no CSI lane, cannot do calibration

I received because used csi with 1-lane

Why could I get a message

video4linux video0: frame start syncpt timeout!0

?

My dtsi:
https://yadi.sk/d/V6UwvPcs49MIHQ

Change num_csi_lanes = <12>; at line 113 to see if it work.

I tryed change num_csi_lanes, but nothing has changed.I tryed stay on the line TXB CSI0P and I saw signal with period 25 microSec, on the clock perid was 20 nSec.

It means, that ADV7482 working normally.
My question: how I can test, that I right working with csi input on Tegra?

When I use command:

gst-launch-1.0 v4l2src device=/dev/video0 ! nvvidconv ! "video/x-raw(memory:NVMM),format=I420" ! nvvidconv ! omxh264enc ! flvmux ! filesink location=2019-02-25_13-05-00.flv

I receive green display

Log of gst-launcher:

Setting pipeline to PAUSED ...
Inside NvxLiteH264DecoderLowLatencyInitNvxLiteH264DecoderLowLatencyInit set DPB and MjstreamingInside NvxLiteH265DecoderLowLatencyInitNvxLiteH265DecoderLowLatencyInit set DPB and Mjstreaminglibv4lconvert: warning more framesizes then I can handle!
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Framerate set to : 100 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4 
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
===== MSENC blits (mode: 1) into tiled surfaces =====
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:06.305059031
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Dmesg:

[ 1226.082113] adv7482_s_power_test_msg
[ 1226.085824] adv7482_set_power_test_new_msg on = 1 
[ 1226.090883] adv7482_set_power_up_txb_1lane_msg_read_register_ADV7482_I2C_TXB ret = 0 val = 0
[ 1226.166116] adv7482_set_power_up_txb_1lane_msg
[ 1226.180501] adv7482_get_pad_format_test_msg
[ 1226.185523] adv7482_g_input_status_test_msg
[ 1226.190546] adv7482_g_input_status_test_msg
[ 1226.196121] adv7482_set_pad_format_test_msg
[ 1226.200310] adv7482_mbus_fmt_test_msg
[ 1226.204652] adv7482_set_pad_format_test_msg
[ 1226.208907] adv7482_mbus_fmt_test_msg
[ 1226.213604] adv7482_set_pad_format_test_msg
[ 1226.217861] adv7482_mbus_fmt_test_msg
[ 1226.222341] adv7482_set_pad_format_test_msg
[ 1226.226534] adv7482_mbus_fmt_test_msg
[ 1226.231202] adv7482_set_pad_format_test_msg
[ 1226.235467] adv7482_mbus_fmt_test_msg
[ 1226.240033] adv7482_set_pad_format_test_msg
[ 1226.244206] adv7482_mbus_fmt_test_msg
[ 1226.248781] adv7482_set_pad_format_test_msg
[ 1226.253005] adv7482_mbus_fmt_test_msg
[ 1226.257484] adv7482_set_pad_format_test_msg
[ 1226.261658] adv7482_mbus_fmt_test_msg
[ 1226.266085] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.270341] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.275058] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.279244] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.283661] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.287893] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.292613] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.296800] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.301406] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.305637] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.310286] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.314459] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.319032] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.323249] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.327768] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.331985] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.336331] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.340558] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.344885] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.349071] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.353872] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.358106] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.362634] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.366820] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.371663] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.375903] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.380601] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.384775] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.389342] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.393558] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.398092] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.402266] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.406841] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.411063] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.415740] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.419918] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.424731] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.429006] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.433469] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.437657] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.442300] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.446529] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.451227] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.455401] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.460019] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.464239] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.472360] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.476571] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.481064] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.485239] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.490298] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.494526] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.499186] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.503360] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.507832] adv7482_set_pad_format_test_msg                                                                                                                                                                                                                                                                                                                                                                          
[ 1226.512006] adv7482_set_power_test_new_msg on = 0                                                                                                                                                                                                                                                                                                                                                                    
[ 1226.517027] adv7482_set_power_up_txb_1lane_msg_read_register_ADV7482_I2C_TXB ret = 0 val = 40                                                                                                                                                                                                                                                                                                                        
[ 1226.526331] adv7482_set_power_down_txb_1lane_msg                                                                                                                                                                                                                                                                                                                                                                     
[ 1226.530939] adv7482_set_field_test_msg                                                                                                                                                                                                                                                                                                                                                                               
[ 1226.534721] adv7482_set_power_test_new_msg on = 1                                                                                                                                                                                                                                                                                                                                                                    
[ 1226.539712] adv7482_set_power_up_txb_1lane_msg_read_register_ADV7482_I2C_TXB ret = 0 val = 0                                                                                                                                                                                                                                                                                                                         
[ 1226.617268] adv7482_set_power_up_txb_1lane_msg                                                                                                                                                                                                                                                                                                                                                                       
[ 1226.622120] adv7482_mbus_fmt_test_msg                                                                                                                                                                                                                                                                                                                                                                                
[ 1226.675521] vi vi: Selected no CSI lane, cannot do calibration                                                                                                                                                                                                                                                                                                                                                       
[ 1226.876513] video4linux video0: frame start syncpt timeout!0                                                                                                                                                                                                                                                                                                                                                         
[ 1226.883613] vi vi: Selected no CSI lane, cannot do calibration                                                                                                                                                                                                                                                                                                                                                       
[ 1226.926180] nvmap_alloc_handle: PID 2622: gst-launch-1.0: WARNING: All NvMap Allocations must have a tag to identify the subsystem allocating memory.Plase pass the tag to the API call NvRmMemHanldeAllocAttr() or relevant.                                                                                                                                                                                        
[ 1227.086613] video4linux video0: frame start syncpt timeout!0                                                                                                                                                                                                                                                                                                                                                         
[ 1227.094044] vi vi: Selected no CSI lane, cannot do calibration                                                                                                                                                                                                                                                                                                                                                       
[ 1227.296685] video4linux video0: frame start syncpt timeout!0                                                                                                                                                                                                                                                                                                                                                         
[ 1227.305929] vi vi: Selected no CSI lane, cannot do calibration                                                                                                                                                                                                                                                                                                                                                       
[ 1227.507413] video4linux video0: frame start syncpt timeout!0                                                                                                                                                                                                                                                                                                                                                         
[ 1227.515297] vi vi: Selected no CSI lane, cannot do calibration                                                                                                                                                                                                                                                                                                                                                       
[ 1227.715869] video4linux video0: frame start syncpt timeout!0                                                                                                                                                                                                                                                                                                                                                         
[ 1227.721703] vi vi: Selected no CSI lane, cannot do calibration                                                                                                                                                                                                                                                                                                                                                       
[ 1227.926832] video4linux video0: frame start syncpt timeout!0                                                                                                                                                                                                                                                                                                                                                         
[ 1227.934158] vi vi: Selected no CSI lane, cannot do calibration                                                                                                                                                                                                                                                                                                                                                       
[ 1228.136800] video4linux video0: frame start syncpt timeout!0                                                                                                                                                                                                                                                                                                                                                         
[ 1228.144144] vi vi: Selected no CSI lane, cannot do calibration                                                                                                                                                                                                                                                                                                                                                       
[ 1228.347420] video4linux video0: frame start syncpt timeout!0                                                                                                                                                                                                                                                                                                                                                         
[ 1228.357748] vi vi: Selected no CSI lane, cannot do calibration                                                                                                                                                                                                                                                                                                                                                       
[ 1228.556412] video4linux video0: frame start syncpt timeout!0                                                                                                                                                                                                                                                                                                                                                         
[ 1228.590920] adv7482_s_power_test_msg                                                                                                                                                                                                                                                                                                                                                                                 
[ 1228.594561] adv7482_set_power_test_new_msg on = 0                                                                                                                                                                                                                                                                                                                                                                    
[ 1228.600512] adv7482_set_power_up_txb_1lane_msg_read_register_ADV7482_I2C_TXB ret = 0 val = 40                                                                                                                                                                                                                                                                                                                        
[ 1228.611873] adv7482_set_power_down_txb_1lane_msg

Good day, I received frame from ADV but it not full image
https://yadi.sk/i/WVWbibTakMyCnw
Dmesg:

adv7482 6-0070: Detected the PAL video input signal
[  830.989132] adv7482 6-0070:  adv7482_mbus_fmt width 720 height 576
[  831.046348] vi vi: Selected no CSI lane, cannot do calibration
[  876.992282] vi vi: Selected no CSI lane, cannot do calibration
[  877.204792] video4linux video0: MW_ACK_DONE syncpoint time out!0

This is good new. Because it interlace frame so you will get odd frame and then even frame sequently. So you have to save odd frame and even frame and do the deinterlace algorithm to get full frame or by your way.

If I switch on progressive mode on ADV7482, then CSI input on tegra will be work correct?
P.S. Sorry for my bad english)

If ADV7482 can process progressive input then i think it will work. I have not tested yet.

In hardware manual write:

The format of the output data from the SDP is always 8-bit ITU-BT656(p.29 ADV748x_HrdwareManual)

It’s mean, that we can’t change interlaced to progressive output from ADV7482. And you right:

Hi!
I’m trying to use this chip ADV7482 on TX2, Has anyone done this? Can help-me?

Thanks!

@9iggor6 and @haihoangsoftware

Have you tried to use ADV7482 with newer versions of Jetapck with linux kernel 4.9?