I'm having trouble installing a standalone lm-sensors driver for the ITE 8721 Super-IO chip on Fedora 14. I have no experience with "make", so hopefully, someone here can steer me in the right direction.

According to "sensors-detect": 

Note: there is no driver for ITE IT8721F/IT8758E Super IO Sensors yet.
Check http://www.lm-sensors.org/wiki/Devices for updates.

The lm-sensors wiki pointed me here for a standalone driver:

http://khali.linux-fr.org/devel/misc/it87/

This page contains a source file and a makefile.

I stored the source file and makefile in my home directory. My working directory was set to my home directory, at which time I issued "make".

This is the result:

[aweiner@localhost ~]$ make
make[1]: Entering directory `/usr/src/kernels/2.6.35.11-83.fc14.i686.PAE'
  CC [M]  /home/aweiner/it87.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/aweiner/it87.mod.o
  LD [M]  /home/aweiner/it87.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.35.11-83.fc14.i686.PAE

When I issue modprobe it87, I get the following error:

[root@localhost ~]# modprobe it87
FATAL: Error inserting it87 (/lib/modules/2.6.35.11-83.fc14.i686.PAE/kernel/drivers/hwmon/it87.ko): No such device

A copy of it87.ko is stored in my home directory. There is also a copy of it87.ko in /lib/modules/2.6.35.11-83.fc14.i686.PAE/kernel/drivers/hwmon/it87 but it is downlevel, it is not the one I compiled.

Here is the makefile:

=================================================================================================================================================================================

# For building for the current running version of Linux
TARGET        := $(shell uname -r)
# Or specific version
#TARGET        := 2.6.35.7

KERNEL_MODULES    := /lib/modules/$(TARGET)
KERNEL_BUILD    := $(KERNEL_MODULES)/build
SYSTEM_MAP    := $(shell if test -r /boot/System.map-$(TARGET) ; then echo /boot/System.map-$(TARGET) ; else echo $(KERNEL_BUILD)/System.map ; fi)

DRIVER := it87

# Directory below /lib/modules/$(TARGET)/kernel into which to install
# the module:
MOD_SUBDIR = drivers/hwmon

obj-m    := $(DRIVER).o

.PHONY: all install modules modules_install clean

all: modules

# Targets for running make directly in the external module directory:
modules clean:
    @$(MAKE) -C $(KERNEL_BUILD) M=$(CURDIR) $@

install: modules_install

modules_install:
    test -d $(KERNEL_MODULES)/kernel/$(MOD_SUBDIR) || mkdir $(KERNEL_MODULES)/kernel/$(MOD_SUBDIR)
    cp $(DRIVER).ko $(KERNEL_MODULES)/kernel/$(MOD_SUBDIR)
    depmod -a -F $(SYSTEM_MAP) $(TARGET)

=========================================================================================================================================================================================


_______________________________________________
Mid-Hudson Valley Linux Users Group                  http://mhvlug.org
http://mhvlug.org/cgi-bin/mailman/listinfo/mhvlug

Upcoming Meetings (6pm - 8pm)                         MHVLS Auditorium
  Mar 2 - MHVLUG 8th Anniversary - Show and Tell
  Apr 6 - Introduction to IPv6
  May 4 - Inkscape

Reply via email to