Intel MIPI camera not found

Glad to help!

Alright, keep an eye on that list in the next days, @roberto-derenzi

We have to give some time to the developers to fix all the issues, I guess.

Hey everyone,

I have been trying to fix mine for a few hours this time around but it looks like dkms cannot build for the latest kernel. Here is the root cause:

drivers/media/i2c/ov08a10.c:4:10: fatal error: asm/unaligned.h: No such file or directory
    4 | #include <asm/unaligned.h>
      |          ^~~~~~~~~~~~~~~~~
drivers/media/i2c/ov01a1s.c:4:10: fatal error: asm/unaligned.h: No such file or directory
    4 | #include <asm/unaligned.h>
      |          ^~~~~~~~~~~~~~~~~
drivers/media/i2c/hm11b1.c:4:10: fatal error: asm/unaligned.h: No such file or directory
    4 | #include <asm/unaligned.h>
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
compilation terminated.
compilation terminated.
drivers/media/i2c/ov02c10.c:4:10: fatal error: asm/unaligned.h: No such file or directory
    4 | #include <asm/unaligned.h>
      |          ^~~~~~~~~~~~~~~~~

If anyone hears about the intel-ipu6-dkms module being patched, it would be great.

Hi @annalito,
a number of people successfully made the camera work by totally removing the intel-ipu6-dkms actually.

sudo apt-get remove --purge intel-ipu6-dkms
sudo apt-get autoclean 
sudo apt-get autoremove
sudo apt-get update
sudo apt-get upgrade
ubuntu-drivers list

There should be another driver listed that is not an oem-metapackage and not a dkms. If so, please install that one. Also, if you have installed libcamhal0, please purge it too.

1 Like

I guess I missed the part about removing both the other drivers @federicarike ! thanks for the help. my issue is solved now !

1 Like

I tried to apt remove also oem-somerville-treecko-meta and all ‘libcamhal’ libraries, besides `intel-ipu6-dkms’, and actually the output of

ubuntu-drivers list

changed (same oem-somerville-treecko-meta but different libcamhal-ipu6epmtl, same intel-ipu6-dkms. Still, after reinstalling these and checking

v4l2-ctl --list-devices

Intel MIPI Camera (platform:v4l2loopback-000):

/dev/video0

the result is a blank screen on

ffplay -f video4linux2 /dev/video0

Glad you solved, @annalito ! :partying_face:

Hi @roberto-derenzi,

so what did you reinstall? Only the oem metapackage and the libcamhal-ipu6epmtl ?

Please do NOT reinstall the dkms one (and if you did, please purge it).

Hi @feredicarike, thanks for your prompt reply! Yes I just redid the following:

sudo apt purge oem-somerville-treecko-meta
sudo apt purge intel-ipu6-dkms
sudo apt purge libcamhal-ipu6epmtl
sudo apt purge intel-ipu6-dkms

Actuially, when I sudo apt install again all four, on the dkms step I get an error for the 6.14 kernel (I do not know how to remove completely that kernel, even if I purge its source and headers something tells apt to include it in the module compilation)

Building for 6.11.0-29-generic 6.14.0-27-generic
Building initial module for 6.11.0-29-generic
Done.


ov8856.ko.zst:
Running module version sanity check.
Module version for ov8856.ko.zst
exactly matches what is already found in kernel 6.11.0-29-generic.
DKMS will not replace this module.
You may override by specifying --force.
ov08x40.ko.zst:
Running module version sanity check.

  • Original module
  • Installation
  • Installing to /lib/modules/6.11.0-29-generic/updates/dkms/
    depmod

    Building initial module for 6.14.0-27-generic
    ERROR: Cannot create report: [Errno 17] File exists: ‘/var/crash/intel-ipu6-dkms
    .0.crash’
    Error! Bad return status for module build on kernel: 6.14.0-27-generic (x86_64)
    Consult /var/lib/dkms/ipu6-drivers/0~git202406240945.aecec2aa-0ubuntu2~24.04.3/b
    uild/make.log for more information.
    dpkg: error processing package intel-ipu6-dkms (–configure):
    installed intel-ipu6-dkms package post-installation script subprocess returned
    error exit status 10
    Processing triggers for man-db (2.12.0-4build2) 

    Errors were encountered while processing:
    intel-ipu6-dkms
    E: Sub-process /usr/bin/dpkg returned an error code (1)

I hope this does not interfere with vital 6.11 module compilation. Then I reboot and ffplay produces a blank screen.

P:S. I am running 6.11.0-29-generic, of course

Wait so you downgraded to the previous kernel version?

We stayed with the 6.14 and purged the dkms.