umlaeute / v4l2loopback

v4l2-loopback device
GNU General Public License v2.0
3.61k stars 515 forks source link

modprobe: ERROR: could not insert 'v4l2loopback': Exec format error #583

Closed AmineMarnissi closed 3 months ago

AmineMarnissi commented 3 months ago

I installed it with these commands:

git clone https://github.com/umlaeute/v4l2loopback.git
cd v4l2loopback
sudo make
sudo make install
sudo depmod -a

When I run

$ sudo modprobe v4l2loopback

modprobe: ERROR: could not insert 'v4l2loopback': Exec format error

and

$ sudo dmesg | grep -i v4l2loopback

[10448.341827] v4l2loopback: module PLT section(s) missing
[11603.729466] v4l2loopback: module PLT section(s) missing

Linux version:

$ uname -a
Linux EAC-5000 5.10.104-tegra #2 SMP PREEMPT Wed Nov 22 00:52:35 EST 2023 aarch64 aarch64 aarch64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.6 LTS
Release:    20.04
Codename:   focal
moacirrf commented 3 months ago

Hi, maybe it help

  1. Try to identify if all dependencies are loaded: modinfo v4l2loopback.ko

will show something like

depends: videodev

  1. load this module first sudo modprobe videodev

  2. Try to load directly from the folder that you compile sudo insmod v4l2loopback.ko

  3. check with dmesg command

umlaeute commented 3 months ago

i strongly suspect this to be a duplicate of

(btw, you can search old issues (open or closed) to see whether your problem was already reported)

umlaeute commented 3 months ago

after doing slightly more research (basically doing a websearch for "PLT section(s) missing"), i found this Debian bug:

(note that this is not the same issue as the ones listed in my previous comment)

however, it also confirms that the issue is not within v4l2loopback, but rather with the kernel packaging. the bug was discovered (and fixed) in 2020, so your "Ubuntu 20.04" might well be affected.

so i'm afraid this is out of scope for us.