I use a OV5647 module in LINUX SDK on D3G board. I use v4l2-ctl to grab a YUV but the picture seems not correct. I try to use gst-launcher instruction as github Doc described, but failed.
Please help check is the LINUX SDK OK for OV5647 module testing ?
su.nam
March 4, 2026, 1:08am
2
Hello,
Could you please let us know which camera module you are using and the image (FW) version that was flashed to the D3-G via FWDN?
Please share the exact commands you used for camera capture and for running the gst-launch pipeline.
Please also share the error logs generated when executing the commands.
The capture must be performed in UYVY format .
Below is an example capture command:
v4l2-ctl --device 0 --set-fmt-video width=1640,height=1232,pixelformat=UYVY --stream-mmap --stream-to ./1640x1232.UYVY --stream-count 5
Thank you.
I flash the image D3-G Release Note - v1.3.0, and dmesg display that OV5647 is probed:
root@d3-g-topst-main:~# dmesg | grep ov5647
[ 1.927750] tcc-mipi-csi2 1bc00800.mipi_csi2_0: [INFO][tcc-mipi-csi2] tcc_mipi_csi2_add_asd(548) - asd ov5647 has been found
[ 1.932249] tcc-mipi-csi2 1bc00800.mipi_csi2_0: [INFO][tcc-mipi-csi2] tcc_mipi_csi2_nf_bound(137) - v4l2-subdev ov5647 7-0036 is bounded
[ 1.932295] tcc-cap-media-drv tcc_cap_media: [INFO][tcc-cap-media-drv] tcc_cap_media_add_link(87) - add link ov5647 7-0036:0 โ mipi_csi2_0:0
[ 1.968431] tcc-cap-media-drv tcc_cap_media: [INFO][tcc-cap-media-drv] tcc_cap_media_create_links(283) - video stream source device is ov5647 7-0036
root@d3-g-topst-main:~#
According to:
Single Board Computer/G Model/D3-G/Available Applications/Use Cases with the D3-G Board.md
I use command:
gst-launch-1.0 -v v4l2src device=/dev/video0 io-mode=2 ! video/x-raw,format=NV12,width=1920,height=1280,framerate=30/1 ! videoconvert ! waylandsink fullscreen=true
But the result log:
root@d3-g-topst-main:~# gst-launch-1.0 v4l2src device=/dev/video0 io-mode=2 ! video/x-raw,format=NV12,width=1920,height=1280,framerate=30/1 ! videoconvert ! e
Setting pipeline to PAUSED โฆ
Failed to set pipeline to PAUSED.
Setting pipeline to NULL โฆ
Freeing pipeline โฆ
root@d3-g-topst-main:~#
The default image does not include v4l2-ctl command.
How can I continue to test camera?
su.nam
March 4, 2026, 6:49am
4
Are you running this from a terminal connected via the UART debug port?
Before executing the gst command, please run:
export XDG_RUNTIME_DIR=/run/user/root
Then, please try running the gst command again.
gst-launch-1.0 v4l2src device=/dev/video0 io-mode=2 ! video/x-raw,format=NV12,width=1280,height=720,framerate=30/1 ! videoconvert ! waylandsink fullscreen=true
It appears that you have flashed a Yocto image.
The v4l2-ctl command is not available because the v4l-utils package is not included in the Yocto build.
Please copy the attached file to the board and install it using dpkg -i, then proceed with testing.
v4l-utils_1.22.1-r0_arm64.deb
Thank you.
Thanks, camera working!!!
1 Like
Old SDK is working OK, but after my building SDK1.3, even download/fwdn prebuilt image 1.3, the camera preview is FAIL(same HW old sdk is OK), log:
gst-error.txt (85.8 KB)
Thanks, we see that when login use root/root, the camera working OK.
Thanks.
1 Like