kris777 Posted August 5 Posted August 5 Can we count on adding a module to the future kernel... I mean: v4l2loopback 🙂 0 Quote
robertoj Posted August 5 Posted August 5 Does this package exist? (sorry I am away from my armbian device) https://packages.debian.org/bookworm/v4l2loopback-dkms 0 Quote
kris777 Posted August 5 Author Posted August 5 sudo apt install v4l2loopback-dkms Czytanie list pakietów... Gotowe Budowanie drzewa zależności... Gotowe Odczyt informacji o stanie... Gotowe v4l2loopback-dkms is already the newest version (0.12.7-2). 0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 8 nieaktualizowanych. root@orangepi3-lts:~# sudo modprobe v4l2loopback modprobe: FATAL: Module v4l2loopback not found in directory /lib/modules/6.12.35-current-sunxi64 0 Quote
Ryzer Posted August 5 Posted August 5 It is not an internal module so modprobe will not work. It appears to need to built separately: https://github.com/v4l2loopback/v4l2loopback You should be able to build this if you have the kernel headers that match, the just load it by using sudo insmod instead. 0 Quote
kris777 Posted Wednesday at 05:00 PM Author Posted Wednesday at 05:00 PM (edited) I can't build it from GitHub, or rather I've built it but it doesn't work because the kernel headers don't seem to match and it can't be loaded. I guess you have to compile the entire kernel with this module 🙂 ..uppss Quote modinfo /lib/modules/6.12.35-current-sunxi64/updates/v4l2loopback.ko | grep vermagic vermagic: 6.12.35-current-sunxi64 SMP mod_unload aarch64 modinfo /lib/modules/$(uname -r)/updates/v4l2loopback.ko filename: /lib/modules/6.12.35-current-sunxi64/updates/v4l2loopback.ko alias: char-major-10-255 license: GPL version: 0.15.1 author: Vasily Levin, IOhannes m zmoelnig <zmoelnig@iem.at>,Stefan Diewald,Anton Novikovet al. description: V4L2 loopback video device srcversion: 45D4A1AED5D88ED1EEB4704 depends: videodev name: v4l2loopback vermagic: 6.12.35-current-sunxi64 SMP mod_unload aarch64 parm: debug:debugging level (higher values == more verbose) (int) parm: max_buffers:how many buffers should be allocated [DEFAULT: 2] (int) parm: max_openers:how many users can open the loopback device [DEFAULT: 10] (int) parm: devices:how many devices should be created (int) parm: video_nr:video device numbers (-1=auto, 0=/dev/video0, etc.) (array of int) parm: card_label:card labels for each device (array of charp) parm: exclusive_caps:whether to announce OUTPUT/CAPTURE capabilities exclusively or not [DEFAULT: 0] (array of bool) parm: max_width:maximum allowed frame width [DEFAULT: 8192] (int) parm: max_height:maximum allowed frame height [DEFAULT: 8192] (int) sudo modprobe v4l2loopback insmod /lib/modules/6.12.35-current-sunxi64/updates/v4l2loopback.ko insmod: ERROR: could not insert module /lib/modules/6.12.35-current-sunxi64/updates/v4l2loopback.ko: Invalid module format Edited Wednesday at 05:07 PM by kris777 0 Quote
robertoj Posted Thursday at 04:53 PM Posted Thursday at 04:53 PM Uninstall the debian v4l2loopback package Did you add the build parameter to build for your specific kernel version? Did you do the final "make install" step? https://github.com/v4l2loopback/v4l2loopback?tab=readme-ov-file#build-for-a-different-kernel Search in the raspberry pi forum also 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.