SMbus problem ?
Hello !
I have a few problems with lm_sensors. I installed i2c-2.7.0 packages and after that i do a depmod -a.
But when i compile lm_sensors i have this errors at make step :
[root@calculus:/tmp/lm_sensors-2.7.0]# make gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/include -I/usr/local/include -I/lib/modules/2.4.20/build/include -O2 -c kernel/busses/i2c-amd8111.c -o kernel/busses/i2c-amd8111.o kernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - i2c-2.7.0 or greater required! kernel/busses/i2c-amd8111.c: In function `amd8111_access': kernel/busses/i2c-amd8111.c:238: `I2C_CLIENT_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:238: (Each undeclared identifier is reported only once kernel/busses/i2c-amd8111.c:238: for each function it appears in.) kernel/busses/i2c-amd8111.c:298: `I2C_SMBUS_BLOCK_PROC_CALL' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:309: `I2C_SMBUS_WORD_DATA_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:310: `I2C_SMBUS_BLOCK_DATA_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:311: `I2C_SMBUS_PROC_CALL_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:312: `I2C_SMBUS_BLOCK_PROC_CALL_PEC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c: In function `amd8111_func': kernel/busses/i2c-amd8111.c:385: `I2C_FUNC_SMBUS_BLOCK_PROC_CALL' undeclared (first use in this function) kernel/busses/i2c-amd8111.c:386: `I2C_FUNC_SMBUS_HWPEC_CALC' undeclared (first use in this function) kernel/busses/i2c-amd8111.c: In function `amd8111_probe': kernel/busses/i2c-amd8111.c:426: `I2C_HW_SMBUS_AMD8111' undeclared (first use in this function) make: *** [kernel/busses/i2c-amd8111.o] Error 1
However i have installed i2c-2.7.0.
An ideas ?
Regards
Signature · 3 lines
La modestie est au m?rite ce que les ombres sont aux figures dans un tableau: elle lui donne de la force et du relief.
Quoted 14 lines
I have a few problems with
lm_sensors. I installed i2c-2.7.0 packages and after that i do a depmod -a.
But when i compilelm_sensorsi have this errors at make step :[root@calculus:/tmp/lm_sensors-2.7.0]# make gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I.(quoted diff) +0
-2-Ikernel/include -I/usr/local/include -I/lib/modules/2.4.20/build/include -O2 -c
kernel/busses/i2c-amd8111.c-okernel/busses/i2c-amd8111.okernel/busses/i2c-amd8111.c:25:2: #error Your i2c is too old - (...)
However i have installed i2c-2.7.0.
Quoted 1 line
An ideas ?
This is a known problem. Pick the fixed Makefile there:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/Makefile
That should do it. If not, please checkout both i2c CVS (branch lk2-4) and lm_sensors2 CVS, that should work too.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 4 lines · On Tue, 3 Jun 2003 08:41:38 +0200 Jean Delvare <[email protected]> wrote:
This is a known problem. Pick the fixed
Makefilethere:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/Makefile
That should do it. If not, please checkout both i2c CVS (branch lk2-4) andlm_sensors2CVS, that should work too.
Ok thanks, the Makefile works well but the script for the devices files didn't work.
All the modules failed to load with sensors-detect same the PCI bus adapters.
However my motherboard is recognized :
BIOS vendor (ACPI): Nvidia
System vendor (DMI): ASUSTeK Computer INC.
BIOS version (DMI): ASUS A7N8X-X ACPI BIOS Rev 1004
(chipset: nvidi nforce2).
Regards
Sesshoumaru
Signature · 3 lines
La modestie est au m?rite ce que les ombres sont aux figures dans un tableau: elle lui donne de la force et du relief.
Quoted 9 lines
All the modules failed to load with sensors-detect same the PCI bus adapters.
However my motherboard is recognized :
BIOS vendor (ACPI): Nvidia
System vendor (DMI): ASUSTeK Computer INC.
BIOS version (DMI): ASUS A7N8X-X ACPI BIOS Rev 1004(chipset: nvidi nforce2).
nVidia's nForce2 isn't supported in 2.7.0. It is supported in CVS only. This means that you have to checkout i2c (lk2-4 branch) and lm_sensors2 from CVS if you want to have a chance to have something working.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines · On Wed, 4 Jun 2003 08:29:58 +0200 Jean Delvare <[email protected]> wrote:
nVidia's nForce2 isn't supported in 2.7.0. It is supported in CVS only. This means that you have to checkout i2c (lk2-4 branch) and
lm_sensors2from CVS if you want to have a chance to have something working.
Hmm...it seemed that lm_sensors2 isn't compatible with my motherboards i have the same errors.
Thanks for all.
Regards
Sesshoumaru
PS: Do i have to load some modules ?
Signature · 3 lines
La modestie est au m?rite ce que les ombres sont aux figures dans un tableau: elle lui donne de la force et du relief.
Quoted 8 lines
Quoted 5 lines
nVidia's nForce2 isn't supported in 2.7.0. It is supported in CVS only. This means that you have to checkout i2c (lk2-4 branch) and
lm_sensors2from CVS if you want to have a chance to have something working.Hmm...it seemed that
lm_sensors2isn't compatible with my motherboards i have the same errors.
I finally met Sesshoumaru on IRC and we fixed the problem. Sensors-detect was missing support for the nForce2. I added support, Sesshoumaru tested it and I had to slightly change the "match" string. Now it is working OK.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/