lm_sensors help
Hello all
I have seen simular posts for what i am asking but I couldnt understand the one fix they had I have a: SMP 2 AMD 2000+ Tyan tiger mpx mobo 512 PC 2100 kingston ddr ecc geforce 3 rev. 3a sound blaster live value 3c59* linksys 10/100 E This is the error I receive when trying to compile lm_sensors: gcc -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -I. -Ikernel/inc lude -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 grea ter 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 on ce 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 u se 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 us e 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 (fir st 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 (fi rst use in this function) kernel/busses/i2c-amd8111.c:386: `I2C_FUNC_SMBUS_HWPEC_CALC' undeclared (first u se 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 This is untarred 2.7.0 from the site strait from the archive. No changes have been made, I did not build modules for i2c in the kernel which if i read correctly says its ok not to build the modules and that you must to use the new 2.7.0 from the site anyway. here is the link lmsensor question asking about this problem in the forum. this link is to a proposed fix, but I dont understand it. posted fix Anyone know how to fix this problem I cant seem to figure it out. thank you |
that fix in the last part of the page is a patch to the
makefile # diff -u Makefile.orig Makefile --- Makefile.orig 2003-03-19 18:20:38.000000000 +0100 +++ Makefile 2003-03-19 18:21:08.000000000 +0100 @@ -178,7 +178,7 @@ # PROGCPPFLAGS/PROGCFLAGS is to create non-kernel object files (which are linked into executables). # ARCPPFLAGS/ARCFLAGS are used to create archive object files (static libraries). # LIBCPPFLAGS/LIBCFLAGS are for shared library objects. -ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -I$(LINUX_HEADERS) +ALL_CPPFLAGS := -I. -Ikernel/include -I$(I2C_HEADERS) -idirafter $(LINUX_HEADERS) ALL_CFLAGS := -O2 ifeq ($(DEBUG),1) you are supposed to save that text as a file, and patch something with it. i can't tell if it is a kernel patch or a lm_sensors patch, but i would guess it's for lm_sensors. |
Do I copy the whole text from #diff to the end or just the first 4 lines , last 4 lines? I dont know what to copy. And thank you for the help I was kinda understanding it was a patch to something but I didnt know how to use it. hehe
|
the whole thing.
|
I have got the lm_sensors to compile makeing a patch file and installing with patch -p1 Makefile.orig Makefile, have no idea what -p1 did but I seen it used somewhere.
when i run sensors-detect it cant locate any of my modules either when I use modprobe, out put is: modprobe: Can't locate module i2c-amd756 . i located it manually in where I suppose its supposed to be /lib/modules/2.4.20/kernel/drivers/i2c/ the module needed is i2c-amd756 which is located in the directory I listed? Anyone know why? |
aren't there 2 or 3 packages you have to install for
sensors? an i2c package? and maybe run depmod -a |
nice!! finally got it working depmod -a was a command needed.
I appologize due to my lack of paying attention and reading everything, and finding iportant information on the lm site, I overlooked the answers. Another newbie not looking hard enough. for anyone else who may be having probs with the Tyan tiger 760 boards check here, you most likely will find the fix lm faq and read carfully, unlike me thanks for your patients |
goodly. i'm glad to see my patients were of some use.
|
All times are GMT -5. The time now is 03:20 AM. |