Asus P4R800-VM with w83627THF sensor
Hi,
I'm trying to get lm_sensors working on an asus p4r800-vm motherboard. OS is Centos 4.4 running Kernel 2.6.9-42.0.3.EL and I have installed the libsysfs library from the lm-sensors.org website.
sensors-detect gives the following;
Driver 'w83627hf' (should be inserted):
Detects correctly:
* ISA bus address 0x0228 (Busdriver 'i2c-isa') Chip 'Winbond W83627THF Super IO Sensors' (confidence: 9)
modprobe i2c-isa succeeds
modprobe w83627hf fails with;
FATAL: Error inserting w83627hf (/lib/modules/2.6.9-42.0.3.EL/kernel/drivers/i2c/chips/w83627hf.ko): No such device
Would anyone have any pointers as to how to get this going ?
Cheers,
Andy Wright
Hi Andy,
Quoted 13 lines · Andy Wright
I'm trying to get
lm_sensorsworking on an asus p4r800-vm motherboard. OS is Centos 4.4 running Kernel 2.6.9-42.0.3.EL and I have installed the libsysfs library from the lm-sensors.org website.sensors-detect gives the following;
Driver 'w83627hf' (should be inserted):
Detects correctly:
* ISA bus address0x0228(Busdriver 'i2c-isa') Chip 'Winbond W83627THF Super IO Sensors' (confidence: 9)modprobe i2c-isa succeeds
Quoted 7 lines
modprobe w83627hf fails with;
FATAL: Error inserting w83627hf (
/lib/modules/2.6.9-42.0.3.EL/kernel/drivers/i2c/chips/w83627hf.ko): No such deviceWould anyone have any pointers as to how to get this going ?
Was the W83627THF chip found as the "primary" or "secondary" Super-I/O chip? (sensors-detect should tell you)
Signature · 1 line
Jean Delvare
Quoted 23 lines · Jean Delvare
Hi Andy,
Quoted 19 lines · Andy Wright
I'm trying to get
lm_sensorsworking on an asus p4r800-vm motherboard. OS is Centos 4.4 running Kernel 2.6.9-42.0.3.EL and I have installed the libsysfs library from the lm-sensors.org website.sensors-detect gives the following;
Driver 'w83627hf' (should be inserted):
Detects correctly:
* ISA bus address0x0228(Busdriver 'i2c-isa') Chip 'Winbond W83627THF Super IO Sensors' (confidence: 9)modprobe i2c-isa succeeds
modprobe w83627hf fails with;
FATAL: Error inserting w83627hf (
/lib/modules/2.6.9-42.0.3.EL/kernel/drivers/i2c/chips/w83627hf.ko): No such device
Quoted 7 lines
Quoted 2 lines
Would anyone have any pointers as to how to get this going ?
Was the W83627THF chip found as the "primary" or "secondary" Super-I/O chip? (sensors-detect should tell you)
Hi,
It was discovered as the secondary.....
Andy.
Hi Andy,
Quoted 22 lines · Andy Wright
Quoted 21 lines · Jean Delvare
Quoted 19 lines · Andy Wright
I'm trying to get
lm_sensorsworking on an asus p4r800-vm motherboard. OS is Centos 4.4 running Kernel 2.6.9-42.0.3.EL and I have installed the libsysfs library from the lm-sensors.org website.sensors-detect gives the following;
Driver 'w83627hf' (should be inserted):
Detects correctly:
* ISA bus address0x0228(Busdriver 'i2c-isa') Chip 'Winbond W83627THF Super IO Sensors' (confidence: 9)modprobe i2c-isa succeeds
modprobe w83627hf fails with;
FATAL: Error inserting w83627hf (
/lib/modules/2.6.9-42.0.3.EL/kernel/drivers/i2c/chips/w83627hf.ko): No such device
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Would anyone have any pointers as to how to get this going ?
Was the W83627THF chip found as the "primary" or "secondary" Super-I/O chip? (sensors-detect should tell you)
It was discovered as the secondary.....
Support for the secondary Super-I/O address was added to the w83627hf driver in kernel 2.6.11. This is the reason why it doesn't work with your 2.6.9 kernel. You will need to backport the following patch:
drivers/i2c/chips/w83627hf.c renamed from drivers/i2c/chips/w83627hf.c.orig +8 -4
@@ -67,9 +67,9 @@MODULE_PARM_DESC (init,"Set to zero to bypass chip initialization" );/* modified from kernel/include/traps.c */ -#define REG 0x2e/* The register to read/write */ +static int REG ;/* The register to read/write */ #define DEV 0x07/* Register: Logical device select */ -#define VAL 0x2f/* The value to read/write */ +static int VAL ;/* The value to read/write */ /* logical device numbers for superio_select (below) */ #define W83627HF_LD_FDC 0x00
@@ -938,10 +938,13 @@return i2c_detect (adapter, &addr_data, w83627hf_detect); } -static int w83627hf_find (int *address) +static int w83627hf_find (int sioaddr,int *address) {u16 val; +REG = sioaddr; +VAL = sioaddr +1 ; +superio_enter (); val=superio_inb (DEVID ); if(val != W627_DEVID &&
@@ -1422,7 +1425,8 @@ {int addr; -if (w83627hf_find (&addr)) { +if (w83627hf_find (0x2e , &addr) + &&w83627hf_find (0x4e , &addr)) {return -ENODEV ; } normal_isa[0 ] = addr;
Signature · 1 line
Jean Delvare
Quoted 37 lines · Jean Delvare
Support for the secondary Super-I/O address was added to the w83627hf driver in kernel 2.6.11. This is the reason why it doesn't work with your 2.6.9 kernel. You will need to backport the following patch:
drivers/i2c/chips/w83627hf.c renamed from drivers/i2c/chips/w83627hf.c.orig +6
-3@@ -67,9 +67,9 @@MODULE_PARM_DESC (init,"Set to zero to bypass chip initialization" );/* modified from kernel/include/traps.c */ -#define REG 0x2e/* The register to read/write */ +static int REG ;/* The register to read/write */ #define DEV 0x07/* Register: Logical device select */ -#define VAL 0x2f/* The value to read/write */ +static int VAL ;/* The value to read/write */ /* logical device numbers for superio_select (below) */ #define W83627HF_LD_FDC 0x00@@ -938,10 +938,13 @@return i2c_detect (adapter, &addr_data, w83627hf_detect); } -static int w83627hf_find (int *address) +static int w83627hf_find (int sioaddr,int *address) {u16 val; +REG = sioaddr; +VAL = sioaddr +1 ; +superio_enter (); val=superio_inb (DEVID ); if(val != W627_DEVID &&
drivers/i2c/chips/w83627hf.c line 1432
Quoted 9 lines
drivers/i2c/chips/w83627hf.c renamed from drivers/i2c/chips/w83627hf.c.orig +2
-1@@ -1422,7 +1425,8 @@ {int addr; -if (w83627hf_find (&addr)) { +if (w83627hf_find (0x2e , &addr) + &&w83627hf_find (0x4e , &addr)) {return -ENODEV ; } normal_isa[0 ] = addr;
Thanks for that Jean,
I'm trying a 2.6.20 kernel at the moment.... looking good so far.
Andy.