Hello,
Anyone got a working ov5693 camera through the V4L2 interface? I followed the steps prescribed in te documentation (section “Video for Linux User Guide”) but I am getting errors from the VI module.
So what I did was:
- Downloaded kernel 3.10, branch “l4t/l4t-r23.2”
- Applied patch 0001-ARM64-adding-OV5693-V4L2-on-E3326-jetson_cv.patch, which I found in a post here (https://devtalk.nvidia.com/default/topic/920739/l4t-r23-2-for-jetson-tx1-released/)
- Did exactly the steps in the docs.
Here is where trouble comes:
- Using the Yavta tool, there is no SRGGB10 format :(
root@tegra-ubuntu:~# yavta --enum-formats /dev/video0
Device /dev/video0 opened: vi ().
- Available formats:
Format 0: RG10 (30314752)
Type: Video capture (1)
Name: Bayer 10 RGRG.. GBGB..
Format 1: RGGB (42474752)
Type: Video capture (1)
Name: Bayer 8 RGRG.. GBGB..
Format 2: UYVY (59565955)
Type: Video capture (1)
Name: YUV422 (UYVY) packed
Format 3: VYUY (59555956)
Type: Video capture (1)
Name: YUV422 (VYUY) packed
Format 4: YUYV (56595559)
Type: Video capture (1)
Name: YUV422 (YUYV) packed
Format 5: YVYU (55595659)
Type: Video capture (1)
Name: YUV422 (YVYU) packed
Format 6: YU12 (32315559)
Type: Video capture (1)
Name: YUV420 (YU12) planar
Format 7: YV12 (32315659)
Type: Video capture (1)
Name: YVU420 (YV12) planar
Format 8: RGB4 (34424752)
Type: Video capture (1)
Name: RGBA 8-8-8-8
Video format: RG10 (30314752) 2592x1944
root@tegra-ubuntu:~#
- and from the available formats only YUYV is supported, it seems
root@tegra-ubuntu:~# yavta /dev/video0 -c1 -n1 -s1920x1080 -fSRGGB10 -Fov.raw
Unsupported video format 'SRGGB10'
root@tegra-ubuntu:~# yavta /dev/video0 -c1 -n1 -s1920x1080 -fRGB4 -Fov.raw
Unsupported video format 'RGB4'
root@tegra-ubuntu:~# yavta /dev/video0 -c1 -n1 -s1920x1080 -fYU12 -Fov.raw
Unsupported video format 'YU12'
root@tegra-ubuntu:~# yavta /dev/video0 -c1 -n1 -s1920x1080 -fYVYU -Fov.raw
Unsupported video format 'YVYU'
root@tegra-ubuntu:~# yavta /dev/video0 -c1 -n1 -s1920x1080 -fYUYV -Fov.raw
Device /dev/video0 opened: vi ().
Video format set: width: 1920 height: 1080 buffer size: 4147200
Video format: YUYV (56595559) 1920x1080
1 buffers requested.
length: 4147200 offset: 0
Buffer 0 mapped at address 0xf7298000.
0 (0) [E] 0 4147200 bytes 1458034399.005346 1458034399.005936
Captured 0 frames in 0.069844 seconds (0.000000 fps, 59378042.494702 B/s).
1 buffers released.
root@tegra-ubuntu:~#
But even it doesn’t record anything, as the frame is empty:
root@tegra-ubuntu:~# hexdump -C ov.raw-000000.bin
00000000 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 |UUUUUUUUUUUUUUUU|
*
003f4800
dmesg is not very talkative as ti says:
[ 1775.699465] vi vi: MW_ACK_DONE syncpoint time out!
Needless to say, gstreamer pipe doesn’t start as well.
Any idea what might be the problem?