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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,349 次查看
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!

标签 (2)
标记 (3)
0 项奖励
回复
16 回复数

1,116 次查看
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 项奖励
回复

1,077 次查看
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 项奖励
回复

1,074 次查看
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 项奖励
回复

1,064 次查看
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 项奖励
回复

1,026 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi @kazuhito_morita ,

I see the board you are using, it is not our EVK board, here I will test the OS08A20 camera via HDMI on our EVK board and then tell you the result.

By the way, in China we will have the China National days leave from today and I will test i for you when I back to office on the Oct 9th. Thanks for kindly understandings.

Wish you have a nice day

Best Regards

Rita

0 项奖励
回复

975 次查看
kazuhito_morita
Contributor II

@Rita_Wang 

Thank you very much for your support.

Wishing you a wonderful holiday!

0 项奖励
回复

629 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi @kazuhito_morita ,

Thank you, I am back and discussed with my colleague,you also need to run the following commend :

export LIBCAMERA_PIPELINES_MATCH_LIST='nxp/neo,imx8-isi,uvcvideo'

You can try it, I will wait for your test result.  If still not work tell me.

Wish you have a nice day

Best Regards

Rita

0 项奖励
回复

465 次查看
kazuhito_morita
Contributor II

@Rita_Wang 

Thank you for your advice.
However, I still cannot display the camera image.
Here are the steps I executed:

export LIBCAMERA_PIPELINES_MATCH_LIST='nxp/neo,imx8-isi,uvcvideo'
GST_DEBUG=3 gst-launch-1.0 libcamerasrc ! queue ! autovideosink

RESULT
The following debug messages appear in the console:
 
Setting pipeline to PAUSED ...
export LIBCAMERA_PIPELINES_MATCH_LIST='nxp/neo,imx8
[0:01:38.381866712] [780] INFO Camera camera_manager.cpp:326 libcamera v0.0.0+5937-lf-6.12.34-2.1.0
[0:01:38.507243420] [784] INFO NxpNeoIPA neo_ipa.cpp:131 nxpneo: IPANxpNeo NXPNEO_IPA_v0.0.0+5937-lf-6.12.34-2.1.0
Pipeline is live and does not need PREROLL ...
0:00:00.611470375 780 0xffff84000b70 FIXME default gstutils.c:4169:gst_element_decorate_stream_id_internal:<libcamerasrc0> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
0:00:00.612225292 780 0xffff84000b70 WARN default gstlibcamera-utils.cpp:345:gst_libcamera_stream_formats_to_caps: Unsupported DRM format R10
New clock: GstSystemClock
0:00:00.612294792 780 0xffff84000b70 WARN default gstlibcamera-utils.cpp:345:gst_libcamera_stream_formats_to_caps: Unsupported DRM format R12
0:00:00.612571875 780 0xffff84000b70 WARN default gstlibcamera-utils.cpp:345:gst_libcamera_stream_formats_to_caps: Unsupported DRM format XVUY
[0:01:38.925148004] [785] INFO Camera camera.cpp:1205 configuring streams: (0) 3840x2160-NV21/sYCC
0:00:00.0 / 99:99:99.:99.
 

The counter remains at 0:00:00.0 and does not count up.

When I boot the NXP BSP, Weston seems to start automatically.
A gray background and some application icons are displayed — could this be affecting the camera display?

0 项奖励
回复

300 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi @kazuhito_morita ,

We do not have your board in hand, so can not debug it for, I confirmed in our side, for the in iMX95 Verdin board support you can contact the Toradex

Toradex - Customer Support

Hope this can do help for you

Wish you have a nice day

Best Regards

Rita

0 项奖励
回复

279 次查看
kazuhito_morita
Contributor II

hi, @Rita_Wang 

Thank you very much for all your support so far.
You were able to output the input image from the OS08A20 camera via HDMI, and I would like to refer to your implementation.

Would it be possible for you to share the following information?

  • The version of NSP-BSP you are using
  • The console output of the media-ctl -p command executed on your board
  • The console output of the zcat /proc/config.gz command executed on your board
  • The DTS file you are using

250 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Good news it work now.

I will send you next week I go to office and then share it to you.

0 项奖励
回复

1,143 次查看
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 项奖励
回复

1,171 次查看
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 项奖励
回复

1,117 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

Can you share the board picture to me?

0 项奖励
回复

1,311 次查看
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 项奖励
回复

1,239 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复