Imx 296 mipi camera sensor for xavier nx dev kit

hello shivlal12345,

v4l2-ctl -d /dev/video0 --list-formats-ext it report the sensor capability, you should review your device tree settings and also v4l cid controls implementations.

Used device tree from here. They have already tested it with imx296 vc_mipi_nvidia/src/devicetree/NV_DevKit_XavierNX at master · VC-MIPI-modules/vc_mipi_nvidia · GitHub

hello shivlal12345,

do you really report min_framerate= "0";? it just looks incorrect. please revise this setting.
the exposure time range also related to frame-rate capability. for example, the max_exp_time should not greater than (1/min-FrameRate) * 1000000.
besides, it looks active_w and active_h also configure as zero, this should used to specific the width and height of the pixel active region. please update the settings accordingly.
thanks

Hi,
Active_w, active_h, and all the above settings that you mentioned can be set through v4l2-ctl. I am using this command to set all these parameters. They can be anything in device tree. Can be changed through v4l2 API
V4l2-ctl -d /dev/video0 --set-video-fmt=width=1440 height=1080 --set-ctrl frame_rate=60000 --set-ctrl gain=100 --set-ctrl exposure=33333

Active_h and active_w are set by width and height arguments in above command. Checked the dmesg log. Settings are taking effect.

hello shivlal12345,

so, are you able to fetch validate camera frames after update those settings?

No all data bytes are zero

hello shivlal12345,

please try hacking the sensor driver to disable CID controls, for example, disable set_exposure, set_framerate…etc
the idea is enable camera stream with default mode settings, then please use the v4l command to dump several frames for checking,
for example,
$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=1440,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=5 --stream-to=test.raw

disabled cid controls in sensor driver. default value queried by driver for fps is 0.

tonbo@tonbo-xavier:~/vc_mipi_demo/src$ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘RG10’
Name : 10-bit Bayer RGRG/GBGB
Size: Discrete 1440x1080
Interval: Discrete 0.017s (60.000 fps)
first few bytes are non zero. othere are zero.

00000000: 975d 734c 5146 fd75 4003 2515 4515 0105 .]sLQF.u@.%.E…
00000010: b451 1554 1145 4515 5041 5965 0927 2925 .Q.T.EE.PAYe.')%
00000020: 4515 6515 1965 0411 9040 2411 d65b 8209 E.e…e…@$…[…
00000030: 4209 1b6f 4514 1555 6514 5659 0924 071d B…oE…Ue.VY.$…
00000040: 4411 1144 134e 1967 0515 9554 4515 f861 D…D.N.g…TE…a
00000050: 2410 534c 1450 5145 1554 630c 1659 6410 $.SL.PQE.Tc…Yd.
00000060: 2410 7249 1144 7145 5554 5659 5144 5145 $.rI.DqEUTVYQDQE
00000070: 0619 5144 2107 5965 1451 4d35 5040 5451 …QD!.Ye.QM5P@TQ
00000080: 5040 4821 5965 0411 4413 5452 4821 0411 P@H!Ye…D.TRH!..
00000090: 5555 1451 d451 5965 d145 8107 8105 5964 UU.Q.QYe.E…Yd
000000a0: bd74 5555 7147 5555 4106 fc70 5554 734d .tUUqGUUA…pUTsM
000000b0: 5d75 575d 175c 630d 5557 1453 0514 5145 ]uW].\c.UW.S…QE
000000c0: 1451 a106 4105 5145 1451 1450 7965 5c71 .Q…A.QE.Q.Pye\q
000000d0: 0104 5555 9658 471c 230e 0003 4107 4107 …UU.XG.#…A.A.
000000e0: 471d 9554 0c30 5145 4411 c619 3451 1451 G…T.0QED…4Q.Q
000000f0: 0209 4514 d451 0209 1452 c209 4107 d145 …E…Q…R…A…E
00000100: 5452 4209 9451 0104 1041 2105 0411 9d74 TRB…Q…A!..t
00000110: 5145 1554 0514 4514 5964 1451 5145 1145 QE.T…E.Yd.QQE.E
00000120: 0514 5249 1965 4411 4002 0821 0411 2821 …RI.eD.@…!..(!
00000130: 1450 5658 1450 3451 4515 0619 d145 0516 .PVX.P4QE…E…
00000140: 6107 5145 9d74 4003 4514 4104 b145 1557 a.QE.t@.E.A…E.W
00000150: 1453 dd75 5658 3451 0924 0925 4515 7451 .S.uVX4Q.$.%E.tQ
00000160: 7041 a104 d145 4104 4411 830d 4002 0105 pA…EA.D…@…
00000170: c105 0413 2516 9451 1556 4514 0209 534c …%…Q.VE…SL
00000180: 4411 1554 4412 1451 d040 5145 0411 4105 D…TD…Q.@QE…A.
00000190: 1555 5041 1145 5249 4925 0411 5144 4410 .UPA.ERII%…QDD.
000001a0: 5144 1145 5145 534c 3c71 5452 071c 4002 QD.EQESL<qTR…@.
000001b0: 0412 3451 0001 5453 7451 0411 6413 2516 …4Q…TStQ…d.%.
000001c0: 1041 d144 d145 5554 5451 1144 e106 0821 .A.D.EUTTQ.D…!
000001d0: 0413 534c 1450 4c31 5145 4c31 5145 c104 …SL.PL1QEL1QE…
000001e0: 5556 6410 0619 d965 1659 0517 471e 575d UVd…e.Y…G.W]
000001f0: 1555 d144 6517 0514 1451 334d 5556 9555 .U.De…Q3MUV.U
00000200: 4514 4514 5452 775d 7144 5041 5555 d555 E.E.TRw]qDPAUU.U
00000210: 9145 2517 5557 4515 6413 5145 9554 7555 .E%.UWE.d.QE.TuU
00000220: 5145 5554 1555 4410 5041 4517 1453 7554 QEUT.UD.PAE…SuT
00000230: 5145 0105 c514 7041 5d75 4001 0411 4105 QE…pA]u@…A.
00000240: 0517 0514 3451 5658 0208 0106 9d74 1554 …4QVX…t.T
00000250: 1451 7658 1248 0208 0000 0000 0000 0000 .QvX.H…
00000260: 0000 0000 0000 0000 0000 0000 0000 0000 …
00000270: 0000 0000 0000 0000 0000 0000 0000 0000 …
00000280: 0000 0000 0000 0000 0000 0000 0000 0000 …
00000290: 0000 0000 0000 0000 0000 0000 0000 0000 …
000002a0: 0000 0000 0000 0000 0000 0000 0000 0000 …
000002b0: 0000 0000 0000 0000 0000 0000 0000 0000 …
000002c0: 0000 0000 0000 0000 0000 0000 0000 0000 …
000002d0: 0000 0000 0000 0000 0000 0000 0000 0000 …
000002e0: 0000 0000 0000 0000 0000 0000 0000 0000 …

hello shivlal12345,

is this camera validate on other platform before?
you may also contact with sensor vendor to double check you’re having correct init register settings.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.