Re: Cannot compile w83627ehf standalone driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11/09/13 06:44, singumal wrote:
Phil Perry <phil@xxxxxxxxxx> wrote:

On 06/09/13 21:22, Jean Delvare wrote:
On Fri, 06 Sep 2013 08:37:43 -0700, singumal wrote:
I have an ASRock IMB-170 Mini-ITX board; 3.3.4's sensors-detect shows:

    Found `Winbond W83627UHG/NCT6627UD Super IO Sensors'        Success!
        (address 0x290, driver `w83627ehf')

I'm on an older kernel, and I can't seem to compile the driver
from:

     http://khali.linux-fr.org/devel/lm-sensors/drivers/w83627ehf/


[root@plain1 driver]# uname -a
Linux plain1 2.6.18-274.el5 #1 SMP Fri Jul 22 04:43:29 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
[root@plain1 driver]# make
    CC [M]  /root/driver/w83627ehf.o
/root/driver/w83627ehf.c: In function `in_from_reg':
/root/driver/w83627ehf.c:416: error: implicit declaration of function `DIV_ROUND_CLOSEST'
... [many more errors and warnings]

This driver was never tested for kernels older than 2.6.32. More
compatibility work would be needed to get it to build and work on
kernel 2.6.18.

I'm wondering if maybe Redhat can provide a backported version as a
separate package? You're probably not the only one asking for this, as
this is a popular driver.


I've already done a backport of the w83627ehf for RHEL5 and RHEL6, and
it is packaged as a kABI-tracking kmod RPM package (kmod-w83627ehf) in
the elrepo repository.

http://elrepo.org/tiki/kmod-w83627ehf

This driver is backported from the longterm kernel-3.2.50.

Once you have set up the elrepo repository:

yum install kmod-w83627ehf

will pull in the updated driver.

Further, because it's a kABI-tracking package the driver will seamlessly
work with new kernels so you will not need to recompile the driver
against each new kernel update (an advantage of Red Hat's stable kernel
ABI).

Regards,

Phil


Thank you very much, Phil.

Unfortunately, it doesn't seem to quite like my system,

The RPM installed fine, but "sensors" only shows coretemp, not the chip.
Finally I checked the module - something isn't right:

[root@tm3 etc]# modprobe w83627ehf
FATAL: Error inserting w83627ehf (/lib/modules/2.6.18-274.el5/weak-updates/w83627ehf/w83627ehf.ko): No such device



Hi,

I'm not sure what the problem is. One thing I note is that you are running an older RHEL 5.7 kernel. Would it be possible to try booting the latest/current RHEL kernel to at least eliminate that as the possible cause (i.e, a RHEL 5.9 kernel; kernel-2.6.18-348.16.1.el5 is the latest).

Feedback for W83627UHG support was positive and it was reported as working here (albeit on RHEL6):

http://elrepo.org/bugs/view.php?id=386

Regards,

Phil



_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux