首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >使安装模块位于错误的内核版本目录中

使安装模块位于错误的内核版本目录中
EN

Unix & Linux用户
提问于 2022-06-28 12:34:38
回答 1查看 565关注 0票数 0
代码语言:javascript
运行
复制
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+上有一堆文件有错误的版本号:

代码语言:javascript
运行
复制
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包?

EN

回答 1

Unix & Linux用户

发布于 2022-06-29 14:20:12

rpi-源代码下载错误的内核。使用apt install raspberrypi-kernel-headers会带来编译该模块所需的头。

票数 1
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/707842

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档