You can get it by doing
Code: Select all
git clone git://github.com/patjak/fitpc2_tz
Edit: This driver is written for the 2.6.31 kernel (might also work for newer releases). Irads or Denis, please move it into 9.10 forum.
Cheers
Code: Select all
git clone git://github.com/patjak/fitpc2_tz
Code: Select all
fit@ubuntu-fitpc2:~/thermal-zone/fitpc2_tz$ make
make -C /lib/modules/2.6.24-34-fitpc2/build M=/home/fit/thermal-zone/fitpc2_tz
make[1]: Entering directory `/usr/src/linux-headers-2.6.24-34-fitpc2'
LD /home/fit/thermal-zone/fitpc2_tz/built-in.o
CC [M] /home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.o
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c: In function ‘get_temp’:
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:98: error: implicit declaration of function ‘msleep’
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c: At top level:
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:130: warning: ‘enum thermal_trip_type’ declared inside parameter list
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:130: warning: its scope is only this definition or declaration, which is probably not what you want
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c: In function ‘get_trip_type’:
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:133: error: dereferencing pointer to incomplete type
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:133: error: ‘THERMAL_TRIP_ACTIVE’ undeclared (first use in this function)
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:133: error: (Each undeclared identifier is reported only once
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:133: error: for each function it appears in.)
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c: At top level:
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:148: warning: initialisation from incompatible pointer type
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:149: error: unknown field ‘get_crit_temp’ specified in initialiser
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:149: warning: initialisation from incompatible pointer type
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:150: warning: initialisation from incompatible pointer type
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:151: warning: initialisation from incompatible pointer type
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c: In function ‘fitpc2_init’:
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:172: error: too many arguments to function ‘thermal_zone_device_register’
/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.c:177: error: too many arguments to function ‘thermal_zone_device_register’
make[2]: *** [/home/fit/thermal-zone/fitpc2_tz/fitpc2_tz.o] Error 1
make[1]: *** [_module_/home/fit/thermal-zone/fitpc2_tz] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.24-34-fitpc2'
make: *** [all] Error 2
fit@ubuntu-fitpc2:~/thermal-zone/fitpc2_tz$ uname -a
Linux ubuntu-fitpc2 2.6.24-34-fitpc2 #1 PREEMPT RT Tue Sep 29 17:21:05 IST 2009 i686 GNU/Linux
Code: Select all
patrik@patrik-server:~$ cat /sys/class/thermal/thermal_zone2/temp
56
patrik@patrik-server:~$ cat /sys/class/thermal/thermal_zone3/temp
53