一、前言
硬件上通过it87芯片进行风扇转速的读取。硬件上存在it87芯片,但是Linux系统加载it87.ko(modprobe it87)模块时,提示“modprobe: ERROR: could not insert ‘it87’: No such device”。未找到it87相关的设备,it87模块无法加载,导致风扇转速读取失败。
二、问题原因
硬件上确实存在it87芯片,但是无法进行加载,通过分析dmesg内核调试信息(Unsupported chip (DEVID=0x8785或者0x8784)\n)以及sensors-detect获取硬件传感器信息(一路Y),会出现如下:
Probing for Super-I/O at 0x2e/0x2f
Trying family National Semiconductor/ITE'... No Trying family
SMSC’… No
Trying family VIA/Winbond/Nuvoton/Fintek'... No Trying family
ITE’… Yes
Found unknown chip with ID 0x8785(有的平台上出现0x8784)
通过查询it87.ko对应的源代码it87.c,兼容的型号列表中,确实未有0x8785或者0x8784,所以提示could not insert ‘it87’: No such device正常。
* Supports: IT8603E Super I/O chip w/LPC interface
* IT8620E Super I/O chip w/LPC interface