Installation report/Feedback
Hi all,
I just installed lm_sensors on my box and it went fine.
The machine is a 4MBO OEM machine sold in Germany as "Plus VolksPC 2600". It contains an OEM Asus A7N8X MB version with an nvidia nforce2 chipset. It is supported by the i2c-nforce2 driver out of the box. I used the "patch-kernel" approach for i2c and "compile separately" for lm_sensors. Kernel is 2.4.23, lm_sensors 2.8.1
Here is the output of sensors:
eeprom-i2c-0-50
Adapter: SMBus nForce2 adapter at 5000
Algorithm: Non-I2C SMBus adapter
Unknown EEPROM type (0)
eeprom-i2c-0-51
Adapter: SMBus nForce2 adapter at 5000
Algorithm: Non-I2C SMBus adapter
Unknown EEPROM type (32)
as99127f-i2c-1-2d
Adapter: SMBus nForce2 adapter at 5500 Algorithm: Non-I2C SMBus adapter VCore 1: +1.70 V (min = +1.49 V, max = +1.81 V) VCore 2: +1.70 V (min = +1.49 V, max = +1.81 V) +3.3V: +3.34 V (min = +2.98 V, max = +3.63 V) +5V: +4.89 V (min = +4.52 V, max = +5.48 V) +12V: +11.48 V (min = +10.83 V, max = +13.15 V) -12V: -12.00 V (min = -0.00 V, max = -0.00 V) -5V: -4.54 V (min = -0.00 V, max = -0.00 V) fan1: 6683 RPM (min = 3000 RPM, div = 2) fan2: 0 RPM (min = 3000 RPM, div = 2) fan3: 0 RPM (min = 3000 RPM, div = 2) M/B Temp: +28?C (limit = +60?C) CPU Temp: +43.4?C (limit = +120?C, hysteresis = +100?C) temp3: +255.4?C (limit = +120?C, hysteresis = +100?C)
vid: +1.650 V
alarms:beep_enable:
Sound alarm enabled
eeprom-i2c-2-50
Adapter: bt848 #0
Algorithm: Bit-shift algorithm
Unknown EEPROM type (0)
I have some random notes about it.
- On the first try, sensors-detect segfaulted. I tried to reboot, which failed because hda had write errors. Only a complete unplug from mains for the usual 30s made it boot again. As I used this machine for some time before witha wild mix of stock kernel, nvidia and lm_sensors modules, I'm not too sure what caused this. After the reboot (which definitivly brought kernel sources and running kernel in sync) is just works now, so IMHO having sources, config and running kernel the same seems to be important.
- My bttv card run fine as ever.
- On the sensors output, the fan1 is reported at 3307RPM by the BIOS, CPU Temp as 47 degrees.
- sensors-detect produced a line # no driver for Winbond W83L785TS yet, ask us for one! and so I do ;-)
I can help with applying patches and retrying, or if you need more info, I will provide it.
Bye,
Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031207/5c677dc6/attachment.bin
Quoted 3 lines
Unknown EEPROM type (0)
(...)
Unknown EEPROM type (32)
This is a known bug and is fixed in CVS.
Quoted 8 lines
- On the first try, sensors-detect segfaulted. I tried to reboot, which failed because hda had write errors. Only a complete unplug from mains for the usual 30s made it boot again. As I used this machine for some time before witha wild mix of stock kernel, nvidia and
lm_sensorsmodules, I'm not too sure what caused this. After the reboot (which definitivly brought kernel sources and running kernel in sync) is just works now, so IMHO having sources, config and running kernel the same seems to be important.
Yes, it is very important, especially since version 2.8.1, because a change in the i2c structures make original modules and newly compiled module incompatible.
Quoted 1 line
- My bttv card run fine as ever.
Great :)
Quoted 2 lines
- On the sensors output, the fan1 is reported at 3307RPM by the BIOS, CPU Temp as 47 degrees.
Try the following compute line in sensors.conf ("as99127f-*" section):
compute fan1 @/2, @*2.0
As for temp2, there are three possible formulae in sensors.conf, try the other ones.
Also, you can probably add ignore lines for fan2, fan3 and temp3.
Quoted 2 lines
- sensors-detect produced a line # no driver for Winbond W83L785TS yet, ask us for one! and so I do ;-)
OK, will write a driver if I can find some spare time.
Thanks a lot for providing feedback, this is very appreciated :)
BTW, your chipset isn't really an AS99127F, but an ASB100. We now have a separate driver for it in CVS, you should give it a try. The i2c patch you used is OK, you just need to download and install lm_sensors2 CVS:
http://secure.netroedge.com/~lm78/download.html#cvs
We still need to update sensors-detect to reflect that, so don't trust it when it says you should use the w83781d driver, and use asb100 instead.
Thanks again :)
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 4 lines · Jean Delvare
Quoted 2 lines
(...)
Unknown EEPROM type (32)This is a known bug and is fixed in CVS.
Yes. Great!
Quoted 4 lines
Yes, it is very important, especially since version 2.8.1, because a change in the i2c structures make original modules and newly compiled module incompatible.
IMHO it could be stressed a bit more that all three (running kernel, kernel source and lm_sensor) should be the same to avoid trouble. I somehowhad a different source than the running kernel. Well, more idot proof thing will created more creative idiot ;-)
Quoted 2 lines
As for temp2, there are three possible formulae in sensors.conf, try the other ones.
Actually is is mentioned in the comments. Reading the right parts is an art ;-)
Quoted 5 lines
Quoted 3 lines
- sensors-detect produced a line # no driver for Winbond W83L785TS yet, ask us for one! and so I do ;-)
OK, will write a driver if I can find some spare time.
Great! Thank you.
Quoted 8 lines
BTW, your chipset isn't really an AS99127F, but an ASB100. We now have a separate driver for it in CVS, you should give it a try. The i2c patch you used is OK, you just need to download and install
lm_sensors2CVS:
http://secure.netroedge.com/~lm78/download.html#cvs
We still need to update sensors-detect to reflect that, so don't trust it when it says you should use the w83781d driver, and use asb100 instead.
This seems to be already done.
One more note on making lm_sensors more "package-friendly". You could add -rpath $PREFIX/lib (or -R, depending on the linker) to make sure that libsensors is always found by the package binaries. For testing, I use prefix=/usr/local/lm_sensors, so this would help me.
Also a make uninstall target (of course, automatically in sync with make install, in the worst case via a generated file list) would IMHO encourage people to try things.
Bye,
Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031214/c349e927/attachment.bin
Quoted 4 lines
IMHO it could be stressed a bit more that all three (running kernel, kernel source and
lm_sensor) should be the same to avoid trouble. I somehowhad a different source than the running kernel. Well, more idot proof thing will created more creative idiot ;-)
From i2c/QUICKSTART and lm_sensors2/QUICKSTART:
* Make sure you have the kernel tree corresponding to your current kernel in /lib/modules/(uname -r)/build.
Even if the source is there, it may not correspond to your running kernel. If so, you will have to recompile your kernel.
From lm_sensors2/INSTALL:
This package REQUIRES i2c-2.8.1 or later!!!
So it's already in there.
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
- sensors-detect produced a line # no driver for Winbond W83L785TS yet, ask us for one! and so I do ;-)
OK, will write a driver if I can find some spare time.
Great! Thank you.
BTW, could you please provide a dump of your chip? The data sheet isn't always clear about how things should be handled, so a sample dump would help:
i2cdump 0 0x2e (or i2cdump 1 0x2e if it's on the second bus).
Quoted 9 lines
Quoted 7 lines
BTW, your chipset isn't really an AS99127F, but an ASB100. We now have a separate driver for it in CVS, you should give it a try. The i2c patch you used is OK, you just need to download and install
lm_sensors2CVS: http://secure.netroedge.com/~lm78/download.html#cvs
We still need to update sensors-detect to reflect that, so don't trust it when it says you should use the w83781d driver, and use asb100 instead.This seems to be already done.
Yes, this was done right before releasing 2.8.2.
Quoted 4 lines
One more note on making
lm_sensorsmore "package-friendly". You could add -rpath $PREFIX/lib (or -R, depending on the linker) to make sure that libsensors is always found by the package binaries. For testing, I use prefix=/usr/local/lm_sensors, so this would help me.
I'm not sure I understand what you need. Could you please provide a patch against CVS that does what you want?
Quoted 3 lines
Also a make uninstall target (of course, automatically in sync with make install, in the worst case via a generated file list) would IMHO encourage people to try things.
I agree. That might not be easy to do though, since our Makefile spreads over many directories. I don't think I'll have the time to take care about that. Maybe MDS will, or you can work it out yourself and submit a patch against CVS. Idealy, patches would be needed for both i2c and lm_sensors2 (i2c being easier, of course).
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 2 lines · Jean Delvare
So it's already in there.
Yes, this should have been sufficient even for me ;)
Quoted 6 lines
BTW, could you please provide a dump of your chip? The data sheet isn't always clear about how things should be handled, so a sample dump would help:
i2cdump 0
0x2e(or i2cdump 10x2eif it's on the second bus).
Here you are:
i2cdump 1 0x2e
No size specified (using byte-data access)
WARNING! This program can confuse your I2C bus, cause data loss and
worse!
I will probe file /dev/i2c-1, address 0x2e, mode byte You have five seconds to reconsider and press CTRL-C!
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: ff ff ff ff ff ff ff ff ff ff ff ff XX ff XX ff ............X.X. 10: ff XX ff ff ff ff ff ff ff ff XX XX ff ff ff ff .X........XX.... 20: 39 3a 00 00 00 00 59 2a 00 00 00 XX 00 ff 00 00 9:....Y*...X.... 30: 00 00 00 00 00 XX 00 50 4b 50 4b 00 00 00 00 00 .....X.PKPK..... 40: 0d 00 00 00 00 80 ff ff ff XX ff ff a3 5c 70 ff ?....?...X..?\p. 50: 06 04 03 64 7f 4b 46 XX 46 00 fa bc ff ff ff ff ???d?KFXF.??.... 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 70: ff ff ff ff ff ff ff ff ff ff XX ff ff ff ff ff ..........X..... 80: ff ff ff ff ff 00 18 ff ff ff ff ff ff ff ff ff ......?......... 90: ff XX ff ff ff ff ff ff ff XX ff ff ff ff ff ff .X.......X...... a0: ff ff ff ff ff ff ff ff ff ff XX ff ff ff ff ff ..........X..... b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff XX ff ..............X. e0: c9 02 3a 71 39 38 37 XX ff ff ff ff ff ff ff ff ??:q987X........ f0: ff 2e 00 ff 00 62 00 ff 00 00 XX 00 00 XX ff ff .....b....X..X..
Quoted 7 lines
Quoted 4 lines
One more note on making
lm_sensorsmore "package-friendly". You could add -rpath $PREFIX/lib (or -R, depending on the linker) to make sure that libsensors is always found by the package binaries. For testing, I use prefix=/usr/local/lm_sensors, so this would help me.I'm not sure I understand what you need. Could you please provide a patch against CVS that does what you want?
Something like
Makefile 2003-12-14 15:44:53.000000000 +0100 renamed from Makefile.orig 2003-12-14 15:40:38.000000000 +0100 +2 -0
@@ -95,6 +95,8 @@ # library files (both static and shared) will be installed. LIBDIR := $(PREFIX)/lib +EXLDFLAGS := -Wl,-rpath,$(LIBDIR) + # You should not need to change this. It is the directory into which the # executable program files will be installed. BINDIR for programs that are # also useful for normal users, SBINDIR for programs that can only be run
So that libraries are found. Verify e.g. with
ldd /usr/local/lm_sensors/bin/sensors
libsensors.so.3 => /usr/local/lm_sensors/lib/libsensors.so.3 (0x40018000)
libc.so.6 => /lib/libc.so.6 (0x40045000)
libm.so.6 => /lib/libm.so.6 (0x40178000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)Unfortunately I do not understand the recursive make system well enough ATM for a complete patch.
Additionally, some toolchains use -R as the linker argument for the same effect (e.g. Solaris ld). Luckily IMHO gnu ld is a sure assumption.
Bye,
Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031214/0943c7ae/attachment.bin
Quoted 13 lines
Here you are:
i2cdump 10x2e
No size specified (using byte-data access) (...)
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: ff ff ff ff ff ff ff ff ff ff ff ff XX ff XX ff 10: ff XX ff ff ff ff ff ff ff ff XX XX ff ff ff ff 20: 39 3a 00 00 00 00 59 2a 00 00 00 XX 00 ff 00 00 30: 00 00 00 00 00 XX 00 50 4b 50 4b 00 00 00 00 00 40: 0d 00 00 00 00 80 ff ff ff XX ff ff a3 5c 70 ff 50: 06 04 03 64 7f 4b 46 XX 46 00 fa bc ff ff ff ff 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff 70: ff ff ff ff ff ff ff ff ff ff XX ff ff ff ff ff
Quoted 8 lines
80: ff ff ff ff ff 00 18 ff ff ff ff ff ff ff ff ff 90: ff XX ff ff ff ff ff ff ff XX ff ff ff ff ff ff
a0: ff ff ff ff ff ff ff ff ff ff XX ff ff ff ff ff
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff XX ff
e0: c9 02 3a 71 39 38 37 XX ff ff ff ff ff ff ff ff
f0: ff 2e 00 ff 00 62 00 ff 00 00 XX 00 00 XX ff ff
Hu-ho. These "XX" are bad. I would say your I2C bus is somehow broken. Does an i2cdump on your other chip (ASB100) leads to the same kind of output?
Does a new i2cdump on the W83L785TS-S displace the "XX"? What if you unload all i2c client modules before dumping? What if you try the "consectutive byte address mode"? (i2cdump 1 0x2e c)
Anyway, I just finished the new driver and commited it to our CVS repository. Support is preliminary, which means that the driver should work with minimal functions, and sensors-detect knows about the driver, but there is no sensors/libsensors support yet.
Could you please give it a try? You'll also have to get an updated i2c-id.h file. No need to reinstall i2c completely, get the updated file from here:
http://www2.lm-sensors.nu/~lm78/cvs/i2c/kernel/i2c-id.h
Then just update your local cvs lm_sensors2 checkout, compile it (maybe with DEBUG set at first), install it, and try loading the w83l785ts module.
If it works, you should be able to see a temp file here:/proc/sys/dev/sensors/w83l785ts-i2c-0-2e/
If you cat that file, you'll see, in order, the high temperature limit and the measured limit. Contrary to other chips, you can't change the limit (or at least that what the poor data sheet makes me think).
If this works, I'll add support to the libsensors library, the sensors program, the sensors.conf.eg file and write a documentation file.
Quoted 16 lines
Something like
Makefile 2003-12-14 15:44:53.000000000 +0100 renamed from Makefile.orig 2003-12-14 15:40:38.000000000 +0100 +2
-0@@ -95,6 +95,8 @@ # library files (both static and shared) will be installed. LIBDIR := $(PREFIX)/lib +EXLDFLAGS := -Wl,-rpath,$(LIBDIR) + # You should not need to change this. It is the directory into which # the executable program files will be installed. BINDIR for programs # that are also useful for normal users, SBINDIR for programs that# can only be runSo that libraries are found. Verify e.g. with
ldd/usr/local/lm_sensors/bin/sensors
Quoted 7 lines
libsensors.so.3 => /usr/local/lm_sensors/lib/libsensors.so.3 (0x40018000) libc.so.6 => /lib/libc.so.6 (0x40045000) libm.so.6 => /lib/libm.so.6 (0x40178000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)Unfortunately I do not understand the recursive make system well enough ATM for a complete patch.
Hmm. If I understand you well, this is meant so that at *runtime*, the sensors binary knows where to look for libsensors? There's already /etc/ld.so.conf for that, and LD_LIBRARY_PATH too. I'm not sure that binaries looking at specific places by themselves are considered very safe. And even without security considerations, what if the end-user wants to change which libraries are used? Wouldn't he/she get confused that the binary doesn't follow the usual ld.so.conf order?
Quoted 3 lines
Additionally, some toolchains use -R as the linker argument for the same effect (e.g. Solaris ld). Luckily IMHO gnu ld is a sure assumption.
Since lm_sensors is targeted at Linux only, yes, I also think this is a safe assumption.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 4 lines · Jean Delvare
Quoted 4 lines
Here you are:
i2cdump 10x2e
No size specified (using byte-data access)
Hm, with some close look I noticed that it is 0x2d. I have no idea what the output means, but does this look better somehow?
i2cdump 1 0x2d
No size specified (using byte-data access)
WARNING! This program can confuse your I2C bus, cause data loss and
worse!
I will probe file /dev/i2c-1, address 0x2d, mode byte You have five seconds to reconsider and press CTRL-C!
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: b6 bb a8 64 c4 ce 00 cd a7 f8 a5 ac 8c 68 54 f8 ???d??.??????hT?
10: a5 f8 a5 ff 00 00 00 19 50 4b 24 50 4b 00 00 00 ???....?PK$PK...
20: 6a 6a d1 b6 bd bd bd 1c 65 ff ff 7b 52 7b 52 e3 jj??????e..{R{R?
30: b9 cd a7 ed 9d 00 00 00 00 50 4b 20 05 00 00 00 ?????....PK ?...
40: 01 00 00 00 00 20 00 58 00 40 01 48 00 05 80 06 ?.... .X.@?H.???
50: ff ff 00 ff ff ff ff ff 31 8f 00 01 ff 84 e2 1f ........1?.?.???
60: 6a 6a d1 b6 bd bd bd 1c 65 ff ff 7b 52 7b 52 e3 jj??????e..{R{R?
70: b9 cd a7 ed 9d 00 00 00 00 50 4b 20 05 00 00 00 ?????....PK ?...
80: b6 bb a8 64 c4 ce 00 cd a7 f8 a5 ac 8c 68 54 f8 ???d??.??????hT?
90: a5 f8 a5 ff 00 00 00 19 50 4b 24 50 4b 00 00 00 ???....?PK$PK...
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................just tell me if more or other dumps will help.
Quoted 5 lines
Anyway, I just finished the new driver and commited it to our CVS repository. Support is preliminary, which means that the driver should work with minimal functions, and sensors-detect knows about the driver, but there is no sensors/libsensors support yet.
Quoted 7 lines
Could you please give it a try? You'll also have to get an updated
i2c-id.hfile. No need to reinstall i2c completely, get the updated file from here:
http://www2.lm-sensors.nu/~lm78/cvs/i2c/kernel/i2c-id.h
Then just update your local cvslm_sensors2checkout, compile it (maybe with DEBUG set at first), install it, and try loading the w83l785ts module.
Did so.
Quoted 3 lines
If it works, you should be able to see a temp file here:
/proc/sys/dev/sensors/w83l785ts-i2c-0-2e/
cat /proc/sys/dev/sensors/w83l785ts-i2c-1-2e/temp
-1 40
Quoted 2 lines
Hmm. If I understand you well, this is meant so that at *runtime*, the sensors binary knows where to look for libsensors? There's already
Exactly.
Quoted 5 lines
/etc/ld.so.conffor that, andLD_LIBRARY_PATHtoo. I'm not sure that binaries looking at specific places by themselves are considered very safe. And even without security considerations, what if the end-user wants to change which libraries are used? Wouldn't he/she get confused that the binary doesn't follow the usual ld.so.conf order?
I consider it good practice for packages that contain shared libraries and binaries using them that they look for their own libraries under their own prefix. It helps testing a lot, especially with several non-distro-bundled packages or different version at the same time. Of course, ld.so.conf does this, but systemwide for all programs, and gets bloated when used this way. LD_LIBRARY_PATH is a bad hack and does more harm than good if you use it like you should ld.so.conf
This path is prepended to the paths in ld.so.conf, so in case it is a standard path, it does not matter, and if not it follows the principle of least surprise if a package program prefers its own libs and paths. Even without any -rpath a program looks in /lib and /usr/lib, Adding one more is no change in quality and only consequent when using a custom install prefix.
The man-page section of gnu ld about -rpath and -rapth-link are quite informative about it.
From the security point of view, use statically linked binaries. All sort of user input, including possibly tainted shared libs, can't be trusted. For the really paranoid you could replace the -rpath in LDFLAGS by -static, Maybe with a comment in the makefile to chosse from traditional, comfortable, or paranoid versions.
IMHO lm_sensors is about to reach "business grade" stability, so non-functional features become more of a development focus than the already settled and stable parts.
Bye,
Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031215/5a715f4b/attachment.bin
Quoted 2 lines
Hm, with some close look I noticed that it is
0x2d. I have no idea what the output means, but does this look better somehow?
No, no. At 0x2d there is your main chipset (ASB100 "Bach"). The W83L785TS-S is really at 0x2e.
You might provide the output of "i2cdetect 1" for a full analysis of your I2C bus.
Quoted 1 line
just tell me if more or other dumps will help.
Please provide the output of "i2cdump 1 0x2e" anew so that I can compare with the old values.
Quoted 2 lines
cat
/proc/sys/dev/sensors/w83l785ts-i2c-1-2e/temp
-1 40
My bad, I just chose a random register as the high limit register (well it's a typo actually). I'll fix that. That said, the exact register to use is unclear.
I'll let you know when I got something for you to test.
Quoted 8 lines
(...)
I consider it good practice for packages that contain shared libraries and binaries using them that they look for their own libraries under their own prefix. It helps testing a lot, especially with several non-distro-bundled packages or different version at the same time. Of course, ld.so.conf does this, but systemwide for all programs, and gets bloated when used this way.LD_LIBRARY_PATHis a bad hack and does more harm than good if you use it like you should ld.so.conf
Well, you seem to know what you're talking about. I applied your patch but it doesn't seem to do anything. The EXLDFLAGS variable is not used when I compile sensors. Are there any other steps to take?
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 5 lines · Jean Delvare
No, no. At
0x2dthere is your main chipset (ASB100 "Bach"). The W83L785TS-S is really at0x2e.Please provide the output of "i2cdump 1
0x2e" anew so that I can compare with the old values.
Ok:
i2cdump 1 0x2e
No size specified (using byte-data access)
WARNING! This program can confuse your I2C bus, cause data loss and
worse!
I will probe file /dev/i2c-1, address 0x2e, mode byte You have five seconds to reconsider and press CTRL-C!
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: ff ff ff XX ff ff ff ff ff ff ff ff ff ff ff ff ...X............ 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 20: 39 3a 00 00 00 00 58 28 00 00 00 ff 00 ff 00 00 9:....X(........ 30: 00 00 00 00 00 00 00 50 4b 50 4b 00 00 00 00 00 .......PKPK..... 40: 0d 00 00 00 00 80 ff ff ff ff ff ff a3 5c 70 ff ?....?......?\p. 50: 06 04 03 64 7f 4b 46 4b 46 00 fa bc ff ff ff ff ???d?KFKF.??.... 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 80: ff ff ff ff ff 00 18 ff ff ff ff ff ff ff ff ff ......?......... 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ e0: c9 02 3a 71 39 38 37 33 ff ff ff ff ff ff XX ff ??:q9873......X. f0: ff 2e 00 XX XX XX 00 ff 00 00 ff 00 00 02 ff ff ...XXX.......?..
Quoted 3 lines
Well, you seem to know what you're talking about. I applied your patch but it doesn't seem to do anything. The EXLDFLAGS variable is not used when I compile sensors. Are there any other steps to take?
The EXLDFLAGS was just "there" in the main makefile. I just now learned how the makefile approach for this package works, and IMHO it is a great concept. A patch which works for all programs is included now.
BTW, one further optimization (i.e. play computer-scientists favourite game "add another abstraction layer" ;-) might be to have variable like COMPILE := $(CC) $(CFLAGS) and LINK := $(CC) $(LDFLAGS), as these combinations seem to be common.
Bye,
Joerg
prog/detect/Module.mk renamed from prog/detect/Module.mk.orig +1 -1
@@ -36,7 +36,7 @@ user :: all-prog-detect $(MODULE_DIR)/i2cdetect: $(MODULE_DIR)/i2cdetect.ro prog/dump/i2cbusses.ro - $(CC) -o $@ $^ + $(CC) $(EXLDFLAGS) -o $@ $^ install-prog-detect: all-prog-detect mkdir -p $(DESTDIR)$(SBINDIR)
prog/dump/Module.mk renamed from prog/dump/Module.mk.orig +2 -2
@@ -38,10 +38,10 @@ user :: all-prog-dump $(MODULE_DIR)/i2cdump: $(MODULE_DIR)/i2cdump.ro $(MODULE_DIR)/i2cbusses.ro - $(CC) -o $@ $^ + $(CC) $(EXLDFLAGS) -o $@ $^ $(MODULE_DIR)/i2cset: $(MODULE_DIR)/i2cset.ro $(MODULE_DIR)/i2cbusses.ro - $(CC) -o $@ $^ + $(CC) $(EXLDFLAGS) -o $@ $^ install-prog-dump: all-prog-dump mkdir -p $(DESTDIR)$(SBINDIR)
prog/sensord/Module.mk renamed from prog/sensord/Module.mk.orig +1 -1
@@ -38,7 +38,7 @@ INCLUDEFILES += $(PROGSENSORDSOURCES:.c=.rd) $(PROGSENSORDTARGETS): $(PROGSENSORDSOURCES:.c=.ro) lib/$(LIBSHBASENAME) - $(CC) -o $@ $(PROGSENSORDSOURCES:.c=.ro) -Llib -lsensors -lrrd + $(CC) $(EXLDFLAGS) -o $@ $(PROGSENSORDSOURCES:.c=.ro) -Llib -lsensors -lrrd all-prog-sensord: $(PROGSENSORDTARGETS) user :: all-prog-sensord
prog/sensors/Module.mk renamed from prog/sensors/Module.mk.orig +1 -1
@@ -34,7 +34,7 @@ INCLUDEFILES += $(PROGSENSORSSOURCES:.c=.rd) $(PROGSENSORSTARGETS): $(PROGSENSORSSOURCES:.c=.ro) lib/$(LIBSHBASENAME) - $(CC) -o $@ $(PROGSENSORSSOURCES:.c=.ro) -Llib -lsensors + $(CC) $(EXLDFLAGS) -o $@ $(PROGSENSORSSOURCES:.c=.ro) -Llib -lsensors all-prog-sensors: $(PROGSENSORSTARGETS) user :: all-prog-sensors
Makefile renamed from Makefile.orig +2 -0
@@ -95,6 +95,8 @@ # library files (both static and shared) will be installed. LIBDIR := $(PREFIX)/lib +EXLDFLAGS := -Wl,-rpath,$(LIBDIR) + # You should not need to change this. It is the directory into which the # executable program files will be installed. BINDIR for programs that are # also useful for normal users, SBINDIR for programs that can only be run
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031216/e7245769/attachment.bin
Jean Delvare
AppliedQuoted 3 lines
Ok:
i2cdump 10x2e
(...)
As you can see the XX's moved. Also, there were no XX's on the ASB100 dump. Conclusion: there is a communication problem over your I2C bus, that does only affect the W83L785TS-S chip. This was already seen:
http://www.nforcershq.com/forum/viewtopic.php?t#918#185075
But other users don't have the problem.
I don't know if there's anything we can do. Alex van Kaam (MBM's author) told us that he observed the same (which tends to demonstrate that the hardware, not the software, is faulty). He suggested that it could be "a conflict with the bios reading it", but I don't see why the BIOS would read it. There's a pin of the chip dedicated to this (goes low if the limit temperature is reached).
Could you please provide the following dumps:
i2cdetect 1
i2cdump 1 0x2e c
This could help me. The first command will list all present chips in the bus (maybe there's another chip on tha bus that causes trouble). The second command will use an alternate way to dump the chip contents. If it doesn't have XX's it might be an interesting workaround (but I doubt it).
Quoted 4 lines
The EXLDFLAGS was just "there" in the main makefile. I just now learned how the makefile approach for this package works, and IMHO it is a great concept. A patch which works for all programs is included now.
Applied, thanks.
Quoted 4 lines
BTW, one further optimization (i.e. play computer-scientists favourite game "add another abstraction layer" ;-) might be to have variable like COMPILE := $(CC) $(CFLAGS) and LINK := $(CC) $(LDFLAGS), as these combinations seem to be common.
Not worth the effort IMHO ;)
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 6 lines · Jean Delvare
As you can see the XX's moved. Also, there were no XX's on the ASB100 dump. Conclusion: there is a communication problem over your I2C bus, that does only affect the W83L785TS-S chip. This was already seen:
http://www.nforcershq.com/forum/viewtopic.php?t#918#185075
But other users don't have the problem.
The motherboard is Ausus OEM by 4MBO. I would never buy this box again from this vendor, for a lot of additional reasons.
Quoted 6 lines
I don't know if there's anything we can do. Alex van Kaam (MBM's author) told us that he observed the same (which tends to demonstrate that the hardware, not the software, is faulty). He suggested that it could be "a conflict with the bios reading it", but I don't see why the BIOS would read it. There's a pin of the chip dedicated to this (goes low if the limit temperature is reached).
I had some BIOS problems with the box. As it is OEM, the Ausus provided BIOS updated do not fit. 4MBO gives out none and deny problems (They say it works all fine with Windows, so what? Just one of the above mentioned reasons)
Quoted 3 lines
Could you please provide the following dumps:
i2cdetect 1
i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and
worse!
I will probe file /dev/i2c-1
You have five seconds to reconsider and press CTRL-C!
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX XX XX XX 08 XX XX XX XX XX XX XX 10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 20: XX XX XX XX XX XX XX XX XX XX XX XX XX 2d 2e XX 30: XX XX XX XX XX XX XX 37 XX XX XX XX XX XX XX XX 40: XX XX XX XX XX XX XX XX 48 49 XX XX XX XX XX XX 50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 7f
Quoted 1 line
i2cdump 1
0x2ec
i2cdump 1 0x2e c
WARNING! This program can confuse your I2C bus, cause data loss and
worse!
I will probe file /dev/i2c-1, address 0x2e, mode byte consecutive read You have five seconds to reconsider and press CTRL-C!
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef 00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 20: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
Quoted 2 lines
it doesn't have XX's it might be an interesting workaround (but I doubt it).
I am sure the XX won't help too much.
BTW, on the smbus 0, there are some clients that the sensors package does not regognize. Are you interested in more details?
Quoted 6 lines
Quoted 4 lines
The EXLDFLAGS was just "there" in the main makefile. I just now learned how the makefile approach for this package works, and IMHO it is a great concept. A patch which works for all programs is included now.
Applied, thanks.
With pleasure :-)
Bye,
Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031217/cd3b4ce7/attachment.bin
Quoted 1 line
The motherboard is Ausus OEM by 4MBO. (...)
I suppose you really mean "Asus"?
Quoted 11 lines
i2cdetect 1
(...)
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX XX XX XX 08 XX XX XX XX XX XX XX 10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 20: XX XX XX XX XX XX XX XX XX XX XX XX XX 2d 2e XX 30: XX XX XX XX XX XX XX 37 XX XX XX XX XX XX XX XX 40: XX XX XX XX XX XX XX XX 48 49 XX XX XX XX XX XX 50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 7f
Interesting. 2d+48+49 is the ASB100, 2e is the W83L785TS-S. This leaves three addresses: 08, 37 and 7f, which my map present as, respectively "SMB host", "Reserved for Access.Bus default address" and "Reserved". I don't know much about these things, but that could mean that there is some alternate access to the bus, possibly interfering with us accessing the W83L785TS-S. That would explain the "XX" (but doesn't help much since I don't know what to do to solve the problem).
Quoted 2 lines
i2cdump 1
0x2ec
(...)
Doesn't work (returns the first value all the time).
Quoted 2 lines
BTW, on the smbus 0, there are some clients that the sensors package does not regognize. Are you interested in more details?
Sure. Provide i2cdumps for these and I'll take a look. That said, you already have two monitoring chips on smbus 1, so I doubt we'll find any more on smbus 0.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines · Jean Delvare
Quoted 1 line
The motherboard is Ausus OEM by 4MBO. (...)
I suppose you really mean "Asus"?
Yes. Sorry.
Quoted 4 lines
Sure. Provide i2cdumps for these and I'll take a look. That said, you already have two monitoring chips on smbus 1, so I doubt we'll find any more on smbus 0.
i2cdetect 0 WARNING! This program can confuse your I2C bus, cause data
loss and worse!
I will probe file /dev/i2c-0
You have five seconds to reconsider and press CTRL-C!
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: XX XX XX XX XX XX XX XX 08 XX XX XX XX XX XX XX 10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 20: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 30: XX 31 XX XX XX XX XX XX XX XX XX XX XX XX XX XX 40: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 50: 50 51 XX XX XX XX XX XX XX XX XX XX XX XX XX XX 60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX 70: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
0x08 gives only XX, 0x31 only 29. 0x50 and 0x51 are recognizes as SPD eeproms and work as such. Does not look too interesting to me.
Bye,
Joerg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031221/ee226211/attachment.bin