(1)Now,I’am developping the driver for imx219 on TX2 R28.1.We use J20 borad bought from Auvidea.Through the v4l2 command,I can get a raw image.The v4l2 commond is as follows:
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --stream-mmap --stream-count=1 --stream-to=imx219.raw
But in the dmesg log it outputs some error:
[ 1568.375630] arm-smmu 12000000.iommu: Unhandled context fault: iova=0x00000000, fsynr=0x100011, cb=19, sid=4(0x4 - VI), pgd=0, pud=0, pmd=0, pte=0
[ 1569.360552] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1569.385591] arm-smmu 12000000.iommu: Unhandled context fault: iova=0x00000000, fsynr=0x100011, cb=19, sid=4(0x4 - VI), pgd=0, pud=0, pmd=0, pte=0
[ 1570.365115] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1570.374465] arm-smmu 12000000.iommu: Unhandled context fault: iova=0x00000000, fsynr=0x100011, cb=19, sid=4(0x4 - VI), pgd=0, pud=0, pmd=0, pte=0
[ 1571.369675] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1571.384379] arm-smmu 12000000.iommu: Unhandled context fault: iova=0x00000000, fsynr=0x100011, cb=19, sid=4(0x4 - VI), pgd=0, pud=0, pmd=0, pte=0
[ 1572.374235] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 1572.394269] arm-smmu 12000000.iommu: Unhandled context fault: iova=0x00000000, fsynr=0x100011, cb=19, sid=4(0x4 - VI), pgd=0, pud=0, pmd=0, pte=0
[ 1573.378805] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
[ 1573.386457] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) INTR_STATUS 0x00000008
[ 1573.394408] nvcsi 150c0000.nvcsi: csi4_stream_check_status (0) ERR_INTR_STATUS 0x00000008
b I use nvgstcapture command,it outputs like this in the terminal:[/b]
bitrate = 4000000
Encoder Profile = Baseline
Socket read error. Camera Daemon stopped functioning…
gst_nvcamera_open() failed ret=0
** (nvgstcapture:2379): CRITICAL **: <create_capture_pipeline:4565> can’t set camera to playing
** (nvgstcapture:2379): CRITICAL **: main:5367 Capture Pipeline creation failed
** Message: main:5374 Capture completed
** Message: main:5424 Camera application will now exit
I check the dmesg about nvgstcapture,the log is as follows:
[ 2011.478335] nvcamera-daemon[2564]: unhandled level 2 translation fault (11) at 0x00000000, esr 0x92000006
[ 2011.487999] pgd = ffffffc1a94c2000
[ 2011.491400] [00000000] *pgd=00000002208a8003, *pud=00000002208a8003, *pmd=0000000000000000
[ 2011.501371] CPU: 0 PID: 2564 Comm: nvcamera-daemon Not tainted 4.4.38 #19
[ 2011.508249] Hardware name: quill (DT)
[ 2011.511932] task: ffffffc1ec630000 ti: ffffffc1a0858000 task.ti: ffffffc1a0858000
[ 2011.519501] PC is at 0x402efc
[ 2011.522492] LR is at 0x402ef8
[ 2011.525502] pc : [<0000000000402efc>] lr : [<0000000000402ef8>] pstate: 60000000
[ 2011.532925] sp : 0000007f94fe22d0
[ 2011.536272] x29: 0000007f94fe69d0 x28: 0000000000000000
[ 2011.541685] x27: 0000000000000004 x26: 0000007f94fe6340
[ 2011.547044] x25: 0000000000404000 x24: 0000000000000334
[ 2011.552453] x23: 0000007f94fe4340 x22: 0000007f94fe3340
[ 2011.557801] x21: 0000007f94fe4264 x20: 0000007f94fe2350
[ 2011.563134] x19: 0000007f94fe4950 x18: 0000000000000014
[ 2011.568478] x17: 0000007f96859fb0 x16: 0000007f965ae540
[ 2011.573859] x15: 0000007f97257000 x14: 7265766972446172
[ 2011.579192] x13: 656d61432f697061 x12: 2f637273206d6f72
[ 2011.584529] x11: 6620676e69746167 x10: 61706f7270282020
[ 2011.589903] x9 : 3a726574656d6172 x8 : 0000000000000040
[ 2011.595236] x7 : 0000007f906b3290 x6 : 0000000000000001
[ 2011.600594] x5 : 0000000000000000 x4 : 0000007f90000b10
[ 2011.605967] x3 : 0000000000000000 x2 : 0000000000000001
[ 2011.611299] x1 : 0000000000000000 x0 : 0000000000000000
[ 2011.618125] Library at 0x402efc: 0x400000 /usr/sbin/nvcamera-daemon
[ 2011.624431] Library at 0x402ef8: 0x400000 /usr/sbin/nvcamera-daemon
[ 2011.630698] vdso base = 0x7f97256000
(3) I took a picture of the output raw image and attached it,and attached the dts file and driver.
tegra186-haijun-camera-modules.dtsi.c (7 KB)
ov5693.c (22.9 KB)