问题报告|DKMS方式安装IT87 Driver失败。

#95 · closed · 2 comments

View on GitHub ↗

liufanl

**例行检查** - [*] 我已经查看并确认没有相似 ISSUE - [*] 我已经自己尝试解决过 - [*] 我已确认问题来自脚本而非自己的环境问题 - [*] 我按规范填写了 Issue 我的 PVE 版本为:9.2.5 我是用的脚本版本为:11.0.0 **问题描述** 我出现的问题:DKMS方式安装IT87 Driver失败 **复现步骤** 运行脚本,选择10 . 第三方工具->4 . IT87 Driver->1 . 安装 (DKMS 编译),输入确认词后,会报下列错误。在这之前,芯片型号已经设置成force_id=0x8625,IT8625E。 [15:08:53] STEP 安装依赖: pve-headers-7.0.14-6-pve Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'proxmox-headers-7.0.14-6-pve' instead of 'pve-headers-7.0.14-6-pve' proxmox-headers-7.0.14-6-pve is already the newest version (7.0.14-6). 0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded. [15:08:55] STEP 克隆源码到 /usr/src/it87... remote: Enumerating objects: 12, done. remote: Counting objects: 100% (12/12), done. remote: Compressing objects: 100% (11/11), done. remote: Total 12 (delta 1), reused 10 (delta 1), pack-reused 0 (from 0) Unpacking objects: 100% (12/12), 85.16 KiB | 444.00 KiB/s, done. From https://github.com/shauno8/it87 * branch 81ae4a610ea763fa7f8cd195e712c41f33207264 -> FETCH_HEAD Note: switching to 'FETCH_HEAD'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c <new-branch-name> Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at 81ae4a6 Add files via upload [15:08:56] STEP DKMS 编译安装... fatal: No names found, cannot describe anything. Error! Arguments <module> and <module-version> are not specified. Usage: add <module>/<module-version> or add -m <module>/<module-version> or add -m <module> -v <module-version> make: *** [Makefile:98: dkms] Error 1 [15:08:56] ERROR DKMS 编译安装失败 提示: 请检查 make/dkms 输出;可能需要安装 pve-headers 或使用直接编译模式

Comments

Mapleawaa

鉴于自动化脚本在特定环境下可能不稳定,建议采用更可靠的手动编译方式。 步骤 1:卸载旧的 it87 模块 为避免冲突,先清理可能存在的旧版本。 ```bash sudo dkms remove -m it87 -v <old_version> --all sudo rm -rf /usr/src/it87-<old_version> ``` 说明:请将 <old_version> 替换为之前尝试安装的版本号,如果不知道,可以跳过此步。 步骤 2:安装编译依赖 确保系统已安装必要的编译工具和内核头文件。 ```bash sudo apt update sudo apt install -y dkms git build-essential linux-headers-$(uname -r) ``` 提示:对于某些内核版本,可能还需要安装 dwarves 包来解决 BTF 生成问题。 ```bash sudo apt install -y dwarves ``` 步骤 3:克隆一个维护更积极的驱动源码 frankcrawford/it87 是一个更活跃、社区反馈更多的分支。 ```bash cd /usr/src sudo git clone https://github.com/frankcrawford/it87.git ``` 步骤 4:手动配置 DKMS 进入源码目录,查看是否存在 dkms.conf 文件。 ```bash cd it87 ls -l dkms.conf ``` 如果 dkms.conf 存在:可以尝试直接运行 sudo make dkms 进行编译安装。 如果 dkms.conf 不存在:需要手动创建。使用 sudo nano dkms.conf 创建文件,并添加以下内容: ```conf PACKAGE_NAME="it87" PACKAGE_VERSION="1.0" BUILT_MODULE_NAME[0]="it87" MAKE[0]="make -j$(nproc)" DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon" AUTOINSTALL="YES" ``` 保存退出后,再运行 sudo make dkms。 步骤 5:加载模块并验证 编译安装成功后,强制加载模块并检查是否生效。 ```bash sudo modprobe it87 force_id=0x8625 sudo sensors ``` 如果 sensors 命令能正常显示温度、风扇转速等信息,则说明驱动安装成功。

liufanl

好的,非常感谢!!!!! 在 2026-08-01 12:35:58,"CyreneNight" ***@***.***> 写道: Mapleawaa left a comment (PVE-Tools/PVE-Tools-9#95) 鉴于自动化脚本在特定环境下可能不稳定,建议采用更可靠的手动编译方式。 步骤 1:卸载旧的 it87 模块 为避免冲突,先清理可能存在的旧版本。 sudo dkms remove -m it87 -v <old_version> --all sudo rm -rf /usr/src/it87-<old_version> 说明:请将 <old_version> 替换为之前尝试安装的版本号,如果不知道,可以跳过此步。 步骤 2:安装编译依赖 确保系统已安装必要的编译工具和内核头文件。 sudo apt update sudo apt install -y dkms git build-essential linux-headers-$(uname -r) 提示:对于某些内核版本,可能还需要安装 dwarves 包来解决 BTF 生成问题。 sudo apt install -y dwarves 步骤 3:克隆一个维护更积极的驱动源码 frankcrawford/it87 是一个更活跃、社区反馈更多的分支。 cd /usr/src sudo git clone https://github.com/frankcrawford/it87.git 步骤 4:手动配置 DKMS 进入源码目录,查看是否存在 dkms.conf 文件。 cd it87 ls -l dkms.conf 如果 dkms.conf 存在:可以尝试直接运行 sudo make dkms 进行编译安装。 如果 dkms.conf 不存在:需要手动创建。使用 sudo nano dkms.conf 创建文件,并添加以下内容: PACKAGE_NAME="it87"PACKAGE_VERSION="1.0" BUILT_MODULE_NAME[0]="it87" MAKE[0]="make -j$(nproc)" DEST_MODULE_LOCATION[0]="/kernel/drivers/hwmon"AUTOINSTALL="YES" 保存退出后,再运行 sudo make dkms。 步骤 5:加载模块并验证 编译安装成功后,强制加载模块并检查是否生效。 sudo modprobe it87 force_id=0x8625 sudo sensors 如果 sensors 命令能正常显示温度、风扇转速等信息,则说明驱动安装成功。 — Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today! You are receiving this because you authored the thread.Message ID: ***@***.***>