How to display video capture by OS08A20 camera via HDMI(LT8912)?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to display video capture by OS08A20 camera via HDMI(LT8912)?

306 Views
kazuhito_morita
Contributor II

Hello,
Could you please tell me how to display video captured by the OS08A20 camera via HDMI(LT8912)?

■ Environment

GST_DEBUG=3 gst-launch-1.0 v4l2src device=/dev/video0 ! "video/x-raw,width=1920,height=1080,format=YUYV" ! videoconvert ! autovideosink

■ Result

0:00:00.083718541 916 0xaaaaf3247f20 ERROR GST_PIPELINE grammar.y:1138:gst_parse_perform_link: could not link v4l2src0 to videoconvert0, neither element can handle caps video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUYV WARNING: erroneous pipeline: could not link v4l2src0 to videoconvert0, neither element can handle caps video/x-raw, width=(int)1920, height=(int)1080, format=(string)YUYV

If any additional information is needed, please let me know.
Thank you in advance!

Labels (2)
0 Kudos
Reply
9 Replies

73 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

I have tried  on the i.MX 95 EVK running 6.12.20_2.0.0 BSP, it can run well.

Run the example Gstreamer pipeline to verify camera stream

 

root@imx95evk:~# gst-launch-1.0 libcamerasrc ! queue ! autovideosink
0 Kudos
Reply

34 Views
kazuhito_morita
Contributor II

@Rita_Wang 

Thank you for checking.
I tried the GStreamer pipeline you suggested, but I encountered an error.
I will investigate the details of the error.

root@imx95evk:~# gst-launch-1.0 libcamerasrc ! queue ! autovideosink
Setting pipeline to PAUSED ...
[0:01:47.980555800] [624]  INFO Camera camera_manager.cpp:315 libcamera v0.0.0+4594-lf-6.6.23-2.0.0-dirty (2025-09-05T01:32:47+00:00)
[0:01:48.031624883] [629]  INFO NxpNeo neo_utils.cpp:629 Parsing pipeline config file /usr/share/libcamera/pipeline/nxp/neo/config.yaml
[0:01:48.033805175] [629]  WARN CameraSensor camera_sensor.cpp:248 'os08a20 2-0036': Recommended V4L2 control 0x009a0922 not supported
[0:01:48.033880508] [629]  WARN CameraSensor camera_sensor.cpp:315 'os08a20 2-0036': The sensor kernel driver needs to be fixed
[0:01:48.033911467] [629]  WARN CameraSensor camera_sensor.cpp:317 'os08a20 2-0036': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
[0:01:48.034876550] [629]  WARN CameraSensorProperties camera_sensor_properties.cpp:262 No static properties available for 'os08a20'
[0:01:48.034923050] [629]  WARN CameraSensorProperties camera_sensor_properties.cpp:264 Please consider updating the camera sensor properties database
[0:01:48.034952592] [629]  WARN CameraSensor camera_sensor.cpp:461 'os08a20 2-0036': Failed to retrieve the camera location
[0:01:48.034980800] [629]  WARN CameraSensor camera_sensor.cpp:483 'os08a20 2-0036': Rotation control not available, default to 0 degrees
Pipeline is live and does not need PREROLL ...
ERROR: from element /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0: Internal data stream error.
Pipeline is PREROLLED ...
Additional debug info:
/usr/src/debug/libcamera/0.2.0.imx/src/gstreamer/gstlibcamerasrc.cpp(645): gst_libcamera_src_task_enter (): /GstPipeline:pipeline0/GstLibcameraSrc:libcamerasrc0:
streaming stopped, reason not-negotiated (-4)
Setting pipeline to PLAYING ...
ERROR: pipeline doesn't want to preroll.


I would appreciate it if you could advise me on anything else I should try or check.

0 Kudos
Reply

31 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi @kazuhito_morita ,

Can you share the board picture to me? I do not know the verison Board in your side, B0 or A1 version, thanks.

Wish you have a nice day

Best Regards

Rita

0 Kudos
Reply

21 Views
kazuhito_morita
Contributor II

Hi, @Rita_Wang 

Thank you for your cheking.

I’m attaching a photo of the board.
Please take a look and let me know what you think.

best regards.

0 Kudos
Reply

100 Views
kazuhito_morita
Contributor II

@Rita_Wang 

Thank you for your response.

The box is labeled as follows:
iMX95 Verdin EVK V1.1D
PN: 05241103
SN: 36204509

The board itself is labeled as follows:
iMX95 Verdin EVK CB V1.3A
PN:05211300
SN:35873003

best regards

0 Kudos
Reply

128 Views
kazuhito_morita
Contributor II

@Rita_Wang 

Thank you for your response.

The box is labeled as follows:
iMX95 Verdin EVK V1.1D
PN: 05241103
SN: 36204509

The board itself is labeled as follows:
iMX95 Verdin EVK CB V1.3A
PN:05211300

SN:35873003

best regards

0 Kudos
Reply

74 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Can you share the board picture to me?

0 Kudos
Reply

268 Views
kazuhito_morita
Contributor II

I tried to capture an image using v4l2-ctl, then the kernel crashed.

■ System Configuration

  • SoC / Board: NXP i.MX95 19x19 EVK (Verdin variant)
  • Linux Kernel: 6.6.23-lts-next-06236-gb586a521770e
  • NXP Yocto BSP: Official NXP BSP (NXP’s Full Reference Image)
  • Camera: OS08A20_MIPI
  • Used device: /dev/video0
  • Device Tree: imx95-19x19-verdin.dtb + imx95-19x19-verdin-lt8912.dtbo + imx95-19x19-verdin-os08a20.dtbo(overlayed)
  • media-ctl version: 6.6.23

■ Problem Description

When I try to start a video capture using the following command, the kernel crashes (Oops) every time.

  v4l2-ctl -d /dev/video0 --stream-mmap=1 --stream-count=1

■ Example Oops/Crash Log

Internal error: Oops: 0000000096000004 [#1] PREEMPT SMP
CPU: 1 PID: 691 Comm: v4l2-ctl Not tainted 6.6.23-lts-next-06236-gb586a521770e #1
Hardware name: NXP i.MX95 19X19 board (DT)
pc : formatter_subdev_enable_streams+0xb0/0x22c
...
Call trace:
formatter_subdev_enable_streams+0xb0/0x22c
v4l2_subdev_enable_streams+0xe4/0x268
mxc_isi_crossbar_enable_streams+0x12c/0x1d0
v4l2_subdev_enable_streams+0xe4/0x268
mxc_isi_pipe_enable+0x204/0x2ac
mxc_isi_vb2_start_streaming+0xa0/0xe4
vb2_start_streaming+0x68/0x15c
vb2_core_streamon+0xf8/0x1bc
vb2_streamon+0x18/0x64
mxc_isi_video_streamon+0x28c/0x314
v4l_streamon+0x24/0x30
__video_do_ioctl+0x32c/0x3f8

■ media-ctl device topology (excerpt)

The media graph is active with crossbar/csi/formatter/ISI routing.
(See attached details below. media-ctl.txt)
...

■ Reproduction Details

  • The media graph, Device Tree, and v4l2/fmt settings are configured according to the official NXP documentation.
  • Even when restricting to just one ISI channel (/dev/video0), the Oops always occurs.

■ Questions

  • Is this Oops in formatter_subdev_enable_streams() a known issue in recent NXP BSP or kernel 6.6.x?
  • Is there any BSP update or kernel patch available to address this problem? If so, where can I find it?
  • Are there any recommended workarounds or hints to resolve this and enable video capture?
0 Kudos
Reply

196 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

For the i.MX95 19x19 EVK boar which version are you using, B0 or others?

0 Kudos
Reply