On Thursday, February 17, 2011 16:54:50 [email protected] wrote:
>  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

The above looks like it compiled the module -- but left it in your home 
directory.  That's not a place modprobe is going to look for the module.

Try running "make install" before trying modprobe.  This particular makefile 
has an "install" target which copies the module to where it needs to be.

> 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.

That's right -- and I think it's a bit more clear why that is now.


> Here is the makefile:
...
> 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)


  -- Chris

--

Chris Knadle
[email protected]
_______________________________________________
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