sudo make install
make -C /lib/modules/`uname -r`/build M=/home/pi/v4l2loopback modules_install
make[1]: Entering directory '/home/pi/5.15.32-v8+/linux-60652604154e70aeac81fb6155fd9d15dc39daaf'
INSTALL /lib/modules/5.15.21-v8+/extra/v4l2loopback.ko
DEPMOD /lib/modules/5.15.21-v8+
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/home/pi/5.15.32-v8+/linux-60652604154e70aeac81fb6155fd9d15dc39daaf'
SUCCESS (if you got 'SSL errors' above, you can safely ignore them)
原来/lib/modules/5.15.32-v8+上有一堆文件有错误的版本号:
cd /lib/modules/5.15.32-v8+/build
grep -R 5.15.21
include/config/auto.conf.cmd:ifneq "$(KERNELVERSION)" "5.15.21"
include/config/auto.conf:# Linux/arm64 5.15.21 Kernel Configuration
include/config/kernel.release:5.15.21-v8+
include/generated/autoconf.h: * Linux/arm64 5.15.21 Kernel Configuration
include/generated/utsrelease.h:#define UTS_RELEASE "5.15.21-v8+"
arch/arm64/kernel/vdso/vdso.lds: * Linux/arm64 5.15.21 Kernel Configuration
.config:# Linux/arm64 5.15.21 Kernel Configuration
一旦我更改了这些数字,模块就会到达正确的位置。
我不知道该由谁来报告--这是来自raspberry pi的rpi源实用工具还是一些deb包?
发布于 2022-06-29 14:20:12
rpi-源代码下载错误的内核。使用apt install raspberrypi-kernel-headers
会带来编译该模块所需的头。
https://unix.stackexchange.com/questions/707842
复制相似问题