编辑:

编辑:

我按照这里的步骤操作(https://wiki.ubuntu.com/Lenovo) 使我的 MiPi 相机在搭载 Ubuntu 22.04 的 Thinkpad X1Gen10 上运行。

以下步骤在 6.2 下有效:

$ sudo apt install linux-modules-ipu6-generic-hwe-22.04 linux-modules-ivsc-generic-hwe-22.04 (For generic kernel, like 6.2.0-32-generic)
$ sudo apt install linux-modules-ipu6-oem-22.04c linux-modules-ivsc-oem-22.04c (For oem kernel, like 6.1.0-1021-oem)
$ sudo add-apt-repository ppa:oem-solutions-group/intel-ipu6 (This ppa is still in development, might be not stable, in future you don't need this step)
$ sudo apt install libcamhal0
$ sudo add-apt-repository -r ppa:oem-solutions-group/intel-ipu6 (the ppa will keep updating packages from upstream, might be broken)
$ sudo reboot

这在内核 6.2 上工作正常,但现在在使用最新内核版本 6.5.0.14.14 启动时失败。相机不再启动,在任何应用程序中我得到的都是黑屏而不是相机图像。

有没有针对 6.5 的修复程序?

谢谢你!

更新:目前还没有修复,英特尔正以极慢的速度处理这个问题:

https://github.com/intel/ipu6-drivers/issues/204

编辑:

运行sudo gst-launch-1.0 icamerasrc ! autovideosink 输出

[01-19 23:06:16.237] CamHAL[ERR] Malformed ET range in exposure time range configuration
[01-19 23:06:16.237] CamHAL[ERR] Parse AE eExposure time range failed
[01-19 23:06:16.237] CamHAL[ERR] Malformed ET range in exposure time range configuration
[01-19 23:06:16.237] CamHAL[ERR] Parse AE gain range failed
[01-19 23:06:16.238] CamHAL[ERR] Malformed ET range in exposure time range configuration
[01-19 23:06:16.238] CamHAL[ERR] Parse AE eExposure time range failed
[01-19 23:06:16.238] CamHAL[ERR] Malformed ET range in exposure time range configuration
[01-19 23:06:16.238] CamHAL[ERR] Parse AE gain range failed
[01-19 23:06:16.239] CamHAL[ERR] Malformed ET range in exposure time range configuration
[01-19 23:06:16.239] CamHAL[ERR] Parse AE eExposure time range failed

...

Setting pipeline to PAUSED ...
[01-19 23:06:18.506] CamHAL[INF] aiqb file name ov13b10.aiqb
[01-19 23:06:18.509] CamHAL[INF] aiqb file name ov13b10.aiqb
[01-19 23:06:18.511] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[01-19 23:06:18.511] CamHAL[INF] aiqb file name ov13b10.aiqb
[01-19 23:06:18.511] CamHAL[INF] aiqb file name ov13b10.aiqb
[01-19 23:06:18.512] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[01-19 23:06:18.512] CamHAL[INF] aiqb file name ov8856.aiqb
[01-19 23:06:18.514] CamHAL[INF] aiqb file name ov8856.aiqb
[01-19 23:06:18.514] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.514] CamHAL[INF] aiqb file name ov8856.aiqb
[01-19 23:06:18.514] CamHAL[INF] aiqb file name ov8856.aiqb
[01-19 23:06:18.515] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.515] CamHAL[INF] aiqb file name ov01a10.aiqb
[01-19 23:06:18.517] CamHAL[INF] aiqb file name ov01a10.aiqb
[01-19 23:06:18.518] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[01-19 23:06:18.518] CamHAL[INF] aiqb file name ov01a10.aiqb
[01-19 23:06:18.518] CamHAL[INF] aiqb file name ov01a10.aiqb
[01-19 23:06:18.519] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[01-19 23:06:18.519] CamHAL[INF] aiqb file name OV02C10_1BG203N3_ADL.aiqb
[01-19 23:06:18.521] CamHAL[INF] aiqb file name OV02C10_1BG203N3_ADL.aiqb
[01-19 23:06:18.521] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[01-19 23:06:18.521] CamHAL[INF] aiqb file name OV02C10_1SG204N3_ADL.aiqb
[01-19 23:06:18.523] CamHAL[INF] aiqb file name OV02C10_1SG204N3_ADL.aiqb
[01-19 23:06:18.523] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.523] CamHAL[INF] aiqb file name OV02C10_CIFME14_ADL.aiqb
[01-19 23:06:18.525] CamHAL[INF] aiqb file name OV02C10_CIFME14_ADL.aiqb
[01-19 23:06:18.525] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.525] CamHAL[INF] aiqb file name OV02C10_1BG203N3_ADL.aiqb
[01-19 23:06:18.525] CamHAL[INF] aiqb file name OV02C10_1BG203N3_ADL.aiqb
[01-19 23:06:18.526] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[01-19 23:06:18.526] CamHAL[INF] aiqb file name OV02C10_1SG204N3_ADL.aiqb
[01-19 23:06:18.526] CamHAL[INF] aiqb file name OV02C10_1SG204N3_ADL.aiqb
[01-19 23:06:18.526] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.526] CamHAL[INF] aiqb file name OV02C10_CIFME14_ADL.aiqb
[01-19 23:06:18.526] CamHAL[INF] aiqb file name OV02C10_CIFME14_ADL.aiqb
[01-19 23:06:18.527] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.527] CamHAL[INF] aiqb file name OV2740_CJFLE23_ADL.aiqb
[01-19 23:06:18.529] CamHAL[INF] aiqb file name OV2740_CJFLE23_ADL.aiqb
[01-19 23:06:18.529] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.529] CamHAL[INF] aiqb file name HM2170_1SG205N3_ADL.aiqb
[01-19 23:06:18.531] CamHAL[INF] aiqb file name HM2170_1SG205N3_ADL.aiqb
[01-19 23:06:18.532] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.532] CamHAL[INF] aiqb file name HM2170_CJFME18_ADL.aiqb
[01-19 23:06:18.534] CamHAL[INF] aiqb file name HM2170_CJFME18_ADL.aiqb
[01-19 23:06:18.534] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.534] CamHAL[INF] aiqb file name HM2170_1SG205N3_ADL.aiqb
[01-19 23:06:18.534] CamHAL[INF] aiqb file name HM2170_1SG205N3_ADL.aiqb
[01-19 23:06:18.535] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.535] CamHAL[INF] aiqb file name HM2170_CJFME18_ADL.aiqb
[01-19 23:06:18.535] CamHAL[INF] aiqb file name HM2170_CJFME18_ADL.aiqb
[01-19 23:06:18.535] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.535] CamHAL[INF] aiqb file name HI556_1BG502T3_ADL.aiqb
[01-19 23:06:18.538] CamHAL[INF] aiqb file name HI556_1BG502T3_ADL.aiqb
[01-19 23:06:18.538] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.538] CamHAL[INF] aiqb file name HI556_CJFLE25_ADL.aiqb
[01-19 23:06:18.540] CamHAL[INF] aiqb file name HI556_CJFLE25_ADL.aiqb
[01-19 23:06:18.541] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.541] CamHAL[INF] aiqb file name ov01a1s.aiqb
[01-19 23:06:18.543] CamHAL[INF] aiqb file name ov01a1s.aiqb
[01-19 23:06:18.545] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.545] CamHAL[INF] aiqb file name OV08A10_YHUT_ADL.aiqb
[01-19 23:06:18.547] CamHAL[INF] aiqb file name OV08A10_YHUT_ADL.aiqb
[01-19 23:06:18.548] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.548] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.550] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.550] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.550] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.550] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.550] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.550] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.550] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.551] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.551] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.551] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.551] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.551] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.551] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.552] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.552] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.552] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.552] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.552] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.552] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.552] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.552] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.552] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.552] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.552] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.553] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.553] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.553] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.553] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.553] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.553] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.553] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.553] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.553] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.553] CamHAL[INF] aiqb file name IMX390_HDR_TGL.aiqb
[01-19 23:06:18.554] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.554] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.557] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.557] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.557] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.557] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.557] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.557] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.557] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[INF] aiqb file name AR0234_TGL_10bits.aiqb
[01-19 23:06:18.558] CamHAL[ERR] invalid media format, default value used.
[01-19 23:06:18.558] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[01-19 23:06:18.558] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[01-19 23:06:18.558] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[01-19 23:06:18.558] CamHAL[INF] (null), media format in tuning: 0, media format for aic 0.
[01-19 23:06:18.559] CamHAL[ERR] Failed to find DevName for cameraId: 0, get video node: ov13b10 , devname: /dev/v4l-subdev1
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
[01-19 23:06:18.586] CamHAL[ERR] Get entity fail for calling getEntityById
[01-19 23:06:18.586] CamHAL[ERR] Get entity fail for calling getEntityById
[01-19 23:06:18.586] CamHAL[ERR] setup Link ov13b10  [-1:0] ==> Intel IPU6 CSI-2  [-1x0] enable 1 failed.
[01-19 23:06:18.586] CamHAL[ERR] set MediaCtlConf McLink failed: ret = -1
[01-19 23:06:18.586] CamHAL[ERR] set up mediaCtl failed
[01-19 23:06:18.586] CamHAL[ERR] @configure Device Configure failed
[01-19 23:06:18.586] CamHAL[ERR] failed to config streams.
ERROR: from element /GstPipeline:pipeline0/Gstcamerasrc:camerasrc0: src pad: Internal data flow error.
Additional debug info:
gstcambasesrc.cpp(3143): gst_cam_base_src_loop (): /GstPipeline:pipeline0/Gstcamerasrc:camerasrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.016210934
Setting pipeline to NULL ...
Freeing pipeline ...

答案1

让这款相机在 Linux 下工作的工作正在进行中,您安装的模块可能不稳定,因为它们处于开发模式。我有时发现 MIPI 相机可以工作,有时却不行。我找到的适用于 ubuntu 的最佳指南在这里:https://dshedd.com/2023/07/18/fixing-lenovos-mipi-camera-problems-on-ubuntu-22-04/建议在让它工作后禁用包含您安装的各种位的存储库。这样,将来的更新就不会破坏您的系统。因此,请继续检查它是否正常工作(我的 Lenovo x1 yoga 上的系统目前在 zoom 上运行,但不在此处使用测试页面https://mozilla.github.io/webrtc-landing/gum_test.html或者奶酪)。然后,一旦它工作得足够好,就通过“sudo add-apt-repository -r ppa:oem-solutions-group/intel-ipu6”拉出和弦

答案2

怎么样:

sudo apt install linux-modules-ipu6-oem-22.04d linux-modules-ivsc-oem-22.04d

6.5.0-1018-oem在 x1-yoga (gen8) 上对我有用 ,尽管不是一直有效。

注意:(*-22.04d而不是*-22.04c)。

相关内容