Compiling k8temp module on Etch

| |

Next thing I would like to monitor the temperature reading on my new barebone server. So the easiest way to do is to install lm-sensors:

apt-get install lm-sensors
and run sensors-detect. After all, it is prompted to install the following modules in /etc/modules and I did:
# Generated by sensors-detect on Wed May  2 12:27:18 2007
# I2C adapter drivers
i2c-nforce2
# Chip drivers
eeprom
# Warning: the required module k8temp is not currently installed
# on your system. For status of 2.6 kernel ports check
# http://www.lm-sensors.org/wiki/Devices. If driver is built
# into the kernel, or unavailable, comment out the following line.
k8temp
However, if I follow the wiki link to www.lm-sensors.org. k8temp is only supported for 2.6.19 or later kernel, but not 2.6.18 shipped with etch. Searching from google I found the link[1] that I will need to compile and install the module manually. If you don't have kernel header you will need to install it as well:
# apt-get install linux-headers-2.6.18-4-k7
Extract the tarball and build it:
# wget http://assembler.cz/download/amd_digital_temp.tar.gz
# tar -zxvf amd_digital_temp.tar.gz
# cd amd_digital_temp

# make -C /lib/modules/`uname -r`/build SUBDIRS=$PWD modules
And install k8temp.ko to /lib/modules/`uname -r`/:
# make -C /lib/modules/`uname -r`/build SUBDIRS=$PWD  modules_install
# depmod -a 
After all, load the module:
# modprobe k8temp
And run sensors again:
# sensors
k8temp-pci-00c3
Adapter: PCI adapter
Core0 Temp:
             +18°C
Core0 Temp:
              +7°C
Core1 Temp:
             +16°C
Core1 Temp:
              +8°C

Very disappointed. I got incorrect temperature values here. How comes the chip temperatures are lower than room temperature?

I have tried to copy k8temp.c from 2.6.20 kernel source, (patch the code because cannot compiled with 2.6.18 header), recompile it again and have the same result. May be next thing is to install 2.6.20 from sid.

[1] - http://readlist.com/lists/lists.debian.org/debian-user/28/144560.html