Error running 10_camera_recording on tx1

Hello,
I am using the platform TX1 r28.2 and the camera is imx214. The imx214 driver can be used basically (refer to ov5693), I can get the correct ee.yuv using the following command.

v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap  --stream-count=1 --stream-to=./ee.yuv -d /dev/video0

But when I run the case 10_camera_recording of tegra_multimedia_api, I get an error and print it as follows:

:~/tegra_multimedia_api/samples/10_camera_recording$ sudo ./camera_recording -r 1920x1080
Set governor to performance before enabling profiler
OFParserGetVirtualDevice: NVIDIA Camera virtual enumerator not found in proc device-tree
LoadOverridesFile: looking for override file [/Calib/camera_override.isp] 1/16LoadOverridesFile: looking for override file [/data/nvcam/settings/camera_overrides.isp] 
2/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/camera_overrides.isp] 
3/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/camera_overrides.isp] 
4/16LoadOverridesFile: looking for override file [/data/nvcam/camera_overrides.isp] 
5/16LoadOverridesFile: looking for override file [/data/nvcam/settings/e3326_front_P5V27C.isp] 
6/16LoadOverridesFile: looking for override file [/opt/nvidia/nvcam/settings/e3326_front_P5V27C.isp] 
7/16LoadOverridesFile: looking for override file [/var/nvidia/nvcam/settings/e3326_front_P5V27C.isp] 
8/16---- imager: No override file found. ----
PRODUCER: Creating output stream
PRODUCER: Launching consumer thread
Failed to query video capabilities: Inappropriate ioctl for device
NvMMLiteOpen : Block : BlockType = 4 
===== MSE[   44.630059] nvmap_alloc_handle: PID 777: camera_recordin: WARNING: All NvMap Allocations must have a tag to identify the subsystem allocating memory.Please pass the tag to the API call NvRmMemHanldeAllocAttr() or relevant. 
NC =====
NvMMLiteBlockCreate : Block : BlockType = 4 
875967048
842091865
create video encoder return true
CONSUMER: Waiting until producer is connected...
PRODUCER: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
[   44.767210] misc tegra_camera_ctrl: ISO BW req 2147483647 > 4500000 (max) capping to max
SCF: Error InvalidState:  NonFatal ISO BW requested not set. Requested = 2147483647 Set = 4500000 (in src/services/power/PowerServiceCore.cpp, function setCameraBw(), line 653)
[   45.298309] tegra_mipi_cal 700e3000.mipical: Mipi cal timeout,val:5891, lanes:c00000
[   45.319533] tegra_mipi_cal 700e3000.mipical: MIPI_CAL_CTRL                  0x00 0x2a000000
[   45.336910] tegra_mipi_cal 700e3000.mipical: CIL_MIPI_CAL_STATUS            0x08 0x00005891
[   45.354581] tegra_mipi_cal 700e3000.mipical: CIL_MIPI_CAL_STATUS_2          0x0c 0x00000000
[   45.365174] tegra_mipi_cal 700e3000.mipical: CILA_MIPI_CAL_CONFIG           0x14 0x00000000
[   45.375783] tegra_mipi_cal 700e3000.mipical: CILB_MIPI_CAL_CONFIG           0x18 0x00000000
[   45.385725] tegra_mipi_cal 700e3000.mipical: CILC_MIPI_CAL_CONFIG           0x1c 0x00200000
[   45.395658] tegra_mipi_cal 700e3000.mipical: CILD_MIPI_CAL_CONFIG           0x20 0x00200000
[   45.405590] tegra_mipi_cal 700e3000.mipical: CILE_MIPI_CAL_CONFIG           0x24 0x00000000
[   45.415533] tegra_mipi_cal 700e3000.mipical: CILF_MIPI_CAL_CONFIG           0x28 0x00000000
[   45.425464] tegra_mipi_cal 700e3000.mipical: DSIA_MIPI_CAL_CONFIG           0x38 0x00000000
[   45.435388] tegra_mipi_cal 700e3000.mipical: DSIB_MIPI_CAL_CONFIG           0x3c 0x00000000
[   45.445311] tegra_mipi_cal 700e3000.mipical: DSIC_MIPI_CAL_CONFIG           0x40 0x00000000
[   45.455233] tegra_mipi_cal 700e3000.mipical: DSID_MIPI_CAL_CONFIG           0x44 0x00000000
[   45.465157] tegra_mipi_cal 700e3000.mipical: MIPI_BIAS_PAD_CFG0             0x58 0x00000000
[   45.475105] tegra_mipi_cal 700e3000.mipical: MIPI_BIAS_PAD_CFG1             0x5c 0x00000000
[   45.485044] tegra_mipi_cal 700e3000.mipical: MIPI_BIAS_PAD_CFG2             0x60 0x00000000
[   45.494973] tegra_mipi_cal 700e3000.mipical: DSIA_MIPI_CAL_CONFIG_2         0x64 0x00000000
[   45.504912] tegra_mipi_cal 700e3000.mipical: DSIB_MIPI_CAL_CONFIG_2         0x68 0x00000000
[   45.514849] tegra_mipi_cal 700e3000.mipical: DSIC_MIPI_CAL_CONFIG_2         0x70 0x00000000
[   45.524760] tegra_mipi_cal 700e3000.mipical: DSID_MIPI_CAL_CONFIG_2         0x74 0x00000000
PowerServiceCore:handleRequests: timePassed = 912
[   47.178161] fence timeout on [ffffffc0e5955000] after 1500ms
[   47.185236] fence timeout on [ffffffc0e4484b00] after 1500ms
[   47.192281] fence timeout on [ffffffc0e5955600] after 1500ms
[   47.192384] name=[nvhost_sync:12], current value=0 waiting value=1
[   47.192387] ---- mlocks ----
[   47.192397] 
[   47.192398] ---- syncpts ----
[   47.192405] id 5 (dsi) min 2 max 0 refs 1 (previous client : )
[   47.192411] id 11 (54340000.vic_camera_recordin_0) min 5 max 5 refs 1 (previous client : vi)
[   47.192414] id 12 (54600000.isp_0) min 0 max 3 refs 4 (previous client : )
[   47.192416] id 13 (54600000.isp_1) min 0 max 3 refs 4 (previous client : )
[   47.192419] id 14 (54600000.isp_2) min 7 max 16 refs 11 (previous client : )
[   47.192422] id 15 (54600000.isp_3) min 1 max 3 refs 4 (previous client : )
[   47.192427] id 20 (57000000.gpu_507) min 646 max 646 refs 1 (previous client : )
[   47.192430] id 21 (57000000.gpu_506) min 6 max 6 refs 1 (previous client : )
[   47.192432] id 22 (57000000.gpu_505) min 2 max 2 refs 1 (previous client : )
[   47.192435] id 23 (57000000.gpu_504) min 2 max 2 refs 1 (previous client : )
[   47.192438] id 24 (57000000.gpu_503) min 8 max 8 refs 1 (previous client : )
[   47.192441] id 25 (54080000.vi_0) min 0 max 3 refs 4 (previous client : 54080000.vi_0)
[   47.192443] id 26 (vblank0) min 2763 max 0 refs 1 (previous client : )
[   47.192446] id 27 (vblank1) min 1374 max 0 refs 1 (previous client : )
[   47.192449] id 29 (54080000.vi_2) min 2 max 7 refs 7 (previous client : 54080000.vi_2)
[   47.192453] id 32 (54080000.vi_4) min 1 max 3 refs 4 (previous client : 54080000.vi_4)
[   47.192457] id 35 (57000000.gpu_502) min 544 max 544 refs 1 (previous client : )
[   47.192460] id 36 (57000000.gpu_501) min 2 max 2 refs 1 (previous client : )
[   47.192462] id 37 (57000000.gpu_500) min 2 max 2 refs 1 (previous client : )
[   47.192464] id 38 (57000000.gpu_499) min 2 max 2 refs 1 (previous client : )
[   47.192467] id 39 (57000000.gpu_498) min 4 max 4 refs 1 (previous client : )
[   47.192469] id 40 (57000000.gpu_497) min 8 max 8 refs 1 (previous client : )
[   47.192472] id 41 (57000000.gpu_496) min 6 max 6 refs 1 (previous client : )
[   47.192475] id 42 (57000000.gpu_495) min 6 max 6 refs 1 (previous client : 54340000.vic_camera_recordin_0)
[   47.192478] id 44 (57000000.gpu_494) min 6 max 6 refs 1 (previous client : )
[   47.192480] id 45 (57000000.gpu_493) min 6 max 6 refs 1 (previous client : )
[   47.192483] id 46 (57000000.gpu_492) min 6 max 6 refs 1 (previous client : )
[   47.192569] 
[   47.192570] ---- channels ----
[   47.192575] 
[   47.192575] channel 0 - 54600000.isp
[   47.192575] 
[   47.192583] 0-54600000.isp (19): active class 01, offset 0050, val 0000000c
[   47.192584] DMAPUT 000001b0, DMAGET 000000e8, DMACTL 00000000
[   47.192585] CBREAD 0000000c, CBSTAT 00010050
[   47.192589] 
[   47.192589] ffffffc0e675f600: JOB, syncpt_id=12, syncpt_val=1, first_get=00000090, timeout=10000, num_slots=3, num_handles=1
[   47.192596]     GATHER at 80260000+4ccc, 8 words
[   47.192605] 20000001 0000040c 20000001 0000050d 20000001 0000060f 200c0001 00000005 
[   47.192608]     GATHER at 80260000+4cec, 2 words
[   47.192610] 20000001 0000000e 
[   47.192611] 
[   47.192613] 
[   47.192613] channel 1 - 54680000.isp
[   47.192613] 
[   47.192618] 1-54680000.isp (1): inactive
[   47.192618] 
[   47.192620] 
[   47.192620] channel 2 - 54080000.vi
[   47.192620] 
[   47.192626] 2-54080000.vi (13): active class 01, offset 0050, val 00000019
[   47.192627] DMAPUT 00000100, DMAGET 00000100, DMACTL 00000000
[   47.192629] CBREAD 00000019, CBSTAT 00010050
[   47.192632] 
[   47.192632] ffffffc0ef5d4400: JOB, syncpt_id=25, syncpt_val=1, first_get=00000018, timeout=10000, num_slots=7, num_handles=1
[   47.192635]     GATHER at 80270000+0000, 39 words
[   47.192669] 10e20001 0000001f 10e30002 00000000 00000000 103a0001 10100010 103c0001 10101010 10c20001 00000001 10c30006 00000000 001c984c 00000000 00000000 00000000 00000000 10d90001 00000003 140e0006 007f0017 080301f0 00000000 00140000 0000f005 00000000 14420001 00000101 144b0003 00010000 00000000 00000040 14580003 00010000 00000000 00000040 148b0001 00000000 
[   47.192671]     GATHER at 80270000+009c, 3 words
[   47.192675] 304e0005 00000007 0000000e 
[   47.192678]     GATHER at 80270000+00a8, 21 words
[   47.192695] 10c30006 00200002 001c984c 00000000 07980a20 00000ca8 0000002b 144b0003 00010000 00000000 00000049 14580003 00010000 00000000 00000049 20000001 00001c19 20000001 00000d20 20c10001 00000001 
[   47.192697]     GATHER at 80270000+00fc, 2 words
[   47.192699] 20000001 0000001d 
[   47.192700] 
[   47.192701] 
[   47.192701] ---- host general irq ----
[   47.192701] 
[   47.192703] sync_hintmask_ext = 0xc0000000
[   47.192705] sync_hintmask = 0x80000000
[   47.192706] sync_intc0mask = 0x00000001
[   47.192708] sync_intmask = 0x00000011
[   47.192709] 
[   47.192709] ---- host syncpt irq mask ----
[   47.192709] 
[   47.192711] syncpt_thresh_int_mask(0) = 0x55000001
[   47.192712] syncpt_thresh_int_mask(1) = 0x04040000
[   47.192714] syncpt_thresh_int_mask(2) = 0x00000001
[   47.192715] syncpt_thresh_int_mask(3) = 0x00000000
[   47.192717] syncpt_thresh_int_mask(4) = 0x00000000
[   47.192719] syncpt_thresh_int_mask(5) = 0x00000000
[   47.192721] syncpt_thresh_int_mask(6) = 0x00000000
[   47.192722] syncpt_thresh_int_mask(7) = 0x00000000
[   47.192724] syncpt_thresh_int_mask(8) = 0x00000000
[   47.192725] syncpt_thresh_int_mask(9) = 0x00000000
[   47.192727] syncpt_thresh_int_mask(10) = 0x00000000
[   47.192728] syncpt_thresh_int_mask(11) = 0x00000000
[   47.192729] 
[   47.192729] ---- host syncpt irq status ----
[   47.192729] 
[   47.192731] syncpt_thresh_cpu0_int_status(0) = 0x00008000
[   47.192733] syncpt_thresh_cpu0_int_status(1) = 0x00000001
[   47.192734] syncpt_thresh_cpu0_int_status(2) = 0x00000000
[   47.192736] syncpt_thresh_cpu0_int_status(3) = 0x00000000
[   47.192737] syncpt_thresh_cpu0_int_status(4) = 0x00000000
[   47.192740] syncpt_thresh_cpu0_int_status(5) = 0x00000000
...

I couldn’t find the reason. Can you help me? thank you very much!

Hi,
The success of ‘v4l2-ctl’ command shows you are able to do raw capture. To make it work in Argus, you shall still miss something in device tree. Please check [Sensor Driver Programming Guide] in document.
https://developer.nvidia.com/embedded/dlc/l4t-documentation-28-2-ga