I'm trying to get the v4l2loopback kernel module to work on a Debian Buster instance in Google Cloud.
I've tried the following three approaches (with the current kernel's headers installed):
apt-get install v4l2loopback-dkms
apt-get install v4l2loopback-source module-assistant && module-assistant auto-install v4l2loopback-source
- Clone the github repository and compile by hand.
In all cases, the kernel is successfully installed/compiled, but when I attempt to load the it I get a list of Unknown symbol
messages from dmesg
. Specifically, those are:
[ 1260.269419] v4l2loopback: Unknown symbol video_ioctl2 (err -2)
[ 1260.277130] v4l2loopback: Unknown symbol v4l2_get_timestamp (err -2)
[ 1260.284609] v4l2loopback: Unknown symbol v4l2_ctrl_handler_init_class (err -2)
[ 1260.293824] v4l2loopback: Unknown symbol video_devdata (err -2)
[ 1260.301289] v4l2loopback: Unknown symbol v4l2_ctrl_new_custom (err -2)
[ 1260.308415] v4l2loopback: Unknown symbol video_unregister_device (err -2)
[ 1260.372483] v4l2loopback: Unknown symbol video_device_alloc (err -2)
[ 1260.380400] v4l2loopback: Unknown symbol v4l2_device_register (err -2)
[ 1260.388960] v4l2loopback: Unknown symbol __video_register_device (err -2)
[ 1260.396973] v4l2loopback: Unknown symbol v4l2_ctrl_handler_free (err -2)
[ 1260.405559] v4l2loopback: Unknown symbol v4l2_device_unregister (err -2)
[ 1260.424848] v4l2loopback: Unknown symbol video_device_release (err -2)
I don't know enough about kernel modules to really understand what this means, nor how to fix it.
This seems to be a specific issue related to the machine (Linux 4.19.0-17-cloud-amd64), because I can install the v4l2loopback modeul without any problems on my local machine.
Any suggestions on how to proceed?
What should be changed to successfully load the kernel?
Can you suggest additional information that might be useful?