1. Get data:
# wget
http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20080718/d51be536/attachment.bin2. Renaming and putting the stuff into a new directory:
# mkdir k10temp && mv attachment.bin k10temp/k10temp.c
3. change to ../k10temp and type (as root) "Makefile" (Big Letter "M"!):
obj-m := k10temp.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
4. root-Terminal and getting Kernel Sources (if hasn't installed yet):
# sudo apt-get install linux-source
5. root-Terminal:
# make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
6. after successful compilation the k10temp.ko was build):
# insmod k10temp.ko
7. Test:
# sensors
brings up now the following result:
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +37.2°C
8. copy and building the dependencies:
# cp k10temp.ko /lib/modules/$(uname -r)/kernel/drivers/hwmon
and
# depmod
9. write "k10temp" in /etc/modules
10. PROFIT!!!