New version of lm_sensors with support for 2.6 kernels! From Freshmeat.net: Changes: This release adds support for 2.6 kernels to the userspace tools. It adds support for the VT8237, FSC Hermes, ADM1032, and CSB6 chips. There are bugfixes and improvements for the AMD756, AMD8111, ASB100, NForce2, IT87xx, W83791D, W83627HF, and W83627THF chips. Reproducible: Always Steps to Reproduce: 1. 2. 3.
In CVS. Thanks. Testing would be appreciated.
I had problems installing lm-sensors-2.8.2 with gentoo-dev-sources-2.6.0_beta11-r2: 1) I see no way of installing only the user tools without editing the ebuild. Maybe there should be an USE option for that. I had to edit the ebuild and change the definition of UserModeOnly shell variable to true. 2) Even when installing only the user tools, the package still is dependent on >=sys-apps/i2c-2.8.0, which is wrong, at least for kernel 2.6. 3) Installation has an access violation: [...] install -o root -g root -m 755 prog/xeon/decode-xeon.pl /var/tmp/portage/lm-sensors-2.8.2/image//usr/bin mkdir -p /etc if [ ! -e /etc/sensors.conf ] ; then \ install -o root -g root -m 644 etc/sensors.conf.eg /etc/sensors.conf; \ fi ACCESS DENIED open_wr: /etc/sensors.conf install: cannot create regular file `/etc/sensors.conf': Permission denied make: *** [install-etc] Error 1 !!! ERROR: sys-apps/lm-sensors-2.8.2 failed. !!! Function src_install, Line 97, Exitcode 2 !!! Install failed! --------------------------- ACCESS VIOLATION SUMMARY ---------------------------LOG FILE = "/tmp/sandbox-lm-sensors-2.8.2-19592.log" open_wr: /etc/sensors.conf --------------------------------------------------------------------------------C
1: The kernel version detection stuff should do that. Why do you need only the user tools on a 2.4 kernel? 2: Ahem, I2C headers? [ Quote `README' ] 34 WARNING! You must have at least i2c-2.8.1. 35 EVEN IF your kernel does contain i2c support!!!!!!!!! 36 You may wish to get the latest i2c package, i2c-2.8.2, [ End Quote ] 3: Should work now. I assume you got the error with a user-tools only build?
I tried installing lm-sensors 2.8.2 using lm-sensors-2.8.2.ebuild that is currently in portage. I looked at the ebuild, and it should allow installation of user space tools only (I am using 2.6.0-test11). The problem is i2c-2.8.2 will not install with a 2.6 kernel. It gives me an error. Since I can't install i2c, I can't install lm-sensors. What am I missing? Thanks! Scott =)
My apologies. Reading over my last message I was rather vague. Here is the error i2c gives me: * You are running:- 2.6.0-test11 * Using kernel in /usr/src/linux:- 2.6.0-test11 * Kernel version in /usr/src/linux is not 2.4.x * Please specify a 2.4.x kernel! Scott =)
About the problems I have mentioned: 1) I am running kernel 2.6.0-test11-gentoo-r2 and the ebuild correctly sets the shell script variable "UserModeOnly" in the ebuild to true. (The first time I have tried, this variable was not being set correctly.) 2) When running kernel 2.6 and installing only the user tools, the package should not dependent sys-apps/i2c, but should rely on the i2c in the kernel. This is in the README. The sys-apps/i2c dependency is needed for kernels prior to 2.6 only. In order to test the ebuild with this kernel I had to use the option "-O" in the emerge command so that it does not consider the dependencies. 3) Installation of the user tools does not work yet. The most important programs like sensors and sensors-detect are not being installed. The "mv" command in the src_install function in the ebuild is not working. It fails with the error message mv: cannot overwrite directory `/var/tmp/portage/lm-sensors-2.8.2/image/usr
Looks like I2C does not support doing headers only. I've removed the I2C dependency in lm-sensors; please try things now. Jos
Looks like I2C does not support doing headers only. I've removed the I2C dependency in lm-sensors; please try things now. José: I'm not sure why the 'mv' command was giving you errors, I've changed it to a forced 'cp' so it should work. For some reason lm-sensors must be generating different Makefile install actions for you.
The "cp" does work. Thanks. # sensors-detect No i2c device files found. Use prog/mkdev/mkdev.sh to create them. What is missing? There is a bunch of i2c modules in the kernel module directory. Should I really use prog/mkdev/mkdev.sh to create the device files, or the devfs tools should do it itself? Any comment on that?
If you load the module i2c-core it will work. That creates the devices. The init script fails for me. It seems I don't have the module i2c-proc. Did I not enable it in the kernel, or is it not in 2.6? I couldn't find an option for it in menuconfig. Scott =)
Hmm. Looks like the init script needs re-writing. I2C-proc was the 2.4 /proc/... interface for I2C, it now uses sysfs in 2.6.
Created attachment 22322 [details] New initialization script
Closing as this seems to be fixed along with the 2.6 script which is in Portage for a while now.