This modification is required because RedHat 5.1 (x86_64) has lm_sensors 2.x package(s) installed with no Xeon temperature monitoring device driver. You can verify this by running the sensors-detect progam and answer (YES – default) to all questions. The process will create a file /etc/sysconfig/lm_sensors.conf that determines which I2C device drivers are needed at startup:
/usr/local/sbin/sensors-detect
Get the coretemp (Xeon/Core2Duo temperature monitoring device driver’s source code (ex. Fedora project)
coretemp-kmod-1.0-4.92.1.6.el5.src.rpm
Install the source code
rpm -ivh coretemp-kmod-1.0-4.92.1.6.el5.src.rpm
Verify that there is a kernel development package installed:
rpm -qa | grep kernel-devel
If there is no package such as kernel-devel-2.6.18-53.el5 present in the system’s configuration please install it. Target systems should be able to recompile new device drivers.
Build the device driver from the scratch, compiled for the kernels that are present in the system.
cd /usr/src/redhat/SPECS rpmbuild -ba -v coretemp-kmod.spec cd ../RPMS/x86_64 rpm -ivh --nodeps kmod-coretemp-xen-1.0-4.53.el5.x86_64.rpm
Modify the sensors-detect generated device driver list and replace all the specific chip drivers with the coretemp device driver module.
cd /etc/sysconfig vi lm_sensors
Remove all the MODULE_0=, MODULE_1, … lines at the end of the file and insert and leave but one device driver module line
MODULE_0=coretemp
Save the file. Check that the lm_sensors package is installed to start by default.
chkconfig --list lm_sensors