# OV5647 Camera module used in LINUX SDK

**URL:** <https://community.topst.ai/t/ov5647-camera-module-used-in-linux-sdk/884>\
**Category:** D3\
**Created:** [March 3, 2026, 9:13am UTC](https://community.topst.ai/t/ov5647-camera-module-used-in-linux-sdk/884 "2026-03-03T09:13:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnsonZhang](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@JohnsonZhang](https://community.topst.ai/u/JohnsonZhang)\
**Post date:** [March 3, 2026, 9:13am UTC](https://community.topst.ai/t/ov5647-camera-module-used-in-linux-sdk/884/1 "2026-03-03T09:13:54Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![su.nam](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.topst.ai/su.nam/32/450_2.png) [@su.nam](https://community.topst.ai/u/su.nam)\
**Post date:** [March 4, 2026, 1:08am UTC](https://community.topst.ai/t/ov5647-camera-module-used-in-linux-sdk/884/2 "2026-03-04T01:08:17Z")

</div>

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:

```auto
v4l2-ctl --device 0 --set-fmt-video width=1640,height=1232,pixelformat=UYVY --stream-mmap --stream-to ./1640x1232.UYVY --stream-count 5

```

Thank you.

---

<div class="post-metadata">

**Author:** ![JohnsonZhang](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@JohnsonZhang](https://community.topst.ai/u/JohnsonZhang)\
**Post date:** [March 4, 2026, 6:31am UTC](https://community.topst.ai/t/ov5647-camera-module-used-in-linux-sdk/884/3 "2026-03-04T06:31:10Z")

</div>

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:

```auto
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?

---

<div class="post-metadata">

**Author:** ![su.nam](https://yyz2.discourse-cdn.com/flex004/user_avatar/community.topst.ai/su.nam/32/450_2.png) [@su.nam](https://community.topst.ai/u/su.nam)\
**Post date:** [March 4, 2026, 6:49am UTC](https://community.topst.ai/t/ov5647-camera-module-used-in-linux-sdk/884/4 "2026-03-04T06:49:48Z")

</div>

Are you running this from a terminal connected via the UART debug port?

Before executing the gst command, please run:

```auto
export XDG_RUNTIME_DIR=/run/user/root

```

Then, please try running the gst command again.

```auto
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](https://mytelechips-my.sharepoint.com/:u:/g/personal/su_nam_telechips_com/IQApl5Tymmm_T6mWU_Vua0-qAcKfZxcStRaOQdgt6RX6_rk?e=pkYwBO)

Thank you.

---

<div class="post-metadata">

**Author:** ![JohnsonZhang](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@JohnsonZhang](https://community.topst.ai/u/JohnsonZhang)\
**Post date:** [March 4, 2026, 6:52am UTC](https://community.topst.ai/t/ov5647-camera-module-used-in-linux-sdk/884/5 "2026-03-04T06:52:22Z")

</div>

Thanks, camera working!!!

---

<div class="post-metadata">

**Author:** ![JohnsonZhang](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@JohnsonZhang](https://community.topst.ai/u/JohnsonZhang)\
**Post date:** [March 6, 2026, 7:32am UTC](https://community.topst.ai/t/ov5647-camera-module-used-in-linux-sdk/884/6 "2026-03-06T07:32:25Z")

</div>

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](https://community.topst.ai/uploads/short-url/5DMsVmuB9GUW4DjJIAsqVljvsG5.txt) (85.8 KB)

---

<div class="post-metadata">

**Author:** ![JohnsonZhang](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@JohnsonZhang](https://community.topst.ai/u/JohnsonZhang)\
**Post date:** [March 6, 2026, 7:38am UTC](https://community.topst.ai/t/ov5647-camera-module-used-in-linux-sdk/884/7 "2026-03-06T07:38:35Z")

</div>

Thanks, we see that when login use root/root, the camera working OK.

Thanks.
